meson.build 715 B
python_doc = py_mod.find_installation(
'python3',
modules: ['sphinx', 'numpydoc'],
required: false
)
if not python_doc.found()
subdir_done()
endif
doc_files = files(
'index.rst',
'discretization.rst',
'api.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, usadelndsoc_sources],
depends: [usadelndsoc_pymod],
output: 'html',
build_by_default: true,
)