Thank you for contributing to the SuperPlane documentation. This guide will help you get set up for local development.
- Node.js (version specified in
.nvmrcif present, or latest LTS) - npm
- Clone the repository:
git clone https://github.com/superplanehq/docs.git
cd docs- Install dependencies:
npm install- Start the development server:
npm run devThe site will be available at http://localhost:4321.
This documentation site is built with Starlight, a documentation framework built on Astro.
Key concepts:
- Starlight looks for
.mdor.mdxfiles in thesrc/content/docs/directory. Each file is exposed as a route based on its file name. - Images can be added to
src/assets/and embedded in Markdown with a relative link. - Static assets, like favicons, can be placed in the
public/directory. - Configure your site's sidebar, title, and other settings in
astro.config.mjs.
All commands are run from the root of the project:
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add, astro check |
npm run astro -- --help |
Get help using the Astro CLI |
- Follow the writing style guidelines in AGENTS.md
- Use clear, concise language
- Include code examples where helpful
- Add images to
src/assets/and reference them with relative paths - Keep markdown files to 120 characters width
- Documentation files go in
src/content/docs/ - Images go in
src/assets/ - Static assets go in
public/
Before submitting a pull request:
- Run the build to check for errors:
npm run build- Preview the production build:
npm run previewThis helps catch:
- Invalid slugs in
astro.config.mjs - Missing or invalid frontmatter
- Broken asset paths
- Create a branch for your changes
- Make your edits
- Test locally with
npm run build - Commit your changes
- Open a pull request
For more details on our writing style and conventions, see AGENTS.md.