Skip to content

Commit

Permalink
fix: actually fix images
Browse files Browse the repository at this point in the history
  • Loading branch information
cfoust committed Jul 19, 2024
1 parent f8b666c commit 9a2be10
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/storybook.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ def transform_chapter(chapter):

filename = "/images/" + filename

replacement = f"![{command}]({filename})"

# Make image file relative to site
if 'CI' in os.environ:
filename = "/cy/" + filename[1:]
replacement = f"![{command}](/cy/{filename[1:]})"

replacement = f"![{command}]({filename})"
if filename.endswith("cast"):
replacement = f"<div data-cast=\"{original}\"></div>"

Expand Down

0 comments on commit 9a2be10

Please sign in to comment.