From 6180d4f2c0723a62d8d500b5401f1a2526ff0d02 Mon Sep 17 00:00:00 2001 From: ClemensLinnhoff Date: Fri, 25 Oct 2024 11:22:07 +0200 Subject: [PATCH] Add documentation generation Signed-off-by: ClemensLinnhoff --- .github/workflows/antora-build.yml | 2 ++ .github/workflows/validate-json.yaml | 6 ++++++ content/index.adoc | 1 + content/nav-openmaterial.adoc | 1 + 4 files changed, 10 insertions(+) diff --git a/.github/workflows/antora-build.yml b/.github/workflows/antora-build.yml index a4bba0a..6ed8ab8 100644 --- a/.github/workflows/antora-build.yml +++ b/.github/workflows/antora-build.yml @@ -53,6 +53,8 @@ jobs: mv material-schema.adoc ../content/material/ python3 json2asciidoc.py ../schemas/material_emp_schema.json mv material-emp-schema.adoc ../content/material/ + python3 json2asciidoc.py ../schemas/material_optical_schema.json + mv material-optical-schema.adoc ../content/material/ python3 json2asciidoc.py ../schemas/material_brdf_schema.json mv material-brdf-schema.adoc ../content/material/ diff --git a/.github/workflows/validate-json.yaml b/.github/workflows/validate-json.yaml index f585f71..2ef5b1d 100644 --- a/.github/workflows/validate-json.yaml +++ b/.github/workflows/validate-json.yaml @@ -42,6 +42,12 @@ jobs: schema: ./schemas/material_emp_schema.json file: ./examples/*_emp.xompt + - name: Validate optical material properties JSON schemas + uses: cardinalby/schema-validator-action@v3 + with: + schema: ./schemas/material_optical_schema.json + file: ./examples/*_optical.xompt + - name: Validate brdf JSON schemas uses: cardinalby/schema-validator-action@v3 with: diff --git a/content/index.adoc b/content/index.adoc index 974772b..eff93de 100644 --- a/content/index.adoc +++ b/content/index.adoc @@ -47,6 +47,7 @@ include::material/introduction.adoc[leveloffset=+1] include::material/file-structure.adoc[leveloffset=+1] include::material/material-schema.adoc[leveloffset=+1] include::material/material-emp-schema.adoc[leveloffset=+1] +include::material/material-optical-schema.adoc[leveloffset=+1] include::material/material-brdf-schema.adoc[leveloffset=+1] diff --git a/content/nav-openmaterial.adoc b/content/nav-openmaterial.adoc index e464c16..01e0704 100644 --- a/content/nav-openmaterial.adoc +++ b/content/nav-openmaterial.adoc @@ -27,6 +27,7 @@ ** xref:material/file-structure.adoc[] ** xref:material/material-schema.adoc[] ** xref:material/material-emp-schema.adoc[] +** xref:material/material-optical-schema.adoc[] ** xref:material/material-brdf-schema.adoc[]