]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
specify title metadata and markdown format when calling pandoc
authorEvan Hunt <each@isc.org>
Mon, 10 Jun 2019 04:26:55 +0000 (21:26 -0700)
committerEvan Hunt <each@isc.org>
Mon, 10 Jun 2019 04:31:08 +0000 (21:31 -0700)
this change silences a warning message and prevents the unwanted
use of smart quotes when using pandoc 2.7.1 to generate human-readable
versions of README and other markdown files.

(cherry picked from commit 3663f61e0e41afa32e82fcd693bb661c7406244b)

Makefile.in

index b3aefb4876e6fea0550e170b9ca11c9bc991dd17..9b3d12d861b7837aecd8da11708eb651e326f7fa 100644 (file)
@@ -95,22 +95,22 @@ test-force:
        exit $$status
 
 README: README.md
-       ${PANDOC} --email-obfuscation=none -s -t html README.md | \
+       ${PANDOC} --email-obfuscation=none -s --metadata title="README" -f markdown-smart -t html README.md | \
                ${W3M} -dump -cols 75 -O ascii -T text/html | \
                sed -e '$${/^$$/d;}' > $@
 
 HISTORY: HISTORY.md
-       ${PANDOC} --email-obfuscation=none -s -t html HISTORY.md | \
+       ${PANDOC} --email-obfuscation=none -s --metadata title="HISTORY" -f markdown-smart -t html HISTORY.md | \
                ${W3M} -dump -cols 75 -O ascii -T text/html | \
                sed -e '$${/^$$/d;}' > $@
 
 OPTIONS: OPTIONS.md
-       ${PANDOC} --email-obfuscation=none -s -t html OPTIONS.md | \
+       ${PANDOC} --email-obfuscation=none -s --metadata title="OPTIONS" -f markdown-smart -t html OPTIONS.md | \
                ${W3M} -dump -cols 75 -O ascii -T text/html | \
                sed -e '$${/^$$/d;}' > $@
 
 CONTRIBUTING: CONTRIBUTING.md
-       ${PANDOC} --email-obfuscation=none -s -t html CONTRIBUTING.md | \
+       ${PANDOC} --email-obfuscation=none -s --metadata title="CONTRIBUTING" -f markdown-smart -t html CONTRIBUTING.md | \
                ${W3M} -dump -cols 75 -O ascii -T text/html | \
                sed -e '$${/^$$/d;}' > $@