Skip to content

Commit

Permalink
pylode docs: correct ttl-file location
Browse files Browse the repository at this point in the history
  • Loading branch information
dalito committed Aug 16, 2023
1 parent 6eeed66 commit 1707153
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/voc4cat/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ def run_pylode(turtle_file: Path, output_path: Path) -> None:
'<section id="overview">',
'<section id="overview" style="display: none;">',
)
content = content.replace(
"<dt>Ontology RDF</dt>",
"<dt>Vocabulary RDF</dt>",
)
content = content.replace(
f'<dd><a href="{filename.stem}.ttl">RDF (turtle)</a></dd>',
f'<dd><a href="../{filename.stem}.ttl">RDF (turtle)</a></dd>',
)
with open(outfile, "w") as html_file:
html_file.write(content)

Expand Down
1 change: 0 additions & 1 deletion src/voc4cat/transform.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import datetime
import logging
import os
import shutil
Expand Down

0 comments on commit 1707153

Please sign in to comment.