To produce a single standalone output file that contains everything the viewer needs to correctly see the page do:You can now just give the generated
npx ourbigbook --embed-resources --embed-includes index.bigb
_out/html/index.html
to any reader and they should be able to view it offline without installing anything. The flags are:--embed-includes
: without this,\Include[not-index]
shows as a link to the file_out/html/not-index.html
which comes fromnot-index.bigb
With the flag,not-index.bigb
output gets embedded into the output_out/html/index.html
directly--embed-resources
: by default, we link to CSS and JavaScript that lives insidenode_modules
. With this flag, that CSS and JavaScript is copied inline into the document instead. One day we will try to handle images that way as well