cd hivetrace-docs
pnpm installcd hivetrace-docs
pnpm devGenerate static files for production:
cd hivetrace-docs
pnpm buildThe build artifacts will be stored in the dist/ directory.
To test the production build locally:
cd hivetrace-docs
pnpm previewContent is stored in hivetrace-docs/src/content/docs.
- Create a Russian page:
- example:
hivetrace-docs/src/content/docs/guides/my-topic.md
- example:
- Add an English version in the mirrored path:
- example:
hivetrace-docs/src/content/docs/en/guides/my-topic.md
- example:
- Add frontmatter at the top of the file:
---
title: "Page title"
sidebar:
order: 10
draft: true
---- Fill in the content using Markdown/MDX.
- If the folder is connected via
autogenerateinhivetrace-docs/astro.config.mjs, the page will appear in the sidebar automatically. - Verify locally:
cd hivetrace-docs
pnpm devTo publish, remove draft: true (or remove the draft field).
This repo is configured to deploy via GitHub Actions to GitHub Pages.
- Ensure the repository in the
hivetraceorg is nameddocs(so the URL ishttps://hivetrace.github.io/docs/). - In GitHub repo settings: Settings → Pages → Build and deployment → Source: GitHub Actions.
- Push to
main— the workflow will builddocs/and publish automatically.
| Script | Description |
|---|---|
pnpm dev |
Starts the development server |
pnpm build |
Builds the app for production |
pnpm preview |
Serves the production build locally |