$ metanorma --type iso a.adoc # output HTML and DOC $ metanorma --type csd --extensions html a.adoc # output just HTML $ metanorma --type csd --extensions doc a.adoc # output just DOC $ metanorma --type csd --extensions xml a.adoc # output CSD XML
The gem translates the document into ISO XML format, and then validates its output against the ISO XML 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.
The gem then converts the XML into HTML and DOC.
Installation
If you are using a Mac, the https://github.com/metanorma/metanorma-macos-setup repository has instructions on setting up your machine to run Metanorma scripts such as this one. You need only run the following in a Terminal console:
$ bash <(curl -s https://raw.githubusercontent.com/metanorma/metanorma-macos-setup/master/metanorma-setup) $ gem install metanorma-iso $ gem install metanorma-cli
The metanorma-cli gem is the command-line interface for the Metanorma tool suite
(incorporating the metanorma executable seen above).