Skip to content

Commit

Permalink
index.html needs relative pylode.css
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-portier committed Jul 25, 2022
1 parent 75da41e commit b0a4cdf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ def ontopub(baseuri, nsfolder, nssub, nsname, outfolder):
# ask pylode to make the html
od.make_html(destination=outhtmlpath, include_css=False)
log.debug(f"> {name} --> html produced to '{outhtmlpath}'")
# also add an extra copy from name.html to name/index.html
# also add an extra copy from name.html to name/index.html AND for the css as well
shutil.copy(outhtmlpath, outindexpath)
shutil.copy(outhtmlpath.parent / "pylode.css", outindexpath.parent / "pylode.css")
log.debug(f"> {name} --> copy added to '{outindexpath}'")
# get some minimal metadata from the ttl since pylode loaded that into memory anyway?
nspub = extract_pub_dict(od) # if we got here however, things should be ok
Expand Down

0 comments on commit b0a4cdf

Please sign in to comment.