OurBigBook CLI is the executable program called
ourbigbook which comes when you install npm install ourbigbook. It is the main command line utility of the OurBigBook Project.Its functionality will also be exposed on GUI editor support such as Visual Studio Code to make things nicer for non-technical users.
The main functionalities of the executable are to:
- convert OurBigBook Markup files to HTML files or other formatsThe HTML files can then be either viewd from your filesystem on a browser, or uploaded and hosted very cheaply or for free so that others can see it, e.g. on GitHub Pages.
- publish your content, either to OurBigBook Web or as a static website
Or if you are a programmer: OurBigBook CLI is a Static Wiki generator that can be invoked from the command line with the
ourbigbook executable.OurBigBook CLI is how cirosantilli.com is published.
OurBigBook Web takes as input the exact same format of OurBigBook Markup files used by OurBigBook CLI. TODO support/improve import/export to/from OurBigBook Web, see also:
-W, --web.The OurBigBook CLI calls the OurBigBook Library to convert each input file.
Convert a
.bigb file to HTML and output the HTML to a file with the same basename without extension, e.g.:ourbigbook hello.bigb
firefox _out/html/hello.htmlFiles named
index.bigb are converted to index.html so that they will show on the website's base address:ourbigbook index.bigb
firefox _out/html/index.htmlConvert all The HTML output files are placed right next to each corresponding
.bigb files in a directory to HTML files, e.g. somefile.bigb to _out/html/somefile.html:ourbigbook ..bigb.The output file can be selected explicitly with:
--outfile <outfie>.Output to stdout instead of saving it to a file:
ourbigbook --stdout index.bigbIn order to resolve cross file internal links, this actually does two passes:
- first an ID extraction pass, which parses all inputs and dumps their IDs to the ID database
- then a second render pass, which uses the IDs in the ID database
Tagged
Ancestors
Incoming links
- Home
- index.js
- Arbitrary code execution
- Built-in LaTeX macros
convertfunction- Demo data local file output
distdirectory- Do the release
- External link
- Inline user-defined LaTeX macros
- Local development server
- OurBigBook CLI enforces consistent header tree by default
_obbdirectoryignoreweblinkFromStaticHeaderMetaToWeb- OurBigBook Library environemnt variable
- OurBigBook Markup
- OurBigBook Web directory structure
- OurBigBook Web dynamic article tree
- OurBigBook Web restrictions compared to CLI
--publish-target local- Quick start
- Subdirectory deployment
- UnsafeXss
--web-dry