From: Felipe Contreras Date: Thu, 13 Apr 2023 11:57:35 GMT Subject: [RFC PATCH 02/12] doc: add missing manpage docinfo Message-ID: <20230413115745.116063-3-felipe.contreras@gmail.com> In-Reply-To: <20230413115745.116063-1-felipe.contreras@gmail.com> We can remove the whole hack, since asciidoc.py already does that correctly since 2008. Signed-off-by: Felipe Contreras --- Documentation/asciidoc.conf | 3 +++ t/t0600-doc-tools.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf index 3e4c13971b..303d45dc34 100644 --- a/Documentation/asciidoc.conf +++ b/Documentation/asciidoc.conf @@ -56,6 +56,9 @@ ifdef::backend-docbook[] [header] template::[header-declarations] + +template::[docinfo] + {mantitle} {manvolnum} diff --git a/t/t0600-doc-tools.sh b/t/t0600-doc-tools.sh index 0f9a4053a9..db77db72e5 100755 --- a/t/t0600-doc-tools.sh +++ b/t/t0600-doc-tools.sh @@ -78,7 +78,7 @@ check_manpage() { test_cmp "$1.1.expected" "$1.1.actual" } -test_expect_failure ASCIIDOC 'legacy asciidoc.py' ' +test_expect_success ASCIIDOC 'legacy asciidoc.py' ' build_asciidoc_py "git-foo" && check_manpage "git-foo" ' -- 2.40.0+fc1