This page is docs/WEBSITE.md in the repository. The repository copy is the source; this is the same text with its links rewritten for the wiki.
The website
<https://tilas01.github.io/veilvoice-website/>
A static site with no framework, no build step and no bundler. Every page is HTML on disk, every script is a plain ES module the browser loads directly, and nothing is minified. That is deliberate: a site about a program whose whole claim is that you can check what it does should itself be something you can read without tooling.
Two editions, and why the second is not a stub
The ordinary site is website/. It uses JavaScript for the things JavaScript is genuinely good at: search, theme switching, replaying recorded terminal sessions, hashing a downloaded file in the browser.
The no-JavaScript edition is website/nojs/, and it is supported rather than tolerated. A reader with scripts off gets a real index of the whole project, not an apology. website/nojs/search.html carries the entire corpus in the page, so the browser's own find-in-page searches it, and it is generated from the same walk as the machine-readable index the scripted search fetches. The two cannot disagree, because one generator writes both.
Everything on the ordinary site that needs a script also has a <noscript> answer, and the rule is the one reveal.js states about itself: content must never stay invisible.
What writes what
Almost nothing on this site is typed by hand. The generators are listed in dependency order in tools/verify.py, and that order matters: the search index is built last, after the SEO pass has edited the pages it indexes.
| Tool | Writes |
|---|---|
tools/docs/generate.py | The reference: a page per crate and per source file, for the site, the repository and the wiki |
tools/docs/sources.py | The syntax-highlighted source pages under website/reference/ |
tools/docs/guides.py | The per-program guides, assembled from docs/USER_GUIDE.md |
tools/docs/wiki.py | The wiki's landing page, sidebar and document pages |
tools/site/wiki_site.py | The whole wiki again, as pages of this site under website/wiki/ |
tools/site/split.py | The section pages, split out of index.html |
tools/site/roadmap.py | roadmap.html, from ROADMAP.md |
tools/site/faq.py | faq.html, from docs/FAQ.md |
tools/site/releases.py | releases.html, from CHANGELOG.md |
tools/site/demo.py | website/js/demo-data.js, from the recorded sessions |
tools/site/seo.py | Canonical addresses, the sitemap and robots.txt |
tools/graphs/generate.py | assets/graphs/: a timeline picture of every crate and source file, from tools/graphs/history.json and ROADMAP.md |
tools/search-index/generate.py | search-index.json and nojs/search.html |
Each writes a header saying it is generated. Editing the output is wasted work: the matching --check run in CI regenerates into memory and compares.
website/nojs/index.html is the one page written by hand rather than generated, because it is a summary of the project rather than a view of something else.
The wiki, in two places, from one source
The manual is written once, in docs/ and at the repository root, and read in three places: in the repository, on the GitHub wiki, and on this site. Two generators make the second and third from the first, and --check on each fails a build if they have parted company, so none of the three can say something the others do not.
tools/docs/wiki.py writes wiki/, which is the GitHub wiki's own format: a flat set of Markdown pages, links rewritten for a namespace with no directories. tools/site/wiki_site.py renders those same pages here, in this site's style rather than GitHub's, through the renderer the front page already uses.
.github/workflows/wiki.yml copies wiki/ into the wiki repository. It checks on every push and publishes only when a release is published, from the commit that release was built from, for the reason pages.yml deploys the site only then: what is published describes what has been released. Work is committed to main every day, so publishing on a push would describe work nobody can download yet. Either workflow can be run by hand from the Actions tab, and then publishes the newest release again.
One step in this is not automatic and cannot be. A GitHub wiki is a git repository of its own at <repo>.wiki.git, and enabling the wiki in Settings does not create it. It is created when a first page is saved through the web interface. Until somebody does that once, the publish step has nothing to push to. The workflow tries to create the repository itself first, by initialising one and pushing it, so this may never be needed. If GitHub refuses that, the publish is skipped with a warning and a note in the run's summary rather than failed, because a missing wiki is a setting and not a fault in the commit, and a red cross on every release for it would hide the ones that matter. The pages are still checked on every push, and the website's copy of the wiki does not depend on this at all. The one-time step is:
- Open the repository's Wiki tab.
- Create a page with any content at all, and save it.
- Re-run the
wikiworkflow.
What that first page says does not matter. Everything the wiki holds is replaced from wiki/ on the first successful run. See F-199 in AUDIT.md, where this went unnoticed for seven consecutive failed runs, and F-259, where the failure became a skip.
The scripts
Twelve modules, 3178 lines, no dependencies and nothing from a CDN.
| Module | What it does |
|---|---|
demo-data.js | Generated. The facts the demonstration is drawn from |
legal.js | The welcome dialogue: licence, liability waiver, and the AI-assistance disclosure |
markdown.js | A small Markdown renderer and syntax highlighter, written rather than pulled from a CDN |
prefetch.js | Quietly fetches the few pages a reader is most likely to open next |
repo.js | Live repository data: stars, description, latest release, rendered README |
reveal.js | Reveal-on-scroll, under one rule that outranks the effect: content must never stay invisible |
search.js | Scores a query against the committed index |
sessions.js | Replays five recordings of the real programs at typing speed |
teleport.js | Makes a fragment link land on the heading it names, clear of the sticky header |
theme.js | Nine palettes, Tokyo Night default, kept in localStorage and never sent anywhere |
verify.js | SHA-256 of a downloaded archive, computed in the browser |
walkthrough.js | Every screen of the application as a photograph, and the command line as a list of jobs |
Why markdown.js exists at all. Pulling marked and highlight.js off a CDN would have been three lines. It would also have meant two more parties able to change what this site executes, on a site whose subject is not trusting people by default.
Nothing here phones home. theme.js keeps a preference in localStorage, which stays in the browser. verify.js hashes the file you give it locally: the file never leaves the machine. repo.js is the one module that fetches anything across the network, and what it fetches is GitHub's public API about this repository.
Styles and palettes
website/css/themes.css holds nine palettes and main.css the layout. Both are documented as source pages in the reference, the same as the scripts. The palettes are shared with the desktop application, so a reader who picks one on the site sees the same one in the program.
Running it locally
python tools/site/serve.py
It serves website/ with correct MIME types on a local port. There is an nginx configuration alongside it for anybody who would rather use that.
The site tests check the pages without a browser:
node tools/site-tests/run.js
Those cover characters, structure, rendering, hostile input, the scroll reveal, that every page is reachable, and that the local site serves every address the sitemap claims.
Addresses
Every page states its own canonical address and appears in sitemap.xml; robots.txt allows every crawler and names the sitemap. tools/site/seo.py writes all three, and --check fails if a page has been added without one.
This page is also Doc-WEBSITE in the GitHub wiki, and both are generated from the same document in the repository.