gram/packages/docs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
abiwab d3c7cf1749
All checks were successful
CI / Build & Test (pull_request) Successful in 4m13s
docs(blog): align en 1.4.0 release post with fr version
2026-11-13 09:40:00 +01:00
..
.vscode feat(docs): initialize Astro 7.1 project for new documentation 2026-07-28 19:03:13 +02:00
public docs(scheduling): consolidate planning deep dives and streamline runtime docs 2026-11-12 15:13:29 +01:00
scripts chore(docs): raise the playground bundle budget to 1000 KB 2026-11-07 20:51:14 +01:00
src docs(blog): align en 1.4.0 release post with fr version 2026-11-13 09:40:00 +01:00
.gitignore feat(docs): initialize Astro 7.1 project for new documentation 2026-07-28 19:03:13 +02:00
astro.config.mjs docs(scheduling): consolidate planning deep dives and streamline runtime docs 2026-11-12 15:13:29 +01:00
CHANGELOG.md docs(release): tidy and order the 1.4.0 changelogs 2026-11-12 22:50:07 +01:00
package.json chore: release v1.4.0 2026-11-12 21:50:15 +01:00
README.md docs: replace default Astro starter README with project-specific docs 2026-08-03 21:49:44 +02:00
tsconfig.json feat(docs): add automatic French typography non-breaking spaces plugin 2026-10-06 08:52:55 +02:00

@gram-lang/docs

The Gram documentation site and browser playground: gram-lang.org. Built with Astro + Starlight, with a Vue-based playground island.

Structure

src/
├── components/       # Astro components (homepage, header/footer, Starlight overrides)
│   └── playground/    # Vue playground: editor, output panes, options
├── content/
│   ├── docs/           # Starlight docs collection (EN at docs/docs/**, FR at docs/fr/docs/**)
│   └── blog/            # Blog posts (en/, fr/)
├── data/              # Structured content: homepage copy, blog topics, API reference data
├── layouts/           # Layout.astro — shared shell for non-Starlight pages (home, blog, playground)
├── lib/               # Shared utilities (head scripts, FR/EN post resolution)
├── pages/             # Astro routes; fr/ mirrors the English tree
└── styles/            # global.css, passed to Starlight via customCss

Routing: Starlight docs live under /docs/** and /fr/docs/** (not at the root) purely via content-collection file layout, so they don't collide with the Astro-native homepage at /.

Commands

Run from this directory, or via turbo/bun run --filter=@gram-lang/docs <script> from the repo root:

Command Action
bun dev Start the dev server at localhost:4321
bun run build Build the static site to ./dist/, then check bundle size
bun run preview Preview the production build locally
bun run typecheck Run astro check

No environment variables are required — the site builds fully statically, with no runtime secrets.

Notes

  • astro/@astrojs/starlight/@astrojs/vue/@astrojs/mdx/@astrojs/markdown-remark are pinned to the current stable range in package.json; keep them on ^7.1.x/Starlight ^0.41.x or later — astro@7.0.2's dev server is broken in this hoisted Bun monorepo (fixed in 7.1.5).
  • scripts/check-bundle-size.mjs enforces a size budget on the playground's JS chunk (CodeMirror 6 + Shiki, self-hosted); raise the budget deliberately in that file if a change legitimately grows it.
  • scripts/generate-llms-full.ts regenerates public/llms-full.txt/llms.txt as a prebuild step.