diff mbox series

[RFC,02/12] doc: add missing manpage docinfo

Message ID 20230413115745.116063-3-felipe.contreras@gmail.com (mailing list archive)
State New, archived
Headers show
Series doc: add tests and reimplement xmlto | expand

Commit Message

Felipe Contreras April 13, 2023, 11:57 a.m. UTC
We can remove the whole hack, since asciidoc.py already does that
correctly since 2008.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 Documentation/asciidoc.conf | 3 +++
 t/t0600-doc-tools.sh        | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

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]
 <refentry>
+<refentryinfo>
+template::[docinfo]
+</refentryinfo>
 <refmeta>
 <refentrytitle>{mantitle}</refentrytitle>
 <manvolnum>{manvolnum}</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"
 '