aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-09-11 11:16:07 +0200
committerJunio C Hamano <gitster@pobox.com>2025-09-11 09:57:24 -0700
commitb64579dff989f36343bdbb3e1d6481ee4a3f0876 (patch)
tree3f46d15e14ad2177548882c8d694463b31174e8e
parentmeson: introduce a "docs" alias to compile documentation only (diff)
downloadgit-b64579dff989f36343bdbb3e1d6481ee4a3f0876.tar.gz
git-b64579dff989f36343bdbb3e1d6481ee4a3f0876.zip
meson: print docs backend as part of the summary
Our documentation can be built with either Asciidoc or Asciidoctor as backend. When Meson is configured to build documentation, then it will automatically detect which of these tools is available and use them. It's not obvious to the user though which of these backends is used unless the user explicitly asks for one backend via `-Ddocs_backend=`. Improve the status quo by printing the docs backend as part of the "backends" summary. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index f7dd6ee30d..cfaae83488 100644
--- a/meson.build
+++ b/meson.build
@@ -2101,6 +2101,8 @@ subdir('bin-wrappers')
if get_option('docs') != []
doc_targets = []
subdir('Documentation')
+else
+ docs_backend = 'none'
endif
subdir('contrib')
@@ -2249,6 +2251,7 @@ summary({
summary({
'csprng': csprng_backend,
+ 'docs': docs_backend,
'https': https_backend,
'sha1': sha1_backend,
'sha1_unsafe': sha1_unsafe_backend,