metanorma-plateau: Metanorma processor for Plateau project, Japanese Ministry of Land, Infrastructure, Transport and Tourism
This gem processes Metanorma documents following the Metanorma model for generating MLIT Project PLATEAU documents.
Project PLATEAU documents are found at:
The gem is built on top of metanorma-jis with customized rendering to meet requirements of MLIT’s Project PLATEAU.
It provides the following functions:
-
Compiles Metanorma input into the Metanorma-PLATEAU XML format
-
Validates XML output against the Metanorma-Plateau document model
-
Errors are reported to console against the XML, and are intended for users to check that they have provided all necessary components of the document.
-
-
Metanorma-Plateau XML is then converted into desired output formats.
The following outputs are supported:
-
Primary: the canonical Metanorma-PLATEAU XML representation (
.xml
). -
Secondary: the Metanorma-PLATEAU XML representation is processed to generate the following outputs as end deliverable PLATEAU documents.
-
HTML (
.html
) -
PDF (
.pdf
)
-
This gem inherits from the metanorma-jis gem, and aligns closely to it.
Please see https://www.metanorma.org for instructions to get started.
You will need to setup your Git credentials for bundler or for HTTPS in order to fetch the software. Please refer to the following articles for details:
Using the metanorma
CLI:
$ metanorma --type plateau a.adoc # output HTML
$ metanorma --type plateau --extensions html a.adoc # output just HTML
$ metanorma --type plateau --extensions xml a.adoc # output Metanorma XML
-
Example documents: mn-samples-plateau.
-
Document templates: mn-templates-plateau.