diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2020-06-03 18:38:28 -0400 |
---|---|---|
committer | Thibault Saunier <tsaunier@igalia.com> | 2020-06-03 22:44:20 -0400 |
commit | a4decfddda2a4462c6e413b64aa52870f4f38e94 (patch) | |
tree | 68d421517a21f50b1356173bb25dec4569fadecd | |
parent | e4eeef2bbf3fb9f07e78e3a638ba3d784bb6a69e (diff) |
doc: Require hotdoc >= 0.11.0
-rw-r--r-- | docs/meson.build | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/meson.build b/docs/meson.build index 07a0f12c..6c5bf419 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -28,6 +28,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) |