Metanorma UN samples
Building the sample
Clone the repository:
git clone https://github.com/metanorma/mn-samples-un/Build the documents via the provided Makefile from within repository root:
cd mn-samples-un
make clean allNote
By default, make expects that metanorma binary is available somewhere on your path.
If you are using Docker-based distribution of Metanorma, run export METANORMA_DOCKER=1, then make will invoke Metanorma through Docker container.
- See Getting started for the different ways of getting the Metanorma toolchain set up.
The following outputs will be built:
- UN Metanorma XML (UnDocument model spec) (
[filename].xml) - HTML (
[filename].html) - Word DOC (
[filename].doc) - PDF (
[filename].pdf) [added in https://github.com/metanorma/metanorma-un/releases/tag/v0.3.0]
Tip
If you're using macOS, the following sequence will rebuild the documents and open the HTML deliverable showing your changes:
make html
open *.htmlThis is handy if you're using the sample as a starting point to write your own document.