Skip to content

Commit 80a84e7

Browse files
committed
Added markdown make rule (requires pandoc)
1 parent 0b4101e commit 80a84e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ html:
5454
@echo
5555
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
5656

57+
markdown:
58+
test -s $(BUILDDIR)/md || mkdir $(BUILDDIR)/md
59+
find ./ -iname "*.rst" -type f -exec sh -c 'mkdir -p $$(dirname $(BUILDDIR)/md/$${0%.rst}.md) && pandoc "$${0}" -o "$(BUILDDIR)/md/$${0%.rst}.md"' {} \;
60+
@echo
61+
@echo "Build finished. The markdown files are in $(BUILDDIR)/md."
62+
5763
dirhtml:
5864
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
5965
@echo

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy