Skip to content

Commit

Permalink
Add autogen for material metadata
Browse files Browse the repository at this point in the history
Signed-off-by: ClemensLinnhoff <[email protected]>
  • Loading branch information
ClemensLinnhoff committed Sep 12, 2024
1 parent 19f6ee5 commit 438680f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .antora/modules/specification/nav_openmaterial.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Material
** xref:material/Introduction.adoc[]
** xref:material/Fileformat.adoc[]
** xref:material/Metadata.adoc[]
** xref:material/metadata.adoc[]
** xref:material/Material-parameters.adoc[]
9 changes: 5 additions & 4 deletions .github/workflows/antora-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ jobs:

- name: Generate AsciiDoc from JSON
working-directory: scripts
run: python3 json2asciidoc.py ../schemas/asset_schema.json metadata

- name: Copy generated AsciiDoc
run: cp scripts/metadata.adoc content/geometry/metadata.adoc
run: |
python3 json2asciidoc.py ../schemas/asset_schema.json metadata
mv metadata.adoc ../content/geometry/
python3 json2asciidoc.py ../schemas/material_schema.json metadata
mv metadata.adoc ../content/material/
- name: Configure Pages
uses: actions/configure-pages@v4
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# IDE specific files
.vscode/
.idea/
.idea/

# Autogenerated files
content/geometry/metadata.adoc
content/material/metadata.adoc
1 change: 0 additions & 1 deletion content/material/Metadata.adoc

This file was deleted.

2 changes: 1 addition & 1 deletion content/material/general-structure-index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

include::Introduction.adoc[leveloffset=+1]
include::Fileformat.adoc[leveloffset=+1]
include::Metadata.adoc[leveloffset=+1]
include::metadata.adoc[leveloffset=+1]
include::Material-parameters.adoc[leveloffset=+1]

0 comments on commit 438680f

Please sign in to comment.