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
bb0551ecc79400cb783638c02d4fd59574ac92c6/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 reading in display order under the rules for manuals, and that each clause keeps the laws one clause can break: steps and DIR, preconditions, obligation-holders, ONE against HAB, evidence and the canonical negations. It checks that every step is followed by a stated result, that every recovery starts from a failed precondition, that no manual paragraph is unannotated and that neither file 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 under werrorwolf, and the Nix must be formatted.

packages.<system>.default, design-kit-miso, 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 for GHC 10. cabal.project, horizon.lock and nix/horizon/ are generated from it by horizon-gen-nix 0.35.0.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-gen-nix?ref=refs/tags/0.35.0.0' -- horizon.vx