This website
The website is an Astro + Starlight project in docs-site/. Pages are Markdown files in docs-site/src/content/docs/.
Run it locally
Section titled “Run it locally”cd docs-sitenpm installnpm run dev # http://localhost:4321/hearthwork/npm run build # static site in docs-site/distnpm run preview # serve the built siteThe generated CLI reference
Section titled “The generated CLI reference”docs-site/src/content/docs/reference/cli.md is generated from hearthwork <command> --help. Do not edit it by hand.
python docs-site/scripts/gen_cli_reference.py # regeneratepython docs-site/scripts/gen_cli_reference.py --check # exit 1 if it is out of dateThe deploy workflow runs --check, so a change to a command’s help that is not regenerated fails CI.
Deploying
Section titled “Deploying”.github/workflows/website.yml builds and deploys to GitHub Pages on pushes to main that touch docs-site/, src/hearthwork/ or the README. One-time step: in the repository on GitHub, go to Settings > Pages and set Source to GitHub Actions.
Custom domain
Section titled “Custom domain”The site builds for https://billymrx1.github.io/hearthwork/ by default. To use a custom domain, see docs-site/README.md in the repository.