NixLabConnectionconnecting
ProjectsProject
web /

dreamstop.openfp.net

publicguest

dreamstop.openfp.net, the website and user manual of dreamstop, a language for continuous disambiguation

git clone git@nixlab.openfp.net:web/dreamstop.openfp.net.git
ec1e4025b5ba84b97bf40e4cd47100dc56fbd29e/BUILD.md

Building dreamstop.openfp.net

The page's package lives in dreamstop-openfp-net-web/, with the flake, stylesheet, images, manual and annotated prose at the top level.

Build, serve and check

Run these in the repository root.

nix build

builds the served directory into result/: index.html, the client bundle site.js and its .gz, the kit's static files and fonts under design-kit/, dreamstop.css, dreamstop.svg, og.png, and the user manual under manual/ as index.html and dreamstop.pdf. Nothing built is committed.

nix build .#manual

builds only the manual. Its source is manual/dreamstop.vx, in Inkwell. The build renders it to Typst with inkwell-render from the pinned inkwell-dsl input and compiles the Typst to PDF and HTML.

nix run .#serve

serves that directory on http://127.0.0.1:8000/.

nix flake check

runs the kit's checks on the page (render, CSP, links, reading without JavaScript, hydrate, bundle, card, pins and generated files), with the page's own expected links, text and preview tags. It also runs these:

  • prose checks that every sentence of the manual and of prose/front.vx carries a dreamstop annotation well formed under the rules for manuals, with its codepoints in slot order, that no manual paragraph is unannotated, and that neither has a semicolon.
  • manual-says checks that the manual's HTML says every annotated sentence, and that it does not mention Ithkuil.
  • The kit's reading-without-JavaScript check is given every sentence of prose/front.vx, so the page must say each one.
  • card-copy checks that the card says the tagline and shows dreamstop.svg. The package must build with -Werror, and the Nix must be formatted.

packages.<system>.default, manual and dreamstop-openfp-net-web too.

nix develop gives a shell with cabal and node for the package.

Regenerating the Horizon files

horizon.vx declares what the page needs beyond the horizon-javascript package set. overlay.nix, pkgs/, horizon-local.nix and horizon.lock are generated from it by horizon-config-shell 0.8.0 and are not edited by hand. After changing horizon.vx or the package's .cabal file, run this in the repository root:

nix run "git+https://nixlab.openfp.net/horizon/horizon-config-shell?ref=refs/tags/0.8.0" -- horizon.vx