Files
flatpak/doc/reference/meson.build
T
Sebastian Wick 1dedc7e763 doc: Port API reference from gtk-doc to gi-docgen
gtk-doc cross-references to GLib/GIO types have been broken since GLib
migrated to gi-docgen and stopped shipping devhelp index files.

Replace gtk-doc with gi-docgen, which generates docs from GIR data and
resolves cross-references via a URL map. Rename the build option from
'gtkdoc' to 'api_docs' and update CI workflows accordingly.
2026-10-14 16:35:29 +00:00

30 lines
690 B
Meson

# Copyright 2022 Collabora Ltd.
# SPDX-License-Identifier: LGPL-2.1-or-later
toml_conf = configuration_data()
toml_conf.set('VERSION', meson.project_version())
source_toml = configure_file(
input : 'Flatpak.toml.in',
output : 'Flatpak.toml',
configuration : toml_conf,
)
custom_target('flatpak-doc',
input : [source_toml, flatpak_gir[0]],
output : 'Flatpak-1.0',
command : [
gidocgen,
'generate',
'--quiet',
'--no-namespace-dir',
'--config=@INPUT0@',
'--output-dir=@OUTPUT@',
'--content-dir=@0@'.format(meson.current_source_dir()),
'@INPUT1@',
],
build_by_default : true,
install : true,
install_dir : get_option('datadir') / 'doc',
)