diff --git a/create.sh b/create.sh index edd5d13..41faa88 100644 --- a/create.sh +++ b/create.sh @@ -1,5 +1,6 @@ #!/bin/bash + # paths to emmocheck and ontodoc (from https://github.com/emmo-repo/EMMOntoPy) CHECK=emmocheck @@ -14,6 +15,10 @@ ls -ls magnetic_material_mammos.ttl echo "checking ontology ..." $CHECK magnetic_material_mammos.ttl + +# on ARM Mac, this seems required once to build documentation +doc -c + echo "building documentation ..." cd doc python ./mammosdoc --template=mammos.md --local --format=html ../magnetic_material_mammos.ttl magnetic_material_mammos.html diff --git a/pixi.toml b/pixi.toml index 377d5dc..5d6a5c2 100644 --- a/pixi.toml +++ b/pixi.toml @@ -9,7 +9,8 @@ version = "0.1.0" [tasks] build = "python src/build_onto.py" check = "emmocheck magnetic_material_mammos.ttl" -docs = {cmd = "python mammosdoc --template=mammos.md --local --format=html ../magnetic_material_mammos.ttl magnetic_material_mammos.html", cwd = "doc"} +init_dot = "dot -c" # needed on Mac M2 before graphviz can be used +docs = {cmd = "python mammosdoc --template=mammos.md --local --format=html ../magnetic_material_mammos.ttl magnetic_material_mammos.html", cwd = "doc", depends_on = ['init_dot']} clean = "rm -f demo.sqlite3 magnetic_material_mammos.ttl doc/magnetic_material_mammos.html" # convenience target: run all steps subsequently