Navigation Menu

Skip to content

Commit

Permalink
add version / git commit. Fixes #2831
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Aug 1, 2019
1 parent 4010d9d commit ef68765
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/all.mk
Expand Up @@ -115,15 +115,16 @@ doc/raddb/%.adoc: raddb/%
# file:// links and http:// links.
#
DOC_BASEDIR = $(subst $() $(),,$(foreach x,$(subst /, ,$1),../))
DOC_UPDATED_LABEL = "FreeRADIUS ${RADIUSD_VERSION_STRING} - \#$(shell git rev-parse --short HEAD) - Last updated"

doc/%.html: doc/%.adoc
@echo HTML $^
$(eval BASEDIR := $(call DOC_BASEDIR,$(subst doc/,,$(dir $^))))

${Q}$(ASCIIDOCTOR) $< -a "toc=left" \
-a "docinfodir=$(if $(BASEDIR),$(BASEDIR),.)/templates" \
-a "basedir=$(BASEDIR)" \
-a "docinfo=shared,private" \
-a last-update-label=${DOC_UPDATED_LABEL} \
-b html5 -o $@ $<
${Q}perl -p -i -e 's,\.adoc,\.html,g; s,/.html",/",g; s/\.md\.html/\.html/g' $@

Expand Down

0 comments on commit ef68765

Please sign in to comment.