Skip to content

Commit

Permalink
Merge pull request #6 from MaMMoS-project/initialize-dot
Browse files Browse the repository at this point in the history
Initialize `dot` after install. This command is needed on Apple M2 machines.
  • Loading branch information
fangohr authored Dec 20, 2024
2 parents 08c807c + 1e8e697 commit 3172f56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions create.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash


# paths to emmocheck and ontodoc (from https://github.com/emmo-repo/EMMOntoPy)
CHECK=emmocheck

Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3172f56

Please sign in to comment.