[totem] build: Improve documentation generation



commit c84daa275459b017362e9f30b5de1c421f24017f
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Wed Feb 21 12:56:52 2018 +0100

    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.

 docs/reference/meson.build |   27 +++++++++------------------
 1 files changed, 9 insertions(+), 18 deletions(-)
---
diff --git a/docs/reference/meson.build b/docs/reference/meson.build
index ff61274..618aef9 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
 )


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]