docs: Trying to get images working. Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
diff --git a/docs/.gitignore b/docs/.gitignore index 012e41f..04a69d7 100644 --- a/docs/.gitignore +++ b/docs/.gitignore
@@ -1,3 +1,5 @@ venv _build tests/**/*.md +tests/**/*.svg +tests/**/*.png
diff --git a/docs/Makefile b/docs/Makefile index 7ee149c..b9eb204 100644 --- a/docs/Makefile +++ b/docs/Makefile
@@ -40,8 +40,14 @@ fi; \ ln -sf $$(realpath $$S --relative-to=$$D) $$O; \ done + @cd $(MAKEDIR)/tests && \ + for I in $$(cd ../../tests/ ; find -name '*.svg' -o -name '*.png' | sort); do \ + F=$$(dirname $$I); D=$$(dirname $$F); N=$$(basename $$I); \ + S=../../tests/$$I; O=$$D/$$N; \ + ln -sf $$(realpath $$S --relative-to=$$D) $$O; \ + done -links: +links: tests-links @true .PHONY: tests-links links