# web The zash website: a Hugo site in the project's `web/` directory, building to `web/public/`. Nothing is generated into the repository, and Hugo itself is not a build dependency of the shell. ## Local preview ```sh make docs # render the documents into web/ (see below) hugo server --source web # http://localhost:1313/ hugo --source web --minify # -> web/public/ ``` Hugo is a single Go binary; `go install github.com/gohugoio/hugo@latest` or a release tarball from github.com/gohugoio/hugo/releases both do. No theme module is used, so the site builds with no network access. ## Layout ``` web/ hugo.toml baseURL, title, menu, highlight style content/ _index.md home page docs/ the documentation pages, ordered by weight readme.md, design.md: written by `make docs` layouts/ baseof.html shell of every page home.html hero and the terminal card single.html a docs page, with the sidebar list.html a section index 404.html partials/ head, docs-nav assets/ css/zash.css the design css/chroma.css `hugo gen chromastyles --style=tokyonight-night` js/copy.js copy buttons on code blocks, optional static/ the logo; the specification and the Doxygen reference, copied in by `make docs`: zash-spec.html, zash-spec.pdf, reference/ ``` ## The documents `README.md`, `DESIGN.md` and the specification are the site's reference pages too, so `make docs` (the same target that writes `docs/` for the repository) puts copies here, and only here - they are ignored by git, like `docs/`: - `README.md` and `DESIGN.md` are already markdown, so they are copied with a front-matter block added, the logo block pointed at `static/zash-logo.svg`, a link into the other document turned into a `../design/` page link, and a link to any other file in the tree turned into a GitHub link. `notitle` there keeps `single.html` from printing the title twice, since each document opens with its own heading. - The specification is a page too: `web/spec-md.py` turns typst's HTML export into markdown, keeping the heading ids the spec cross-references itself by and carrying the MathML over as it is (browsers render it, so the page needs no TeX script). Typst has no markdown writer. The typeset HTML export and the PDF are copied beside it, and the docs sidebar links all three. - The source reference is the Doxygen HTML from `docs/html`, copied to `static/reference/`; its links are relative, so it serves as it is. So a checkout needs `make docs` before `hugo` for a complete site; the rest of the pages are hand-written. No theme module is used: the CSS is a few hundred lines, and the palette comes from `packaging/zash-logo.svg` - mainframe navy, periwinkle and a signal blue. The site is dark only, on purpose. The code blocks are highlighted with classes rather than inline styles (`markup.highlight.noClasses = false`), so `assets/css/chroma.css` has to match the `style` in `hugo.toml`. Regenerate both together: ```sh hugo gen chromastyles --style=tokyonight-night > web/assets/css/chroma.css ``` ## Publishing There is no deploy workflow yet: zash is a private repository and GitHub Pages is not available for one on a free plan. The options when it comes to publishing are a public repository, a paid plan with Pages enabled for this one, or a separate public repository that carries only `web/` and its workflow.