This is the source code for Interledger's documentation style guide, which lives at interledger.net. It is built with Starlight, a documentation framework based on Astro. It is hosted on GitHub Pages.
Inside this project, you'll see the following folders and files:
.
βββ public/
βββ src/
β βββ content/
β β βββ docs/
β βββ content.config.ts
β βββ env.d.ts
βββ astro.config.mjs
βββ package.json
βββ tsconfig.json
Starlight looks for .md or .mdx files in the src/content/docs/ directory. Each file is exposed as a route based on its file name.
Static assets, like favicons or images, can be placed in the public/ directory. When referencing these assets in your markdown, you do not have to include public/ in the file path, so an image would have a path like:
We are using Bun in this repository, but you could theoretically use the package manager of your choice. To install Bun, run
curl -fsSL https://bun.sh/install | bashUse Node.js 22.23.4 or later: Astro requires it. On older versions, bun run start and bun run build stop with an "is not supported by Astro" error. bun install doesn't check the Node version, so the error only shows up when you run Astro. The repo sets Node 24 in .nvmrc, and CI uses the same file.
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
bun install |
Installs dependencies |
bun run start |
Starts local dev server at localhost:1105 |
bun run build |
Build your production site to ./dist/ |
bun run preview |
Preview your build locally, before deploying |
bun run astro ... |
Run CLI commands like astro add, astro check |
bun run astro -- --help |
Get help using the Astro CLI |
bun run format |
Format and auto-fix code with Prettier & ESLint |
bun run lint |
Check formatting and linting without making changes |
You can substitute the bun commands with whatever package manager of your choice uses.
Check out Starlightβs docs, read the Astro documentation, or jump into the Astro Discord server.