From 4ed2e9545f83606bb3bb7c75fb3d9a4461ab9fe7 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen <pauli.t.virtanen@jyu.fi> Date: Tue, 23 Apr 2024 15:15:30 +0300 Subject: [PATCH] Add Sphinx build --- doc/meson.build | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 doc/meson.build diff --git a/doc/meson.build b/doc/meson.build new file mode 100644 index 0000000..ef19960 --- /dev/null +++ b/doc/meson.build @@ -0,0 +1,30 @@ +python_doc = py_mod.find_installation( + 'python3', + modules: ['sphinx'], + required: false +) + +if not python_doc.found() + subdir_done() +endif + +doc_files = files( + 'index.rst', + 'discretization.rst', + 'conf.py', +) + +custom_target('doc', + command: [python_doc, '-msphinx', + '-q', # quiet + '-E', # rebuild from scratch + '-j', 'auto', # parallel build + '-d', '@PRIVATE_DIR@', # doctrees dir + '@CURRENT_SOURCE_DIR@', # source dir + '@OUTPUT@', # output dir + ], + depend_files: doc_files, + depends: [usadelndsoc_pymod], + output: 'html', + build_by_default: true, +) -- GitLab