This directory contains the documentation site for histui, built with Docusaurus.
# Install dependencies
npm install
# Start development server (hot reload)
npm start
# Build for production
npm run build
# Serve production build locally
npm run serve
docs/
├── docs/ # Documentation content (MDX/Markdown)
│ ├── intro.md # Introduction page
│ ├── quickstart/ # Getting started guides
│ ├── histui/ # histui CLI documentation
│ └── histuid/ # histuid daemon documentation
├── src/
│ ├── css/ # Custom styles
│ └── pages/ # Custom React pages (homepage)
├── static/ # Static assets (images, examples)
├── docusaurus.config.ts # Site configuration
└── sidebars.ts # Sidebar navigation
npm start
This starts a local development server at http://localhost:3000/histui/. Most changes are reflected live without restarting.
npm run build
Generates static content into the build directory. Use npm run serve to test the production build locally.
Local search (via @cmfcmf/docusaurus-search-local) only works on the production build:
npm run build
npm run serve
Search won’t function during npm start.
Each page should include frontmatter:
---
title: Page Title
description: Brief description for SEO
sidebar_position: 1
---
docs/The sidebar is auto-generated from the file structure. To customize order or grouping, edit sidebars.ts.
Documentation versions are created automatically when a release is published:
npm run docusaurus docs:version X.Y.Zversioned_docs/version-X.Y.Z/versions.jsonManual versioning (rarely needed):
npm run docusaurus docs:version 1.0.0
Documentation is deployed to GitHub Pages automatically:
main branch (changes in docs/).github/workflows/docs.ymlbash language specifier for shell commandstoml specifier for configuration examples