doc: asciidoc: remove custom header macro

In 2007 we added a custom header macro to provide version information 7ef195ba3e (Documentation: Add version information to man pages, 2007-03-25), However, in 2008 asciidoc added the attributes to do this properly [1]. This was not implemented in Git until 2019: 226daba280 (Doc/Makefile: give mansource/-version/-manual attributes, 2019-09-16). But in 2023 we are doing it properly, so there's no need for the custom macro. [1] https://github.com/asciidoc-py/asciidoc-py/commit/ad78a3c Cc: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Felipe Contreras committed Mar 23, 2023 at 16:15 UTC 8806120de6c242a7143cfb1701106c5f9f77cf90
1 file changed -19
Documentation/asciidoc.conf
-19
@@ -51,25 +51,6 @@ ifdef::doctype-manpage[]
51 endif::doctype-manpage[]
52 endif::backend-docbook[]
53
54 -ifdef::doctype-manpage[]
55 -ifdef::backend-docbook[]
56 -[header]
57 -template::[header-declarations]
58 -<refentry>
59 -<refmeta>
60 -<refentrytitle>{mantitle}</refentrytitle>
61 -<manvolnum>{manvolnum}</manvolnum>
62 -<refmiscinfo class="source">{mansource}</refmiscinfo>
63 -<refmiscinfo class="version">{manversion}</refmiscinfo>
64 -<refmiscinfo class="manual">{manmanual}</refmiscinfo>
65 -</refmeta>
66 -<refnamediv>
67 - <refname>{manname}</refname>
68 - <refpurpose>{manpurpose}</refpurpose>
69 -</refnamediv>
70 -endif::backend-docbook[]
71 -endif::doctype-manpage[]
72 -
54 ifdef::backend-xhtml11[]
55 [attributes]
56 git-relative-html-prefix=