Skip to content

Latest commit

 

History

History
72 lines (47 loc) · 1.6 KB

building.adoc

File metadata and controls

72 lines (47 loc) · 1.6 KB

Document Building

OGC Standard Document Template Initialisation and Compilation (Linux)

Commands to initialise and compile the OGC Metanorma Standard document template. These should be run from the root directory of this github repository.

  1. Download/update the Metanorma Docker Container

Note

docker pull metanorma/mn:latest

  1. Create new Metanorma OGC standard from OGC Template

Note

Example:

docker run -i -v "$(pwd)":/metanorma metanorma/mn metanorma new -d standard -t ogc -l https://github.com/metanorma/mn-templates-ogc 21_038_OGC_API_DGGS_Part_1

  1. Update Docker Instance with data from this github repository

Note

docker cp ./ <Docker_Container_ID>:"/metanorma/21_038_OGC_API_DGGS_Part_1"

Example: cd ./21_038_OGC_API_DGGS_Part_1 docker cp ./ 2622352e28ed:"/metanorma"

  1. Compile document

Note

docker start <docker_container> docker exec -it <docker_container> /bin/bash $> metanorma compile --agree-to-terms -t ogc -x xml,html,doc 21_038_OGC_API_DGGS_Part_1/document.adoc Example:

docker start 2622352e28ed docker exec -it 2622352e28ed /bin/bash $> metanorma compile --agree-to-terms -t ogc -x xml,html,doc 21_038_OGC_API_DGGS_Part_1/document.adoc

  1. Copy the compiled Metanorma documents back to the github repository local directory.

Note

docker cp <Docker_Container_ID>:"/metanorma/21_038_OGC_API_DGGS_Part_1" .

Example:

docker cp 2622352e28ed:"/metanorma/21_038_OGC_API_DGGS_Part_1" .

  1. Commit the changes and compiled Metanorma documents to github

Note

Example:

git commit -m "Changes to Conformance Class 1"

git push