# lumen-media/docs architecture

> Architecture diagram of the GitHub repository lumen-media/docs, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lumen-media/docs
- Repository: https://github.com/lumen-media/docs

## Overview

This repository is a Lumen documentation portal built with Astro and Starlight, not the Lumen application runtime. A reader browses the configured documentation sections; Astro’s docs collection loads content, while Rust API reference material and its search assets are served as documentation. The excerpts establish the portal configuration and collection setup, but do not show the underlying documentation pages or how Rust search assets are wired, so those links are omitted. The README describes a starter layout, which is not fully present in the supplied tree.

Main entry points: [`astro.config.mjs`](https://github.com/lumen-media/docs/blob/main/astro.config.mjs) (Astro and Starlight), [`rust/lumen`](https://github.com/lumen-media/docs/tree/main/rust/lumen) (Rust API reference), [`src/content.config.ts`](https://github.com/lumen-media/docs/blob/main/src/content.config.ts) (Docs collection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portal["Portal configuration"]
  node_astro["Astro and Starlight<br/>[astro.config.mjs]"]
end

subgraph group_content["Documentation content"]
  node_docs_collection["Docs collection<br/>[content.config.ts]"]
  node_component_exports["Component exports<br/>[index.ts]"]
end

subgraph group_reference["API reference"]
  node_rust_api["Rust API reference"]
  node_rust_search["Rust search assets<br/>[search-cf4fc35e.js]"]
  node_rust_ui["Rustdoc interface assets"]
end

node_reader(("Documentation reader"))

node_reader -->|"browses"| node_astro
node_astro -->|"loads collection"| node_docs_collection
node_astro -->|"links reference"| node_rust_api
node_reader -.->|"reads API docs"| node_rust_api

click node_astro "https://github.com/lumen-media/docs/blob/main/astro.config.mjs"
click node_docs_collection "https://github.com/lumen-media/docs/blob/main/src/content.config.ts"
click node_rust_api "https://github.com/lumen-media/docs/tree/main/rust/lumen"
click node_rust_search "https://github.com/lumen-media/docs/blob/main/rust/lumen/static.files/search-cf4fc35e.js"
click node_rust_ui "https://github.com/lumen-media/docs/blob/main/rust/lumen/static.files/storage-41dd4d93.js"
click node_component_exports "https://github.com/lumen-media/docs/blob/main/src/components/index.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_astro toneBlue
class node_docs_collection,node_component_exports toneAmber
class node_rust_api,node_rust_search,node_rust_ui toneMint
class node_reader toneIndigo
```

## Components

### Portal configuration

- [Astro and Starlight](https://github.com/lumen-media/docs/blob/main/astro.config.mjs): `astro.config.mjs`

### Documentation content

- [Docs collection](https://github.com/lumen-media/docs/blob/main/src/content.config.ts): `src/content.config.ts`
- [Component exports](https://github.com/lumen-media/docs/blob/main/src/components/index.ts): `src/components/index.ts`

### API reference

- [Rust API reference](https://github.com/lumen-media/docs/tree/main/rust/lumen): `rust/lumen`
- [Rust search assets](https://github.com/lumen-media/docs/blob/main/rust/lumen/static.files/search-cf4fc35e.js): `rust/lumen/static.files/search-cf4fc35e.js`
- [Rustdoc interface assets](https://github.com/lumen-media/docs/blob/main/rust/lumen/static.files/storage-41dd4d93.js): `rust/lumen/static.files/storage-41dd4d93.js`

### Other components

- **Documentation reader**

## Connections

- Documentation reader → Astro and Starlight: browses (evidence: `astro.config.mjs`)
- Astro and Starlight → Docs collection: loads collection (evidence: `src/content.config.ts`)
- Astro and Starlight → Rust API reference: links reference (evidence: `astro.config.mjs`)
- Documentation reader → Rust API reference: reads API docs
