Skip to content

Commit

Permalink
doc: Require hotdoc >= 0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thiblahute committed Jun 4, 2020
1 parent b952fc5 commit 7495006
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/meson.build
Expand Up @@ -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)
Expand Down

0 comments on commit 7495006

Please sign in to comment.