From f9cecb511142dd3b8c0527c09403f5b8437e1f7f Mon Sep 17 00:00:00 2001 From: Hans Unzner Date: Fri, 16 Aug 2024 14:04:33 +0200 Subject: [PATCH] Use asciidoctor to generate man pages from asciidoc sources --- docs/src/Submakefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/src/Submakefile b/docs/src/Submakefile index 011f96cc140..25593964e62 100644 --- a/docs/src/Submakefile +++ b/docs/src/Submakefile @@ -999,10 +999,9 @@ TARGETS += manpages GENERATED_MANPAGES += $(patsubst $(DOC_DIR)/src/man/%.adoc, $(DOC_DIR)/man/%, $(wildcard $(DOC_DIR)/src/man/man?/*.adoc)) $(DOC_DIR)/man/%: $(DOC_DIR)/src/man/%.adoc @mkdir -p `dirname $@` - a2x -v --doctype manpage \ - --format manpage \ - --destination-dir `dirname $@` \ - --xsltproc-opts="--nonet" \ - -a mansource=LinuxCNC \ - -a manmanual='LinuxCNC Documentation' \ + asciidoctor -b manpage \ + -a doctype=manpage \ + -a doctitle="$(basename $(@F)) ($(patsubst .%,%,$(suffix $(@F))))" \ + -a manname=$(basename $(@F)) \ + --destination-dir $(@D) \ $<