histui

histui Documentation

This directory contains the documentation site for histui, built with Docusaurus.

Quick Start

# Install dependencies
npm install

# Start development server (hot reload)
npm start

# Build for production
npm run build

# Serve production build locally
npm run serve

Project Structure

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

Development

Starting the Dev Server

npm start

This starts a local development server at http://localhost:3000/histui/. Most changes are reflected live without restarting.

Building

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.

Writing Documentation

Markdown Features

Frontmatter

Each page should include frontmatter:

---
title: Page Title
description: Brief description for SEO
sidebar_position: 1
---

Adding New Pages

  1. Create a Markdown file in the appropriate directory under docs/
  2. Add frontmatter with title and position
  3. The page appears automatically in the sidebar

The sidebar is auto-generated from the file structure. To customize order or grouping, edit sidebars.ts.

Versioning

Documentation versions are created automatically when a release is published:

  1. GitHub Actions workflow detects new release
  2. Runs npm run docusaurus docs:version X.Y.Z
  3. Creates snapshot in versioned_docs/version-X.Y.Z/
  4. Updates versions.json

Manual versioning (rarely needed):

npm run docusaurus docs:version 1.0.0

Deployment

Documentation is deployed to GitHub Pages automatically:

Style Guide

Resources