public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
* [PATCH] doc: asciidoc: remove custom header macro
@ 2023-03-23 22:15 Felipe Contreras
  2023-04-06  3:57 ` Jeff King
  0 siblings, 1 reply; 8+ messages in thread
From: Felipe Contreras @ 2023-03-23 22:15 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Felipe Contreras, Martin Ågren

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>
---
 Documentation/asciidoc.conf | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf
index 3e4c13971b..60f76f43ed 100644
--- a/Documentation/asciidoc.conf
+++ b/Documentation/asciidoc.conf
@@ -51,25 +51,6 @@ ifdef::doctype-manpage[]
 endif::doctype-manpage[]
 endif::backend-docbook[]
 
-ifdef::doctype-manpage[]
-ifdef::backend-docbook[]
-[header]
-template::[header-declarations]
-<refentry>
-<refmeta>
-<refentrytitle>{mantitle}</refentrytitle>
-<manvolnum>{manvolnum}</manvolnum>
-<refmiscinfo class="source">{mansource}</refmiscinfo>
-<refmiscinfo class="version">{manversion}</refmiscinfo>
-<refmiscinfo class="manual">{manmanual}</refmiscinfo>
-</refmeta>
-<refnamediv>
-  <refname>{manname}</refname>
-  <refpurpose>{manpurpose}</refpurpose>
-</refnamediv>
-endif::backend-docbook[]
-endif::doctype-manpage[]
-
 ifdef::backend-xhtml11[]
 [attributes]
 git-relative-html-prefix=
-- 
2.39.2.13.g1fb56cf030


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-04-07 14:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-23 22:15 [PATCH] doc: asciidoc: remove custom header macro Felipe Contreras
2023-04-06  3:57 ` Jeff King
2023-04-06  4:22   ` Junio C Hamano
2023-04-06  7:19     ` Jeff King
2023-04-06  8:34     ` Felipe Contreras
2023-04-06  6:18   ` Felipe Contreras
2023-04-06  7:19     ` Jeff King
2023-04-07 14:30       ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox