diff options
author | David Robillard <d@drobilla.net> | 2022-12-04 10:16:38 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-12-04 10:16:38 -0500 |
commit | acd3234a19720c4ad26de92e37430cada30ce6f6 (patch) | |
tree | fa217de9d0bde24ac169b201bc9d057027c145b4 | |
parent | c41ebbc08687b5c072108885b7fab66512917d9b (diff) | |
download | zix-acd3234a19720c4ad26de92e37430cada30ce6f6.tar.gz zix-acd3234a19720c4ad26de92e37430cada30ce6f6.tar.bz2 zix-acd3234a19720c4ad26de92e37430cada30ce6f6.zip |
Fix version in documentation
-rw-r--r-- | doc/conf.py.in (renamed from doc/conf.py) | 5 | ||||
-rw-r--r-- | doc/meson.build | 14 |
2 files changed, 15 insertions, 4 deletions
diff --git a/doc/conf.py b/doc/conf.py.in index e8a057c..d6994ec 100644 --- a/doc/conf.py +++ b/doc/conf.py.in @@ -6,7 +6,8 @@ project = "Zix" copyright = "2011-2022, David Robillard" author = "David Robillard" -release = "dev" +release = "@ZIX_VERSION@" +version = "@ZIX_VERSION@" desc = "A lightweight C library of portability wrappers and data structures" # General configuration @@ -53,7 +54,7 @@ nitpick_ignore = list(_c_nitpick_ignore) + list(_cpp_nitpick_ignore) # HTML output html_copy_source = False -html_short_title = "Zix" +html_short_title = "@ZIX_TITLE@" html_theme = "sphinx_lv2_theme" if tags.has("singlehtml"): diff --git a/doc/meson.build b/doc/meson.build index e08de60..74c66f2 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -42,7 +42,6 @@ if build_docs ) c_doc_files = c_rst_files + files( - 'conf.py', 'overview_code.c', ) @@ -50,6 +49,17 @@ if build_docs configure_file(copy: true, input: f, output: '@PLAINNAME@') endforeach + config = configuration_data() + config.set('ZIX_VERSION', meson.project_version()) + config.set('ZIX_SRCDIR', zix_src_root) + config.set('ZIX_TITLE', get_option('title')) + + conf_py = configure_file( + configuration: config, + input: files('conf.py.in'), + output: 'conf.py', + ) + subdir('xml') subdir('api') @@ -61,7 +71,7 @@ if build_docs '-q', ] - doc_inputs = c_rst_files + [c_zix_rst, c_index_xml] + doc_inputs = c_rst_files + [conf_py, c_zix_rst, c_index_xml] custom_target( 'singlehtml', |