Static site
Getting started
A static site
The reference integration turns a directory of .tex snippets into a self-contained site: one HTML page, the viewer, and the fonts the snippets use. Each snippet becomes one block, in file-name order; a file named preamble.tex is not a block but is prepended to every snippet’s preamble.
node integrations/vanilla/build.ts examples/demo -o site
node scripts/serve.ts site # or open site/index.html from disk
The page works at a domain root, under a subpath or opened from disk, because fonts are found relative to the viewer script. To embed blocks in a page of your own, follow the DOM contract in src/viewer/README.md: one element per block carrying the encoded node list, the schema once per page, and the two scripts.