Skip to content

Commit

Permalink
add doc script to run after build for local testing, include ANNOds i…
Browse files Browse the repository at this point in the history
…n doc, resolve #3
  • Loading branch information
KonradHoeffner committed Apr 9, 2024
1 parent 93c0bca commit 00b2870
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches:
- master
- dist

jobs:
doc:
Expand All @@ -13,6 +13,9 @@ jobs:
WIDOCO_DOWNLOAD_URL: https://github.com/dgarijo/Widoco/releases/download/v1.4.20/widoco-1.4.20-jar-with-dependencies_JDK-17.jar
steps:
- uses: actions/checkout@v4
with:
ref: 'dist'

- name: Cache Widoco
uses: actions/cache@v4
with:
Expand All @@ -27,7 +30,7 @@ jobs:
wget $WIDOCO_DOWNLOAD_URL --progress=dot:giga --output-document=jar/widoco.jar
- name: Run Widoco
run: java -jar jar/widoco.jar -ontFile annodc.owl -rewriteAll -uniteSections -getOntologyMetadata -outFolder .
run: java -jar jar/widoco.jar -ontFile anno.ttl -rewriteAll -uniteSections -getOntologyMetadata -outFolder .

- name: Rename index-en.html to index.html
run: mv doc/index-en.html doc/index.html
Expand Down
6 changes: 6 additions & 0 deletions scripts/doc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
# call scripts/combine first
SCRIPTPATH=`dirname "$0"`
BASEPATH="$SCRIPTPATH/.."
BASEPATH=`( cd "$BASEPATH" && pwd )`
widoco -ontFile $BASEPATH/dist/anno.ttl -ontFile $BASEPATH/annods.owl -rewriteAll -uniteSections -getOntologyMetadata -ignoreIndividuals -outFolder /tmp

0 comments on commit 00b2870

Please sign in to comment.