From 438680f4e76158542eefc83705b7e39a964390f9 Mon Sep 17 00:00:00 2001 From: ClemensLinnhoff Date: Thu, 12 Sep 2024 18:03:24 +0200 Subject: [PATCH] Add autogen for material metadata Signed-off-by: ClemensLinnhoff --- .antora/modules/specification/nav_openmaterial.adoc | 2 +- .github/workflows/antora-build.yml | 9 +++++---- .gitignore | 6 +++++- content/material/Metadata.adoc | 1 - content/material/general-structure-index.adoc | 2 +- 5 files changed, 12 insertions(+), 8 deletions(-) delete mode 100644 content/material/Metadata.adoc diff --git a/.antora/modules/specification/nav_openmaterial.adoc b/.antora/modules/specification/nav_openmaterial.adoc index 8d4ab7ca..000c775c 100644 --- a/.antora/modules/specification/nav_openmaterial.adoc +++ b/.antora/modules/specification/nav_openmaterial.adoc @@ -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[] diff --git a/.github/workflows/antora-build.yml b/.github/workflows/antora-build.yml index eccd8779..3b20adb2 100644 --- a/.github/workflows/antora-build.yml +++ b/.github/workflows/antora-build.yml @@ -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 diff --git a/.gitignore b/.gitignore index cb33100c..9beb6353 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ # IDE specific files .vscode/ -.idea/ \ No newline at end of file +.idea/ + +# Autogenerated files +content/geometry/metadata.adoc +content/material/metadata.adoc \ No newline at end of file diff --git a/content/material/Metadata.adoc b/content/material/Metadata.adoc deleted file mode 100644 index c9a3581c..00000000 --- a/content/material/Metadata.adoc +++ /dev/null @@ -1 +0,0 @@ -= Metadata \ No newline at end of file diff --git a/content/material/general-structure-index.adoc b/content/material/general-structure-index.adoc index 630c7170..77016227 100644 --- a/content/material/general-structure-index.adoc +++ b/content/material/general-structure-index.adoc @@ -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]