Skip to content

Commit

Permalink
Use asciidoctor to generate man pages from asciidoc sources
Browse files Browse the repository at this point in the history
  • Loading branch information
hansu committed Aug 16, 2024
1 parent b054ebc commit f9cecb5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docs/src/Submakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
$<

0 comments on commit f9cecb5

Please sign in to comment.