diff --git a/docs/storybook.py b/docs/storybook.py index 181254bc..c9ed89ec 100644 --- a/docs/storybook.py +++ b/docs/storybook.py @@ -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"
"