diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-25 01:02:03 -0600 |
|---|---|---|
| committer | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-25 01:02:03 -0600 |
| commit | 392381b2de8bce919735fce753b3740747f2b2fa (patch) | |
| tree | 34aa3101df173cb647f9fab6d922186b86df8f0a /web/README.md | |
| parent | c7f23b8a5fb86f8df51809aca64415bcadcaa9f6 (diff) | |
| download | zash-feat/web-site.tar.gz | |
web: a Hugo site for zashfeat/web-site
A site in web/, built with Hugo and no theme module, so it builds offline
from one Go binary:
hugo server --source web preview on localhost:1313
hugo --source web --minify -> web/public, which is ignored
Pages: a home page with the shell's pitch, a terminal card, the four
properties that define it and a short benchmark table, plus three docs
pages (building, development, status) in a section with a sidebar. The
palette comes from packaging/zash-logo.svg: mainframe navy, periwinkle, a
signal blue. Dark only, monospace where a shell would be monospaced.
Highlighting uses classes (`markup.highlight.noClasses = false`) against
assets/css/chroma.css generated with `hugo gen chromastyles --style=
tokyonight-night`, so code sits in the page instead of a monokai box.
site.css and copy.js go through Hugo's minify+fingerprint pipeline.
Two .gitignore fixes this needed: `docs/` matched web/content/docs/ (the
generated Doxygen output is at the root, so it is `/docs/` now), and
Hugo's .hugo_build.lock is ignored.
Not published yet: zash is private and Pages is not available for a
private repository on a free plan, so web/README.md records the options.
Diffstat (limited to 'web/README.md')
| -rw-r--r-- | web/README.md | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/web/README.md b/web/README.md new file mode 100644 index 0000000..3b5fadc --- /dev/null +++ b/web/README.md @@ -0,0 +1,58 @@ +# 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 +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 + 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 +``` + +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. |
