Fix make links to output to docs/examples Signed-off-by: Daniel Lim Wee Soong <weesoong.lim@gmail.com>
diff --git a/docs/.gitignore b/docs/.gitignore index c97efb9..c249d4a 100644 --- a/docs/.gitignore +++ b/docs/.gitignore
@@ -1,5 +1,5 @@ env _build -tests/**/*.md -tests/**/*.svg -tests/**/*.png +examples/**/*.md +examples/**/*.svg +examples/**/*.png
diff --git a/docs/Makefile b/docs/Makefile index 0fc9993..a73a12f 100644 --- a/docs/Makefile +++ b/docs/Makefile
@@ -54,9 +54,9 @@ # Update fuzzer / minitest markdown links. tests-links: - @mkdir -p $(MAKEDIR)/tests - @cd $(MAKEDIR)/tests && find -name '*.md' -delete && find -type d -empty -delete - @cd $(MAKEDIR)/tests && \ + @mkdir -p $(MAKEDIR)/examples + @cd $(MAKEDIR)/examples && find -name '*.md' -delete && find -type d -empty -delete + @cd $(MAKEDIR)/examples && \ for I in $$(cd ../../tests/ ; find -name '*.md' | sort); do \ F=$$(dirname $$I); D=$$(dirname $$F); N=$$(basename $$F); \ S=../../tests/$$I; O=$$D/$$N.md; \ @@ -65,7 +65,7 @@ fi; \ ln -sf $$(realpath $$S --relative-to=$$D) $$O; \ done - @cd $(MAKEDIR)/tests && \ + @cd $(MAKEDIR)/examples && \ 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; \