-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scripts to generate documentation tables HTML from XSD (#131)
This change adds the scripts to generate documentation tables HTML from XSD and makes Travis render them during build. Like xmllint this may lead to an "Travis CI" commit on a feature branch to update the documentation tables if not run locally before committing. Those commits should be squash-and-merged like done for issues found with xmllint too. The documentation rendering still contains serveral issues in the state which have to be addressed as followups with Github issues each. This pull request contains the following changes: * First attempt to generate tables from XSD * Improved scripts * convert asciidoc to html using asciidoctor * rebased and adapted for current changes_for_v1.1 branch * changed directory for generated files * delete former asciidoc files on re-run * improved shell syntax * added comments * added .gitignore for generated files * consistent formatting and LF at line endings for theme.yml and ixsi-to-adoc-table.xsl * Changed sorting form alphabetical to order of appearance (addresses "12. The sorting of the chapters was done in alphabetical order? I would prefer the sorting from the XSD file.") * Generate a single adoc and html file for OJP from all Schema files * Rename xsl transformation file * Use XSD annotation>documentation as section title * Bugfix for broken formatting of top level element which happened due to the missing type definition (__ instead of _type_) * Bugfix for broken formatting of complex type element (which happened due to a missing line break) * Changes "type" to "complex type". * Added main schema annotation for each OJP xsd file and aligned "sections" * Added automatic generation of documentation tables using Travis * Render element ref if name is not set * In element only render | for last table column if it is not empty * Render cardinality of elements and groups as separate column (Fixes "2. The cardinality of elements (0..1, 1..unbounded, etc.) should get a separate column or be part of the type column.") Co-authored-by: Stefan de Konink <[email protected]>
- Loading branch information
1 parent
c18a4ea
commit 7097c72
Showing
23 changed files
with
11,608 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
language: minimal | ||
|
||
before_script: | ||
- sudo apt-get install -qq libxml2-utils | ||
- sudo apt-get install -qq libxml2-utils xsltproc asciidoctor | ||
|
||
script: | ||
- bash .travis/xmllint-check.sh | ||
- bash .travis/xmllint-check.sh && bash docs/generate-tables.sh | ||
|
||
after_script: | ||
- bash .travis/travis-ci_git-commit.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.