XML Documentation - GeoscienceAustralia/egeodesy GitHub Wiki
XML Schema Documentation
We've generated documentation using the Oxygen XML Authoring tool. This can be done via the GUI or on the command-line. However this is a commercial product and a license is required. A script exists to generate the documentation in the GeodesyML/tools/documentation/generatedoco.sh. The conditions for its use are:
- Run on a machine with a licensed copy of OxygenML on it
- Run from tools/documentation directory
- No arguments are required
- Currently only Mac and Linux is supported. For Windows an equivalent DOS script (or Powershell) needs to be written.
- This script will generate the documentation to the tools/documentation/doc directory and will upload it to the GeodesyML github pages site at https://geoscienceaustralia.github.io/GeodesyML.
Options
I found that all options can be selected except for the Generate Index > Include resource hierarchy
, which when used causes an out of memory error for a large schema hierarchy like GeodesyML.
In summary:
- Tools > Generate Documentation > XML Schema Documentation
- Choose the geodesyML
- In the settings tab select all options except for Generate Index > Include resource hierarchy
Command-Line
To generate the documentation on GitHub project
Generate the documentation through OxygenXML - this will be done to the schemas directory along side the xsd
- cd ../doc/oxygen-generated
- find . -name "*xsd" -exec rm {} ;
- mv geodesyML.html index.html
- git init
- git add *
- git ci -m "Update oxygen-generated schema documenation with diagrams"
- git push --force [email protected]:GeoscienceAustralia/GeodesyML.git master:gh-pages