The file dggs-zonequery.yml can be pasted into a SwaggerHub project to test the structure of the API An example such project is: https://app.swaggerhub.com/apis/rggibb/dggs-zonequery/
Commands to initialise and compile the OGC Metanorma Standard document template. These should be run from the root directory of this github repository.
-
Download/update the Metanorma Docker Container
Note
|
docker pull metanorma/mn:latest |
-
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 |
-
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" |
-
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 |
-
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" . |
-
Commit the changes and compiled Metanorma documents to github
Note
|
Example: git commit -m "Changes to Conformance Class 1" git push |