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
ba33e8ac062053485c642a1813c996cc1e9efcf4/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, codepoints.css, dreamstop.svg, og.png, and the user manual as manual/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 typst-doc renders that Typst to PDF with the design kit's theme. The build generates the Typst around the body from nix/site.nix: the theme settings, the title page, and the colour of each code, from the table of layer colours that codepoints.css comes from. The accent colour is the manualAccent setting in nix/site.nix, one of zinc, violet, indigo or fuchsia. It is zinc, dreamstop's brand colour. The page size, margins, text sizes, spacing, tables and code styling are the values the quality-control handbook sets in its qc-layout, generated by quality-control-typst, and the codes sit on the page in their layer colours for the dark theme, the dark colours of the layer table. Every layer colour in nix/site.nix reaches WCAG AA (4.5:1) on white and zinc-100.

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:

  • manual-says checks that the manual PDF holds its reference of the codes, and that it does not mention Ithkuil or Quijada.
  • 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