summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-07-22 20:23:22 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-07-22 20:23:22 +0200
commitd737ab608e9e3f6df18e3874864390dd52a58234 (patch)
tree243b5ba431bf6276712d3de1cf1d622e23bcf2d8 /docs
parent5ca83c000567106f8ab24102c57033af8b86df7e (diff)
downloadufo-filters-d737ab608e9e3f6df18e3874864390dd52a58234.tar.gz
ufo-filters-d737ab608e9e3f6df18e3874864390dd52a58234.tar.bz2
ufo-filters-d737ab608e9e3f6df18e3874864390dd52a58234.tar.xz
ufo-filters-d737ab608e9e3f6df18e3874864390dd52a58234.zip
meson: build Sphinx docs
Diffstat (limited to 'docs')
-rw-r--r--docs/meson.build38
1 files changed, 38 insertions, 0 deletions
diff --git a/docs/meson.build b/docs/meson.build
new file mode 100644
index 0000000..ac42999
--- /dev/null
+++ b/docs/meson.build
@@ -0,0 +1,38 @@
+sources = [
+ 'changes.rst',
+ 'copyright.rst',
+ 'examples.rst',
+ 'filters.rst',
+ 'generators.rst',
+ 'index.rst',
+ 'install.rst',
+ 'kernels.rst',
+ 'piv.rst',
+ 'sinks.rst',
+ 'contrib/index.rst',
+ 'contrib/sxcfilters.rst',
+]
+
+sphinx = find_program('sphinx-build', required: false)
+
+if sphinx.found()
+ command = [
+ sphinx.path(),
+ '-q',
+ '-b', 'html',
+ meson.current_source_dir(),
+ meson.current_build_dir(),
+ ]
+
+ manual = custom_target('manual',
+ build_by_default: true,
+ command: command,
+ input: sources,
+ output: 'index.html',
+ )
+
+ install_subdir(meson.current_build_dir(), install_dir: docdir)
+else
+ message('sphinx not found, cannot generate manual.')
+endif
+