README.md

Static website

A static, space-themed project site with downloads and a manual generated from the user guide. Fonts and assets are local: no trackers, remote fonts, framework dependencies or backend services. Release metadata is loaded separately in the browser so approved downloads can change without rebuilding the pages.

Two independent parts

  • Website files: tracked source under website/, assembled in dist/website/. Rebuild these only when changing the site or its bundled documentation.
  • Public release archive: persistent packages/catalog metadata under dist/archive/, outside Git, served separately at the site's archive/ URL. The browser reads its JSON on page load. Adding an approved release requires only an archive update, not a static site build.

dist/website/ and its dist/website.tar.gz + .sha256 transfer are static-only: no archive, packages or private sources. dist/mirror/ remains the private verified package/source store. Editable catalogs, baselines and selected assets live in dist/.state/{release,test}/; .state/current/ inventories the public outputs. Back up archive, mirror and state together. The checkout's root archive/ holds legacy private source collections, never public site content.

For separate test/release targets, local-backup metadata recovery, verified-mirror-backed asset selection and safe local cleanup, see the maintainer deployment workflow. Local candidate binaries do not belong in the approved release catalog.

For a normal local website with real untagged packages, use python3 website/manage.py snapshot --id candidate-example after building and importing a source-matched candidate. Snapshot generates dist/website/, dist/archive/, the static-only tar/checksum and an automatically assembled public-only preview at packaging/build/website/current/site/. Tagged and untagged snapshots use the same UI; only the latest wording and red untagged distinction change, while listing fields vary. An untagged snapshot shows LATEST UNTAGGED RELEASE, not a test banner. Its replaceable dist/archive/untagged/ exists only when that candidate is selected; older tagged history remains. At a clean version-matched annotated tag, snapshot without --id requires the already verified approved release listing and omits both the untagged pointer and directory. See DEPLOYMENT.md for source checks, revision transitions and the manual-upload boundary.

The homepage and downloads page derive availability from archive/meta.json and per-release records, not hardcoded versions. Downloads group packages, helpers and sources with their checksums, copyable sha256sum -c verification commands, and instructions. Older entries stay keyboard-accessible and directly linkable. Static content/manuals work without JavaScript; download fallbacks link to the catalog and raw JSON rather than inventing availability.

See ARCHIVE.md for the metadata contract and safe upload order. Only tags explicitly approved by Terry may be published. Building files or creating a tag is not approval, and the website never scans tags or directories and promotes them automatically.

Build and preview

For a candidate preview, first import its package into the private mirror in an equipped environment, then use website/manage.py init/add/build/check --target test with explicit --asset and --mirror-artifact selections; see the preview procedure in DEPLOYMENT.md. Use enrich --target test --id ... --presentation ... --arch-dir ... to add a source-matched helper and local Arch build kit to that same listing; omit --arch-dir on later text-only edits. See the deployment guide's complete candidate-listing section for verification and boundaries. Only serve packaging/build/website/test/site/ on loopback. Release build previews use packaging/build/website/release/site/. The test preview's banner/title and candidate catalog are not public release evidence. plan rejects test. The independent site-only builder below remains supported.

For a managed snapshot preview, with Python 3.10 or newer:

sh
1python3 website/manage.py snapshot --id candidate-example
2python3 -m http.server 8000 --bind 127.0.0.1 \
3 --directory packaging/build/website/current/site

At the approved annotated tag, omit --id. Open http://127.0.0.1:8000/. The preview combines only public static pages and the public archive. Never serve the dist/ root, repository, mirror or .state/. After cleaning scratch, regenerate the same preview from retained public outputs:

sh
1./packaging/clean-build.sh # dry-run
2./packaging/clean-build.sh --apply # stop builds first
3python3 website/manage.py preview

The independent python3 website/build.py remains a static-only builder; it does not generate catalogs or put an archive inside dist/website/. It updates the managed static directory, tarball and checksum; manage.py static is equivalent. A static-only server can inspect pages but lacks local download metadata. Use the combined preview for download checks. Metadata-only updates do not need a static rebuild. Keep all disposable build/export work under packaging/build/.

Paths work at a domain root or subdirectory. The manual/static content work without JavaScript; download fallbacks link to raw catalog JSON. Select the appropriate checkout source for static code and documentation; final tag builds use the approved annotated tagged input. For old managed dist/deploy/ state, see migration: preserve and move unknown legacy root outputs elsewhere before manage.py migrate-layout.

The static build includes a permissive robots.txt that allows all crawlers. Serve it at the origin's /robots.txt; when hosting the site in a subdirectory, the origin operator must manage that root-level file separately. Changes to this crawler policy need only a static rebuild and upload, not changes to the release catalog, application version, tags or packages.

Tests

The Python suite checks built pages, internal links, the manual renderer, and preservation of an independently managed archive. Missing archive data is allowed in a site-only build.

The non-owner readability probe needs root (it drops to UID 65534), or an explicitly selected existing authorized image with Python:

sh
1WEBSITE_PUBLIC_READ_IMAGE=localhost/splotch-blot-appimage:stack \
2 PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s website -v

This uses no pull/network and mounts only generated public fixtures read-only, checking permission-preserving copy and tar transfer. Without either route the non-owner probe skips, but permission-bit tests still run. Never relax private store permissions to make a serving/readability check pass.

For browser-side metadata validation, error handling, retry, safe text rendering, relative URLs, and archive-only updates:

Use website/tests/prepare.py to prepare isolated browser fixtures, then serve only packaging/build/website-tests/ on loopback and open its /tests/ page. Keep such disposable work under packaging/build/, not in persistent public outputs. The harness runs the actual JS module against in-memory fixtures and reports each result. Its /downloads.html uses synthetic JSON and harmless text files for visual inspection. Never deploy browser fixtures: their artifacts and tags are explicitly TEST ONLY, not approved releases. Tests are not copied into the normal website build.

Source layout

  • layout.html: shared head, header, navigation, and footer.
  • pages/: home, downloads, about, and agent resource content.
  • assets/site.css: responsive layout and the dark space styling.
  • assets/stars.svg, assets/stars-bright.svg: generated, seamlessly tiling starfield layers (deterministic seeds); the bright layer twinkles unless the visitor prefers reduced motion.
  • assets/releases.js: dependency-free ES module; validates and renders JSON.
  • assets/gallery.js: screenshot selection, with automatic changes suppressed for hidden pages or reduced motion. The initial screenshot works without JS.
  • assets/preview-{orbit,park,telescope,flower}.webp: actual independent application window captures, cropped to exclude the desktop. The matching PNG drawings under artwork/ were created and saved in Splotch & Blot itself; keep them as editable source examples, not in the deployed site bundle. Cropping and WebP encoding are presentation steps; the artwork itself is not externally retouched.
  • ../assets/org.splotchblot.SplotchBlot.svg: canonical icon; also used to derive the pale background without duplicating the icon source; here it is blurred into a nebula.
  • ../docs/USAGE.md: source for the bundled HTML and Markdown manual.
  • ../cmd/native/icons.go and ../tools/tools.go: the application's toolbar icons and tool catalog, read at build time so the HTML manual shows exactly the icons, tool names, order and keys used by the app and its in-app Help.
  • ../cmd/native/shortcuts.go and ../cmd/native/ui_actions.go: the in-app Keyboard tab and its accelerators, used to check and decorate the manual's Keyboard shortcuts section.

The small manual renderer supports headings, paragraphs, bullet lists, tables, links, bold text, and inline code. It escapes raw HTML and is not a general Markdown engine; extend and test it before introducing new syntax. The HTML manual adds app-style decorations that never appear in the Markdown manual:

  • A heading with a tool key, such as ### Text (T), gets that tool's icon tile and a keycap, as does its table-of-contents entry.
  • A table whose header starts | Tool | Key | must list every tool in toolbox order with the app's names and keys; the build fails when they drift.
  • Keyboard shortcuts use a #### Group heading per in-app Keyboard group, then a | Shortcut | Action | (or | Input | Action |) table. Groups and actions must match the app in order; each row lists the app's primary binding and may add alternatives joined by or. Text after : in an action is a muted detail line. The HTML adds row icons and keycaps and hides the column labels visually, like the app's grid. #### headings stay out of the sidebar.
  • Bold key names such as **Esc** or **Ctrl+Z** render as keycaps.
  • Bold control names listed in CONTROL_ICONS in build.py get the matching control icons once per section. The tests require every listed phrase to appear in the manual; update the map when renaming a control.

The in-app Help is separate and needs a consistency review at release time.

The site manual is written as live documentation for the latest version, with no development or preview labels; deploy a site built from the approved release's tagged commit so the manual matches it. Agents discover the Markdown manual through the page's rel="alternate" link, the agent page and llms.txt. Archive releases may also supply version-matched manuals inside their tag directories and link them from their manifests. The agent page and llms.txt point to the live catalog, not a baked-in release list.

Transfer and deploy

manage.py snapshot produces dist/website.tar.gz and dist/website.tar.gz.sha256 automatically. This is a static-only transfer, independent of archive packages: it contains no archive/, package bytes, mirror or private manager state. Check the checksum after transfer:

sh
1(cd dist && sha256sum -c website.tar.gz.sha256)

Extract into a new staging directory and review before switching the server. For an initial full deployment, separately copy the reviewed dist/archive/ to the server's archive/ path. For a static update, upload only the static files and leave the public archive intact; never delete-sync a static-only bundle over the whole live site. No tooling connects to a remote host, and creating outputs does not authorize deployment.

For a later archive-only release: upload the new, complete archive/<tag>/ directory first; atomically replace archive/meta.json last. Leave the HTML, CSS, JS, and all old release directories untouched. Metadata fetches bypass browser caching; the server/CDN must also allow fresh JSON responses. Do not replace published binaries under existing URLs or run a destructive sync that deletes older downloads.

Artifact assembly, tagged-source provenance checks, checksum generation, and approval remain part of the release process, not a browser feature. Follow the release guide.