diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2020-06-03 18:35:58 -0400 |
---|---|---|
committer | Thibault Saunier <tsaunier@igalia.com> | 2020-06-03 22:44:09 -0400 |
commit | b90dd2d755880d8dc0a956e47d7c3793cf563233 (patch) | |
tree | 21120f19560805d6f497daee520b142df09eb367 | |
parent | 6f0f41fef0a0833127cb7a63678e7199e80d54c5 (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 7a1daad5cd..0aed4cc4f2 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -37,6 +37,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) |