Project structure and file locations for SourceBans++ docs
mainThe documentation repository is organized as follows:
| Path | Purpose |
|---|---|
astro.config.mjs | Site configuration, sidebar tree, social links, and custom CSS. It also manages the @astrojs/sitemap integration. |
src/content.config.ts | Astro content-collection schema using Starlight's docsLoader and docsSchema for front-matter validation. |
src/content/docs/ | The main directory for page content. Use .md for plain pages and .mdx for pages requiring Starlight components (e.g., Tabs, LinkCard, Card). |
src/data/sponsors.json | The single source of truth for funding platforms, sponsor tiers, and the sponsor roll. |
src/styles/sbpp.css | Custom CSS that mirrors the SourceBans++ panel's design tokens (brand orange, zinc neutrals, etc.). |
src/components/ | Custom Astro components, including Sponsors.astro, Footer.astro, SocialIcons.astro, and ThemeProvider.astro. |
public/robots.txt | Crawl directives and a pointer to the sitemap at https://sbpp.github.io/sitemap-index.xml. |
scripts/capture.mjs | Playwright-driven script used for capturing screenshots of the UI. |