diff options
Diffstat (limited to 'doc/meson.build')
-rw-r--r-- | doc/meson.build | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/doc/meson.build b/doc/meson.build new file mode 100644 index 0000000..e7bdd91 --- /dev/null +++ b/doc/meson.build @@ -0,0 +1,56 @@ +# Copyright 2022 Collabora Ltd. +# SPDX-License-Identifier: MIT + +doc_sources = files( + 'API_CHANGES.txt', + 'conf.py', + 'dbus.bus.rst', + 'dbus.connection.rst', + 'dbus.decorators.rst', + 'dbus.exceptions.rst', + 'dbus.gi_service.rst', + 'dbus.glib.rst', + 'dbus.gobject_service.rst', + 'dbus.lowlevel.rst', + 'dbus.mainloop.rst', + 'dbus.proxies.rst', + 'dbus.rst', + 'dbus.server.rst', + 'dbus.service.rst', + 'dbus.types.rst', + 'index.rst', + 'news.rst', + 'PY3PORT.txt', + 'tutorial.txt', + ) + +sphinx = custom_target( + 'sphinx', + command: [ + py.full_path(), + '-m', 'sphinx', + '-b', 'html', + meson.current_source_dir(), + '@OUTPUT@', + ], + depends: [ + dbus_bindings, + dbus_glib_bindings, + ], + input: python_sources + doc_sources, + output: 'html', + build_by_default: true, + install: true, + install_dir: get_option('datadir') / 'doc' / meson.project_name(), +) + +custom_target( + 'maintainer-update-website', + command: [ + 'env', + '--chdir', '@BUILD_ROOT@', + files('maintainer-update-website.sh'), + ], + depends: [sphinx], + output: '_uploaded', +) |