sitemap: make the root a gi index
authorMathieu Duponchelle <mathieu@centricular.com>
Mon, 4 Nov 2019 16:01:57 +0000 (17:01 +0100)
committerMathieu Duponchelle <mduponchelle1@gmail.com>
Mon, 4 Nov 2019 16:03:26 +0000 (16:03 +0000)
Thanks to that, gtk-doc links (taken from devhelp), are resolved
correctly when gst-docs is built on its own.

meson.build

index d3bca96..865582c 100644 (file)
@@ -47,7 +47,7 @@ else
 endif
 sitemap_gen = find_program('scripts/generate_sitemap.py')
 sitemap = configure_file(command: [sitemap_gen, '@INPUT@', '@OUTPUT@',
-  index.split('/')[1], libs, plugins_doc],
+  'gi-index', libs, plugins_doc],
   input: 'sitemap.txt',
   output: 'sitemap.txt')
 
@@ -57,6 +57,7 @@ gstreamer_doc = hotdoc.generate_doc('GStreamer',
     project_version: apiversion,
     sitemap: sitemap,
     index: index,
+    gi_index: index,
     install: true,
     extra_assets: [join_paths(meson.current_source_dir(), 'images')],
     syntax_highlighting_activate: true,