Skip to content

Commit

Permalink
Change the date in generated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
koutcher committed Jan 14, 2025
1 parent dfe3b2c commit 9e26b9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ override CPPFLAGS += '-DTIG_USER_CONFIG="$(TIG_USER_CONFIG)"'
endif

ASCIIDOC ?= asciidoc
ASCIIDOC_FLAGS = -aversion=$(VERSION) -asysconfdir=$(sysconfdir) -f doc/asciidoc.conf
ASCIIDOC_FLAGS = -aversion=$(VERSION) -asysconfdir=$(sysconfdir) \
-arevdate=$(shell git show -s --format=%cs) -f doc/asciidoc.conf
XMLTO ?= xmlto
DOCBOOK2PDF ?= docbook2pdf

Expand Down Expand Up @@ -432,7 +433,7 @@ test/API.adoc: test/tools/libtest.sh
%.7.xml : %.7.adoc doc/asciidoc.conf
$(QUIET_ASCIIDOC)$(ASCIIDOC) $(ASCIIDOC_FLAGS) -b docbook -d manpage $<

%.html: ASCIIDOC_FLAGS += -adocext=html
%.html: ASCIIDOC_FLAGS += -adocext=html -afooter-style=revdate
%.html : %.adoc doc/asciidoc.conf
$(QUIET_ASCIIDOC)$(ASCIIDOC) $(ASCIIDOC_FLAGS) -b xhtml11 -d article -n $<

Expand Down
3 changes: 3 additions & 0 deletions doc/asciidoc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ ifdef::backend-docbook[]
[header]
template::[header-declarations]
<refentry>
<refentryinfo>
<date>{revdate}</date>
</refentryinfo>
<refmeta>
<refentrytitle>{mantitle}</refentrytitle>
<manvolnum>{manvolnum}</manvolnum>
Expand Down

0 comments on commit 9e26b9e

Please sign in to comment.