albedo.sh #
The site project publishes Albedo's landing page and builds its user documentation as static HTML.
index.htmlis the landing page with local assets and fonts.build-docs.mjsreads the repository'sdocs, checks sidebar coverage, and writessite/docswith search assets and the API reference.package.jsondefinesnpm run docsto build the documentation andnpm run devto preview the site throughvite.config.js.
Build and deployment #
Run npm ci and npm run docs in this directory before deployment. Every page
in the repository's docs directory needs an entry in the builder's sidebar.
The build fails when a page has none.
npm run dev serves the site and /docs/, rebuilds documentation on edits, and
shows build failures in Vite's overlay. docs-lake.js draws the
documentation background. The pages follow the system's light or dark theme. The
landing page uses Paper Mono under the OFL and still images
when JavaScript is off.
The docs workflow does this on every push to
main: it runs test/docs_drift.py, which checks the
links, commands, flags, defaults and paths the pages name against the tree,
builds the site, and deploys it when the repository has a WISPCTL_APP_PASSWORD
secret. To deploy by hand, run
wispctl deploy okami.mom --path site --site albedo --yes from the repository
root. .wispignore keeps the sources and node_modules out of
the deploy. The albedo.sh domain points at the albedo site.