Skip to content

Commit

Permalink
fix (modl): Work around Schema.org TTL containing rdfs:comment with /…
Browse files Browse the repository at this point in the history
…docs/*.html
  • Loading branch information
vorburger committed Jun 25, 2024
1 parent 4256305 commit 901ee6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ rm docs/models/{BUILD,build.bash}

./enola -vvv docgen --load=file:"docs/models/**.ttl" --output=file://"$PWD"/docs/models/

# Work around Schema.org TTL containing rdfs:comment like "See [documentation](/docs/cdc-covid.html) for details"
find docs/models/schema.org/ -type f -not -path '*/\.*' -name "*.md" -exec sed -i 's/\/docs\//https:\/\/schema.org\/docs\//g' {} +

# TODO Support GLOBs in rosetta like in docgen? (Low priority, because DocGen will gen. embedded JSON-LD anyway.)
./enola -v rosetta --in=file:models/enola.ttl --out=file:docs/models/enola.jsonld

Expand Down

0 comments on commit 901ee6e

Please sign in to comment.