Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract Templates section of manual to its own document #10431

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,211 changes: 3 additions & 1,208 deletions MANUAL.txt

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ check-manversion:
grep '"pandoc $(version)"' "pandoc-cli/man/pandoc.1"
grep '"pandoc $(version)"' "pandoc-cli/man/pandoc-server.1"
grep '"pandoc $(version)"' "pandoc-cli/man/pandoc-lua.1"
grep '"pandoc $(version)"' "pandoc-cli/man/pandoc-templates.5"
.PHONY: check-manversion

checkdocs:
Expand Down Expand Up @@ -137,7 +138,7 @@ changes_github: ## copy this release's changes in gfm
$(pandoc) --lua-filter tools/extract-changes.lua changelog.md -t gfm --wrap=none --template tools/changes_template.html | sed -e 's/\\#/#/g' | pbcopy
.PHONY: changes_github

man: pandoc-cli/man/pandoc.1 pandoc-cli/man/pandoc-server.1 pandoc-cli/man/pandoc-lua.1 ## build man pages
man: pandoc-cli/man/pandoc.1 pandoc-cli/man/pandoc-server.1 pandoc-cli/man/pandoc-lua.1 pandoc-cli/man/pandoc-templates.5 ## build man pages
.PHONY: man

latex-package-dependencies: ## print packages used by default latex template
Expand Down Expand Up @@ -199,6 +200,16 @@ pandoc-cli/man/%.1: doc/%.md pandoc.cabal
--include-after-body man/pandoc.1.after \
-o $@

pandoc-cli/man/pandoc-%.5: doc/%.md pandoc.cabal man/template.man
$(pandoc) $< -f markdown -t man -s \
--template man/template.man \
--lua-filter man/manfilter.lua \
--metadata author="" \
--variable section="5" \
--variable title="$(basename $(notdir $@))" \
--variable header='Pandoc User\[cq]s Guide' \
--variable footer="pandoc $(version)" \
-o $@

README.md: README.template MANUAL.txt tools/update-readme.lua
$(pandoc) --lua-filter tools/update-readme.lua \
Expand Down
Loading