Documentation site for GenGuardX ("GGX"), built with Astro Starlight.
- Node.js 20+ (22 recommended)
Install dependencies and start the dev server with live reload:
npm install
npm run dev
The site is served at http://localhost:4321.
npm run build
This outputs the static site to dist/ with the site root (/).
Pushing to main triggers .github/workflows/deploy.yml,
which builds the site with base URL / and publishes it to GitHub Pages.
The repository's Settings → Pages → Source must be set to GitHub Actions.
- Content lives in
src/content/docs/as Markdown (.md) or MDX (.mdx). - Navigation/sidebar order is configured in
astro.config.mjs. - Every page needs a
titlein its frontmatter. - Use Starlight asides for callouts:
:::note,:::tip,:::caution,:::danger. - For richer layouts (tabs, card grids) use MDX with Starlight components such as
<Tabs>,<TabItem>,<CardGrid>, and<Card>. - Co-locate images next to the page that uses them and reference them with relative paths so Astro can optimize them.
- Avoid using "the platform" and instead use "GenGuardX" so readers are clear on what is being said.
- Run a grammar/spell check on the content to fix any grammar issues and typos.