summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2018-02-21 12:56:52 +0100
committerIñigo Martínez <inigomartinez@gmail.com>2018-03-01 15:09:00 +0100
commitc84daa275459b017362e9f30b5de1c421f24017f (patch)
tree570a6d67869831fa95c5e09c095e1aeb9952cfc5 /docs
parent54bce40ad443351e5c1b02a12b673cc18690e044 (diff)
downloadtotem-c84daa275459b017362e9f30b5de1c421f24017f.tar.gz
build: Improve documentation generation
Some of the parameters used in documentation generation are duplicated because many of them are already added by meson. The `src` directory is the only one that has been left as there is no need for the rest. The references has also been fixed by using the proper path.
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/meson.build27
1 files changed, 9 insertions, 18 deletions
diff --git a/docs/reference/meson.build b/docs/reference/meson.build
index ff61274f0..618aef945 100644
--- a/docs/reference/meson.build
+++ b/docs/reference/meson.build
@@ -1,3 +1,5 @@
+doc_module = meson.project_name()
+
private_headers = [
'bacon-resize.h',
'bacon-time-label.h',
@@ -72,27 +74,16 @@ configure_file(
configuration: version_conf
)
-doc_path = join_paths(totem_datadir, 'gtk-doc', 'html', meson.project_name())
+doc_path = join_paths(totem_prefix, gnome.gtkdoc_html_dir(doc_module))
gnome.gtkdoc(
- meson.project_name(),
- main_xml: meson.project_name() + '-docs.xml',
- src_dir: [
- top_inc,
- src_inc,
- plugins_inc,
- backend_inc
- ],
+ doc_module,
+ main_xml: doc_module + '-docs.xml',
+ src_dir: join_paths(meson.source_root(), 'src'),
dependencies: libtotem_dep,
- scan_args: [
- '--rebuild-types',
- '--ignore-headers=' + ' '.join(private_headers),
- ],
- mkdb_args: [
- '--xml-mode',
- '--output-format=xml',
- '--name-space=' + meson.project_name()
- ],
+ scan_args: '--ignore-headers=' + ' '.join(private_headers),
+ mkdb_args: '--name-space=' + doc_module,
+ fixxref_args: '--html-dir=' + doc_path,
install: true,
install_dir: doc_path
)