summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2020-06-03 18:38:58 -0400
committerThibault Saunier <tsaunier@igalia.com>2020-06-04 13:33:16 -0400
commita7c8e5a01040ec827316ebe0fa67444dd45fedd0 (patch)
treef6af3b2ed1543cbe2754558bedfc38004c302d53 /docs
parentd9ffa3b3b2040b5cb1a57b1d70939f787b2b6105 (diff)
doc: Require hotdoc >= 0.11.0
Diffstat (limited to 'docs')
-rw-r--r--docs/meson.build11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/meson.build b/docs/meson.build
index 465bd81de..94023d511 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -39,6 +39,17 @@ if not hotdoc_p.found()
subdir_done()
endif
+hotdoc_req = '>= 0.11.0'
+hotdoc_version = run_command(hotdoc_p, '--version').stdout()
+if not hotdoc_version.version_compare(hotdoc_req)
+ if get_option('doc').enabled()
+ error('Hotdoc version @0@ not found, got @1@'.format(hotdoc_req, hotdoc_version))
+ else
+ message('Hotdoc version @0@ not found, got @1@'.format(hotdoc_req, hotdoc_version))
+ subdir_done()
+ endif
+endif
+
hotdoc = import('hotdoc')
foreach extension: required_hotdoc_extensions
if not hotdoc.has_extensions(extension)