Skip to content

metanorma/metanorma-plateau

Repository files navigation

metanorma-plateau: Metanorma processor for Plateau project, Japanese Ministry of Land, Infrastructure, Transport and Tourism

Gem Version Build Status Code Climate Pull Requests Commits since latest

Functionality

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:

  1. Compiles Metanorma input into the Metanorma-PLATEAU XML format

  2. 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.

  3. 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)

Structure

This gem inherits from the metanorma-jis gem, and aligns closely to it.

Quickstart

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:

Usage

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

Authoring

Please refer to Metanorma for ISO documentation for general information.

Examples