docs: Install the gi-docgen docs

They are now installed to (e.g.)
`${prefix}/share/doc/glib-2.0/{glib,gmodule,gobject,gio}/index.html`.

We might want to drop one level of nesting out of that, but for the
moment I thought I’d keep it in so we can disambiguate by installed
major version.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3037
This commit is contained in:
Philip Withnall 2023-12-21 17:00:06 +00:00
parent 419777b0f1
commit d2dbfba208
5 changed files with 15 additions and 1 deletions

View File

@ -54,4 +54,7 @@ custom_target('gio-docs',
],
build_by_default: true,
depend_files: expand_content_files,
install: true,
install_dir: docs_dir,
install_tag: 'doc',
)

View File

@ -18,7 +18,7 @@ if get_option('documentation')
rst2html5 = find_program('rst2html5', 'rst2html5.py', required: false)
if rst2html5.found()
spec_path = glib_datadir / 'doc' / 'glib-2.0'
spec_path = docs_dir
figures = files(
'gvariant-byte-boundaries.svg',
@ -109,4 +109,7 @@ custom_target('glib-docs',
],
build_by_default: true,
depend_files: expand_content_files,
install: true,
install_dir: docs_dir,
install_tag: 'doc',
)

View File

@ -20,4 +20,7 @@ custom_target('gmodule-docs',
],
build_by_default: true,
depend_files: expand_content_files,
install: true,
install_dir: docs_dir,
install_tag: 'doc',
)

View File

@ -41,4 +41,7 @@ custom_target('gobject-docs',
],
build_by_default: true,
depend_files: expand_content_files,
install: true,
install_dir: docs_dir,
install_tag: 'doc',
)

View File

@ -14,6 +14,8 @@ if get_option('documentation') and enable_gir
'--fatal-warnings',
]
docs_dir = glib_datadir / 'doc' / 'glib-2.0'
subdir('glib')
subdir('gmodule')
subdir('gobject')