# incluud/accessible-astro-docs architecture

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

- Interactive diagram: https://gitdiagram.com/incluud/accessible-astro-docs
- Repository: https://github.com/incluud/accessible-astro-docs

## Overview

#### Purpose and Runtime
This repository is the public documentation site for the Accessible Astro ecosystem: starter, component, dashboard, and launcher projects. It is an Astro/Starlight static documentation application, authored in TypeScript, Astro, MDX, and a small Vue island. The build/runtime boundary is configured in `astro.config.mjs`; deployment redirects are supplied through `public/_redirects`.

#### Documentation Content Pipeline
Starlight consumes the documentation collection defined by `src/content.config.ts` and turns MDX sources under `src/content/docs/` into navigable documentation pages. The primary entry document is `src/content/docs/index.mdx`; sections cover getting started, component APIs, contribution guidance, resources, and themes:
- `src/content/docs/getting-started/`
- `src/content/docs/components/`
- `src/content/docs/themes/`

Content is the principal product surface; changes to MDX flow through Astro/Starlight’s static build rather than a database or application API.

#### Page Composition and Shared Shell
Custom Astro components provide site-specific framing around Starlight/content pages. `src/components/PageFrame.astro` is the likely page-level composition boundary, while `src/components/Head.astro` centralizes document metadata/head behavior and `src/components/Footer.astro` supplies shared footer content. `src/components/index.js` is the component export boundary for reuse.

#### Ecosystem Landing Content
The site includes custom presentational sections for explaining the organization and its projects, rather than only reference documentation. `src/components/Projects.astro` coordinates project promotion cards via `src/components/ProjectCard.astro`; mission and organization messaging are encapsulated in `src/components/Mission.astro` and `src/components/WhoAreWe.astro`. Sponsorship/support surfaces are separated into `src/components/Sponsor.astro` and `src/components/Support.astro`.

#### Dynamic External Data Boundary
`src/components/GitHubStats.vue` is the Vue-based interactive/client-rendered component boundary. It is backed by GitHub-related access logic in `src/utils/github.ts`, isolating calls or transformations for external GitHub data from Astro page markup. This is the main identified external-service integration; GitHub also hosts linked ecosystem repositories, issues, and roadmap resources.

#### Media, Behavior, and Styling
Reusable media rendering is isolated in `src/components/ContentMedia.astro`. Site-wide styling and accessibility-oriented visual customization live in `src/styles/custom.css`. A standalone browser script, `src/assets/scripts/pixel-canvas.js`, provides specialized client-side canvas behavior and should remain decoupled from static MDX rendering.

#### Build and Deployment
Astro and Starlight are the central build infrastructure, configured from `astro.config.mjs` and package dependencies/scripts in `package.json`. Static assets are served from `public/`, with platform redirect behavior in `public/_redirects`. TypeScript project semantics are defined by `tsconfig.json`; `src/env.d.ts` supplies environment typing for Astro integrations.

Main entry points: [`src/components/PageFrame.astro`](https://github.com/incluud/accessible-astro-docs/blob/main/src/components/PageFrame.astro) (Page frame), [`package.json`](https://github.com/incluud/accessible-astro-docs/blob/main/package.json) (Astro + Starlight build), [`src/content.config.ts`](https://github.com/incluud/accessible-astro-docs/blob/main/src/content.config.ts) (Content collection), [`src/components/Projects.astro`](https://github.com/incluud/accessible-astro-docs/blob/main/src/components/Projects.astro) (Project promotion)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Documentation Content"]
  node_content_config["Content collection<br/>Starlight schema<br/>[content.config.ts]"]
  node_docs["MDX documentation<br/>content source"]
  node_home_doc["Documentation entry<br/>MDX page<br/>[index.mdx]"]
  node_getting_started["Getting started<br/>MDX section"]
  node_components_docs["Component docs<br/>MDX section"]
  node_themes_docs["Theme docs<br/>MDX section"]
end

subgraph group_ui["Site UI"]
  node_page_frame["Page frame<br/>Astro composition<br/>[PageFrame.astro]"]
  node_head["Document head<br/>Astro component<br/>[Head.astro]"]
  node_footer["Footer<br/>Astro component<br/>[Footer.astro]"]
  node_landing_sections["Landing sections<br/>Astro components<br/>[Mission.astro]"]
  node_projects["Project promotion<br/>Astro components<br/>[Projects.astro]"]
  node_project_card["Project card<br/>Astro component<br/>[ProjectCard.astro]"]
  node_github_stats{{"GitHub stats island<br/>Vue client island<br/>[GitHubStats.vue]"}}
  node_github_access{{"GitHub access<br/>TypeScript integration<br/>[github.ts]"}}
  node_media["Content media<br/>Astro component<br/>[ContentMedia.astro]"]
  node_styles["Site styling<br/>CSS<br/>[custom.css]"]
  node_canvas_script{{"Pixel canvas behavior<br/>browser script<br/>[pixel-canvas.js]"}}
end

subgraph group_build["Build &amp; Deployment"]
  node_astro_config["Astro configuration<br/>build configuration<br/>[astro.config.mjs]"]
  node_build_system{{"Astro + Starlight build<br/>static site generator<br/>[package.json]"}}
  node_static_assets["Public assets<br/>static output assets"]
  node_redirects["Deployment redirects<br/>platform routing"]
end

node_content_config -->|"collects"| node_docs
node_docs -->|"includes"| node_home_doc
node_docs -->|"includes"| node_getting_started
node_docs -->|"includes"| node_components_docs
node_docs -->|"includes"| node_themes_docs
node_content_config -->|"feeds collection"| node_build_system
node_docs -->|"builds into pages"| node_build_system
node_astro_config -->|"configures"| node_build_system
node_page_frame -->|"uses"| node_head
node_page_frame -->|"uses"| node_footer
node_page_frame -->|"composed into pages"| node_build_system
node_projects -->|"renders"| node_project_card
node_landing_sections -->|"presented in"| node_page_frame
node_projects -->|"presented in"| node_page_frame
node_media -->|"renders within"| node_page_frame
node_styles -->|"styles"| node_page_frame
node_github_stats -->|"retrieves data through"| node_github_access
node_github_stats -->|"hydrates in"| node_page_frame
node_canvas_script -.->|"enhances client UI"| node_page_frame
node_build_system -->|"serves with"| node_static_assets
node_redirects -->|"applies routing for"| node_static_assets

click node_content_config "https://github.com/incluud/accessible-astro-docs/blob/main/src/content.config.ts"
click node_home_doc "https://github.com/incluud/accessible-astro-docs/blob/main/src/content/docs/index.mdx"
click node_page_frame "https://github.com/incluud/accessible-astro-docs/blob/main/src/components/PageFrame.astro"
click node_head "https://github.com/incluud/accessible-astro-docs/blob/main/src/components/Head.astro"
click node_footer "https://github.com/incluud/accessible-astro-docs/blob/main/src/components/Footer.astro"
click node_landing_sections "https://github.com/incluud/accessible-astro-docs/blob/main/src/components/Mission.astro"
click node_projects "https://github.com/incluud/accessible-astro-docs/blob/main/src/components/Projects.astro"
click node_project_card "https://github.com/incluud/accessible-astro-docs/blob/main/src/components/ProjectCard.astro"
click node_github_stats "https://github.com/incluud/accessible-astro-docs/blob/main/src/components/GitHubStats.vue"
click node_github_access "https://github.com/incluud/accessible-astro-docs/blob/main/src/utils/github.ts"
click node_media "https://github.com/incluud/accessible-astro-docs/blob/main/src/components/ContentMedia.astro"
click node_styles "https://github.com/incluud/accessible-astro-docs/blob/main/src/styles/custom.css"
click node_canvas_script "https://github.com/incluud/accessible-astro-docs/blob/main/src/assets/scripts/pixel-canvas.js"
click node_astro_config "https://github.com/incluud/accessible-astro-docs/blob/main/astro.config.mjs"
click node_build_system "https://github.com/incluud/accessible-astro-docs/blob/main/package.json"
click node_redirects "https://github.com/incluud/accessible-astro-docs/blob/main/public/_redirects"

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_content_config,node_docs,node_home_doc,node_getting_started,node_components_docs,node_themes_docs toneBlue
class node_page_frame,node_head,node_footer,node_landing_sections,node_projects,node_project_card,node_github_stats,node_github_access,node_media,node_styles,node_canvas_script toneAmber
class node_astro_config,node_build_system,node_static_assets,node_redirects toneMint
```

## Components

### Documentation Content

- [Content collection](https://github.com/incluud/accessible-astro-docs/blob/main/src/content.config.ts): Starlight schema · Defines the documentation collection consumed by Starlight. · `src/content.config.ts`
- **MDX documentation**: content source · Primary product surface for guides, APIs, themes, and resources.
- [Documentation entry](https://github.com/incluud/accessible-astro-docs/blob/main/src/content/docs/index.mdx): MDX page · `src/content/docs/index.mdx`
- **Getting started**: MDX section
- **Component docs**: MDX section
- **Theme docs**: MDX section

### Site UI

- [Page frame](https://github.com/incluud/accessible-astro-docs/blob/main/src/components/PageFrame.astro): Astro composition · Page-level framing around Starlight and content pages. · `src/components/PageFrame.astro`
- [Document head](https://github.com/incluud/accessible-astro-docs/blob/main/src/components/Head.astro): Astro component · `src/components/Head.astro`
- [Footer](https://github.com/incluud/accessible-astro-docs/blob/main/src/components/Footer.astro): Astro component · `src/components/Footer.astro`
- [Landing sections](https://github.com/incluud/accessible-astro-docs/blob/main/src/components/Mission.astro): Astro components · Mission, organization, sponsorship, and support presentation. · `src/components/Mission.astro`
- [Project promotion](https://github.com/incluud/accessible-astro-docs/blob/main/src/components/Projects.astro): Astro components · Coordinates ecosystem project cards. · `src/components/Projects.astro`
- [Project card](https://github.com/incluud/accessible-astro-docs/blob/main/src/components/ProjectCard.astro): Astro component · `src/components/ProjectCard.astro`
- [GitHub stats island](https://github.com/incluud/accessible-astro-docs/blob/main/src/components/GitHubStats.vue): Vue client island · Interactive boundary for GitHub-derived data. · `src/components/GitHubStats.vue`
- [GitHub access](https://github.com/incluud/accessible-astro-docs/blob/main/src/utils/github.ts): TypeScript integration · Isolates external GitHub access or transformations. · `src/utils/github.ts`
- [Content media](https://github.com/incluud/accessible-astro-docs/blob/main/src/components/ContentMedia.astro): Astro component · `src/components/ContentMedia.astro`
- [Site styling](https://github.com/incluud/accessible-astro-docs/blob/main/src/styles/custom.css): CSS · Global accessibility-oriented visual customization. · `src/styles/custom.css`
- [Pixel canvas behavior](https://github.com/incluud/accessible-astro-docs/blob/main/src/assets/scripts/pixel-canvas.js): browser script · Standalone client-side canvas behavior. · `src/assets/scripts/pixel-canvas.js`

### Build & Deployment

- [Astro configuration](https://github.com/incluud/accessible-astro-docs/blob/main/astro.config.mjs): build configuration · Configures the Astro and Starlight runtime boundary. · `astro.config.mjs`
- [Astro + Starlight build](https://github.com/incluud/accessible-astro-docs/blob/main/package.json): static site generator · Transforms collected MDX and Astro components into static pages. · `package.json`
- **Public assets**: static output assets
- [Deployment redirects](https://github.com/incluud/accessible-astro-docs/blob/main/public/_redirects): platform routing · `public/_redirects`

## Connections

- Content collection → MDX documentation: collects
- MDX documentation → Documentation entry: includes
- MDX documentation → Getting started: includes
- MDX documentation → Component docs: includes
- MDX documentation → Theme docs: includes
- Content collection → Astro + Starlight build: feeds collection
- MDX documentation → Astro + Starlight build: builds into pages
- Astro configuration → Astro + Starlight build: configures
- Page frame → Document head: uses
- Page frame → Footer: uses
- Page frame → Astro + Starlight build: composed into pages
- Project promotion → Project card: renders
- Landing sections → Page frame: presented in
- Project promotion → Page frame: presented in
- Content media → Page frame: renders within
- Site styling → Page frame: styles
- GitHub stats island → GitHub access: retrieves data through
- GitHub stats island → Page frame: hydrates in
- Pixel canvas behavior → Page frame: enhances client UI
- Astro + Starlight build → Public assets: serves with
- Deployment redirects → Public assets: applies routing for
