Skip to content

Commit

Permalink
fix image rendering in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Oct 10, 2024
1 parent fd04bbc commit b4bdad2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ html: Makefile
@mkdir -p "$(SOURCEDIR)/_static/examples"
@find "$(SOURCEDIR)/examples" -type f \( -name '*.png' -o -name '*.gif' \) -exec cp '{}' "$(SOURCEDIR)/_static/examples" \;
@# ensure image links in the example READMEs point to the static-files directory in the site source
@find "$(SOURCEDIR)/examples" -type f -name '*.md' -exec sed -i -e 's|img src="|img src="/_static/examples/|g' '{}' \;
@sed -i -E 's|img src="examples/[A-Za-z_\-]+/|img src="/_static/examples/|g' "$(SOURCEDIR)/README.md"
@find "$(SOURCEDIR)/examples" -type f -name '*.md' -exec sed -i -e 's|img src="|img src="../../_static/examples/|g' '{}' \;
@sed -i -E 's|img src="examples/[A-Za-z_\-]+/|img src="_static/examples/|g' "$(SOURCEDIR)/README.md"
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

# Catch-all target: route all unknown targets to Sphinx using the new
Expand Down

0 comments on commit b4bdad2

Please sign in to comment.