From: Michael Tremer Date: Wed, 26 Sep 2018 22:22:59 +0000 (+0200) Subject: man: Add asciidoc configuration file X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0501f6385b5b977c5da6ba9efc97d8b47d40398;p=network.git man: Add asciidoc configuration file This adds a short command to link to other man pages Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index 26726130..d28fe9e8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -502,14 +502,18 @@ XSLTPROC_COMMAND_MAN = \ $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) \ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< -man/%.xml: man/%.txt - $(AM_V_ASCIIDOC)$(ASCIIDOC) -d manpage -b docbook -o $@ $< +man/%.xml: man/%.txt man/asciidoc.conf + $(AM_V_ASCIIDOC)$(ASCIIDOC) \ + -f man/asciidoc.conf \ + -d manpage -b docbook -o $@ $< man/%.8: man/%.xml $(XSLTPROC_COMMAND_MAN) -man/%.html: man/%.txt - $(AM_V_ASCIIDOC)$(ASCIIDOC) -b html5 -a icons -a theme=flask -o $@ $< +man/%.html: man/%.txt man/asciidoc.conf + $(AM_V_ASCIIDOC)$(ASCIIDOC) \ + -f man/asciidoc.conf \ + -b html5 -a icons -a theme=flask -o $@ $< # ------------------------------------------------------------------------------ diff --git a/man/asciidoc.conf b/man/asciidoc.conf new file mode 100644 index 00000000..243f81f3 --- /dev/null +++ b/man/asciidoc.conf @@ -0,0 +1,12 @@ +ifdef::backend-docbook[] +[link-inlinemacro] +{0%{target}} +{0#} +{0#{target}{0}} +{0#} +endif::backend-docbook[] + +ifdef::backend-html5[] +[link-inlinemacro] +{target}{0?({0})} +endif::backend-html5[]