How incluud/accessible-astro-docs works
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: PageFrame.astro Page frame · package.json Astro + Starlight build · content.config.ts Content collection · Projects.astro Project promotion
Components 21
Documentation Content
- Content collection · Defines the documentation collection consumed by Starlight.
src/content.config.ts - MDX documentation · Primary product surface for guides, APIs, themes, and resources.
- Documentation entry
src/content/docs/index.mdx - Getting started
- Component docs
- Theme docs
Site UI
- Page frame · Page-level framing around Starlight and content pages.
src/components/PageFrame.astro - Document head
src/components/Head.astro - Footer
src/components/Footer.astro - Landing sections · Mission, organization, sponsorship, and support presentation.
src/components/Mission.astro - Project promotion · Coordinates ecosystem project cards.
src/components/Projects.astro - Project card
src/components/ProjectCard.astro - GitHub stats island · Interactive boundary for GitHub-derived data.
src/components/GitHubStats.vue - GitHub access · Isolates external GitHub access or transformations.
src/utils/github.ts - Content media
src/components/ContentMedia.astro - Site styling · Global accessibility-oriented visual customization.
src/styles/custom.css - Pixel canvas behavior · Standalone client-side canvas behavior.
src/assets/scripts/pixel-canvas.js
Build & Deployment
- Astro configuration · Configures the Astro and Starlight runtime boundary.
astro.config.mjs - Astro + Starlight build · Transforms collected MDX and Astro components into static pages.
package.json - Public assets
- Deployment redirects
public/_redirects
Connections 21
- 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