Skip to content

Commit 8806120

Browse files
felipecgitster
authored andcommitted
doc: asciidoc: remove custom header macro
In 2007 we added a custom header macro to provide version information 7ef195b (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: 226daba (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] asciidoc-py/asciidoc-py@ad78a3c Cc: Martin Ågren <[email protected]> Signed-off-by: Felipe Contreras <[email protected]> Reviewed-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7556e5d commit 8806120

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

Documentation/asciidoc.conf

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -51,25 +51,6 @@ ifdef::doctype-manpage[]
5151
endif::doctype-manpage[]
5252
endif::backend-docbook[]
5353

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-
7354
ifdef::backend-xhtml11[]
7455
[attributes]
7556
git-relative-html-prefix=

0 commit comments

Comments
 (0)