Move man pages to pandoc-cli package.

Closes .
This commit is contained in:
John MacFarlane 2023-12-09 09:55:13 -08:00
parent eb3a1b11d1
commit 55227a2027
6 changed files with 29 additions and 32 deletions

View file

@ -118,7 +118,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: man/pandoc.1 man/pandoc-server.1 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 ## build man pages
.PHONY: man
latex-package-dependencies: ## print packages used by default latex template
@ -157,7 +157,7 @@ debpkg: ## create linux package
/mnt/linux/make_artifacts.sh
.PHONY: debpkg
man/pandoc.1: MANUAL.txt man/pandoc.1.before man/pandoc.1.after
pandoc-cli/man/pandoc.1: MANUAL.txt man/pandoc.1.before man/pandoc.1.after
pandoc $< -f markdown -t man -s \
--lua-filter man/manfilter.lua \
--include-before-body man/pandoc.1.before \
@ -169,7 +169,7 @@ man/pandoc.1: MANUAL.txt man/pandoc.1.before man/pandoc.1.after
--variable footer="pandoc $(version)" \
-o $@
man/%.1: doc/%.md
pandoc-cli/man/%.1: doc/%.md
pandoc $< -f markdown -t man -s \
--lua-filter man/manfilter.lua \
--metadata author="" \
@ -181,12 +181,6 @@ man/%.1: doc/%.md
-o $@
man/pandoc-%.1: doc/pandoc-%.md
pandoc $< -f markdown -t man -s \
--lua-filter man/manfilter.lua \
--variable footer="pandoc-$* $(version)" \
-o $@
README.md: README.template MANUAL.txt tools/update-readme.lua
pandoc --lua-filter tools/update-readme.lua \
--reference-location=section -t gfm $< -o $@

View file

@ -1,6 +1,6 @@
.\" Automatically generated by Pandoc 3.1.7
.\" Automatically generated by Pandoc 3.1.9
.\"
.TH "pandoc-lua" "1" "September 22, 2022" "pandoc 3.1.7" "Pandoc User\[cq]s Guide"
.TH "pandoc-lua" "1" "September 22, 2022" "pandoc 3.1.9" "Pandoc User\[cq]s Guide"
.SH SYNOPSIS
\f[CR]pandoc-lua\f[R] [\f[I]options\f[R]] [\f[I]script\f[R]
[\f[I]args\f[R]]]

View file

@ -1,6 +1,6 @@
.\" Automatically generated by Pandoc 3.1.7
.\" Automatically generated by Pandoc 3.1.9
.\"
.TH "pandoc-server" "1" "August 15, 2022" "pandoc 3.1.7" "Pandoc User\[cq]s Guide"
.TH "pandoc-server" "1" "August 15, 2022" "pandoc 3.1.9" "Pandoc User\[cq]s Guide"
.SH SYNOPSIS
\f[CR]pandoc-server\f[R] [\f[I]options\f[R]]
.SH DESCRIPTION

View file

@ -1,4 +1,4 @@
.\" Automatically generated by Pandoc 3.1.7
.\" Automatically generated by Pandoc 3.1.9
.\"
.TH "pandoc" "1" "October 27, 2023" "pandoc 3.1.9" "Pandoc User\[cq]s Guide"
.SH NAME
@ -152,7 +152,7 @@ included with all recent versions of TeX Live): \f[CR]amsfonts\f[R],
\f[CR]iftex\f[R], \f[CR]listings\f[R] (if the \f[CR]--listings\f[R]
option is used), \f[CR]fancyvrb\f[R], \f[CR]longtable\f[R],
\f[CR]booktabs\f[R], \f[CR]graphicx\f[R] (if the document contains
images), \f[CR]hyperref\f[R], \f[CR]xcolor\f[R], \f[CR]soul\f[R],
images), \f[CR]bookmark\f[R], \f[CR]xcolor\f[R], \f[CR]soul\f[R],
\f[CR]geometry\f[R] (with the \f[CR]geometry\f[R] variable set),
\f[CR]setspace\f[R] (with \f[CR]linestretch\f[R]), and \f[CR]babel\f[R]
(with \f[CR]lang\f[R]).
@ -174,9 +174,8 @@ present, but pandoc does not require them to be present:
\f[CR]upquote\f[R] (for straight quotes in verbatim environments),
\f[CR]microtype\f[R] (for better spacing adjustments),
\f[CR]parskip\f[R] (for better inter-paragraph spaces), \f[CR]xurl\f[R]
(for better line breaks in URLs), \f[CR]bookmark\f[R] (for better PDF
bookmarks), and \f[CR]footnotehyper\f[R] or \f[CR]footnote\f[R] (to
allow footnotes in tables).
(for better line breaks in URLs), and \f[CR]footnotehyper\f[R] or
\f[CR]footnote\f[R] (to allow footnotes in tables).
.SS Reading from the Web
Instead of an input file, an absolute URI may be given.
In this case pandoc will fetch the content using HTTP:
@ -1224,7 +1223,9 @@ Heading 8
.IP \[bu] 2
Heading 9
.IP \[bu] 2
Block Text
Block Text [for block quotes]
.IP \[bu] 2
Footnote Block Text [for block quotes in footnotes]
.IP \[bu] 2
Source Code
.IP \[bu] 2
@ -1994,15 +1995,12 @@ or \f[CR]{type: citeproc}\f[R].
--------------------------------- ----------------------------------
--citeproc citeproc: true
--bibliography logic.bib metadata:
bibliography: logic.bib
--bibliography logic.bib bibliography: logic.bib
--csl ieee.csl metadata:
csl: ieee.csl
--csl ieee.csl csl: ieee.csl
metadata:
--citation-abbreviations ab.json
citation-abbreviations: ab.json
--citation-abbreviations ab.json citation-abbreviations: ab.json
--natbib cite-method: natbib
@ -5960,6 +5958,13 @@ Parses PHP Markdown Extra abbreviation keys, like
Note that the pandoc document model does not support abbreviations, so
if this extension is enabled, abbreviation keys are simply skipped (as
opposed to being parsed as paragraphs).
.SS Extension: \f[CR]alerts\f[R]
Supports GitHub-style markdown alerts, like
.IP
.EX
> [!INFO]
> This is an informational message.
.EE
.SS Extension: \f[CR]autolink_bare_uris\f[R]
Makes all absolute URIs into links, even when not surrounded by pointy
braces \f[CR]<...>\f[R].

View file

@ -17,7 +17,10 @@ synopsis: Conversion between documentation formats
description: Pandoc-cli provides a command-line executable that uses the
pandoc library to convert between markup formats.
-- data-files:
-- extra-source-files:
extra-source-files:
man/pandoc.1
man/pandoc-lua.1
man/pandoc-server.1
source-repository head
type: git
location: git://github.com/jgm/pandoc.git

View file

@ -196,11 +196,6 @@ extra-source-files:
-- documentation
INSTALL.md, AUTHORS.md, README.md,
CONTRIBUTING.md, BUGS, changelog.md,
man/pandoc.1
-- files needed to build man page
man/manfilter.lua
man/pandoc.1.before
man/pandoc.1.after
-- tests
test/bodybg.gif
test/*.native