Skip to content

Documentation is part of the product. If a change alters a user-facing flag, command, setting, or behavior, update these docs in the same pull request.

The documentation site ​

The published site is a VitePress 1 project in website/:

text
website/
├── index.md              # landing page (layout: home)
├── docs/                 # Markdown documentation
│   ├── index.md          # /docs/ landing page
│   ├── concepts/
│   ├── tutorials/
│   ├── getting-started/
│   ├── guides/
│   ├── reference/
│   └── contributing/
├── .vitepress/
│   ├── config.mjs        # site config, nav, sidebar, search
│   ├── theme/            # custom theme, CSS, Vue components
│   └── public/           # logo, favicon, social card, .nojekyll
├── package.json
└── package-lock.json

Preview locally:

bash
cd website
npm install
npm run dev

Build the static site:

bash
npm run build      # website/.vitepress/dist
npm run preview

VitePress fails the build on dead internal links, so verify locally before opening a pull request.

Adding or editing a page ​

  1. Create or edit a Markdown file under website/docs/.
  2. Add front matter with title and description.
  3. Register the page in themeConfig.sidebar in .vitepress/config.mjs using its route (for example /docs/reference/tools).
  4. Use relative .md links between docs; VitePress rewrites them to the right URLs and prepends the /M31A/ base automatically.
  5. Keep headings in sentence case, write in second person, and include working examples.

The visual system lives in .vitepress/theme/custom.css. Reusable Vue components are in .vitepress/theme/components/ and registered globally in .vitepress/theme/index.js. Use <DocCards /> on index pages and <TerminalShowcase /> on the home page.

Deployment ​

.github/workflows/docs.yml builds on pushes to master that touch website/ and deploys .vitepress/dist through actions/upload-pages-artifact and actions/deploy-pages. Pull requests validate the build without deploying.

The site is published at https://eshanized.is-a.dev/M31A/ (the eshanized.github.io/M31A/ URL redirects there). Repository Pages settings use GitHub Actions as the publishing source. Workflow actions are pinned to commit SHAs by repository policy.

Generated documentation ​

The repository root contains scripts that generate reference material from source of truth:

CommandOutput
npm run schema:settingsschemas/settings.schema.json
npm run docs:settingsSettings sections in docs/reference/configuration.md and docs/cli/settings.md (when those files exist)
npm run docs:keybindingsShortcut tables in docs/reference/keyboard-shortcuts.md (when the file exists)

These scripts write only between marker comments such as <!-- SETTINGS-AUTOGEN:START --> and <!-- SETTINGS-AUTOGEN:END -->, and skip files that are not present. Use --check to verify generated content is current. When a setting or keybinding changes, update the corresponding page in this site as well.

Root documentation files ​

The repository root keeps README.md, CONTRIBUTING.md, ROADMAP.md, SECURITY.md, and M31A.md. Keep those in sync when product behavior changes.

Style guide ​

  • Use sentence case for headings and present tense.
  • Address the reader as "you".
  • Keep paragraphs short and lead with the outcome (BLUF).
  • Tag code fences with a language (bash, json, text).
  • Use VitePress callouts (::: note, ::: tip, ::: warning) sparingly.
  • Test every command example before committing.

Before you submit ​

bash
cd website && npm run build
cd .. && npm run preflight

Next steps ​

See Development and Testing.

Built with VitePress. Powered by NVIDIA NIM.