Skip to content

Commit

Permalink
Fix paths for recipe-of-the-day
Browse files Browse the repository at this point in the history
Ooooops!
  • Loading branch information
ceriottm committed Oct 7, 2024
1 parent 3f26b09 commit 8384c78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,9 @@ def build_docs(session):
# Prepare the examples data for JavaScript
examples_data = []
for _, metadata in sorted(all_examples_rst.items(), key=lambda kw: kw[1]["title"]):
# Adjust the thumbnail and ref paths to be relative to the root
metadata["thumbnail"] = "/_images/" + os.path.split(metadata["thumbnail"])[-1]
metadata["ref"] = "/" + metadata["ref"] + ".html"
# use relative paths so it works both locally and when deployed
metadata["thumbnail"] = "_images/" + os.path.split(metadata["thumbnail"])[-1]
metadata["ref"] = metadata["ref"] + ".html"
examples_data.append(metadata)

# Write the data to examples_data.json in the _static directory
Expand Down

0 comments on commit 8384c78

Please sign in to comment.