summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMaximiliano Sandoval R <msandova@gnome.org>2022-03-13 11:44:25 +0100
committerMaximiliano Sandoval R <msandova@gnome.org>2022-03-13 17:41:53 +0100
commit82119a6b60899362d3847802e0927fc225e9a95e (patch)
treedfc19bc95f031be8d5e5d7e1dec0498c555db836 /docs
parent199ad7d99118435e0740c814b06aecc50f5f7fec (diff)
downloadlibpeas-82119a6b60899362d3847802e0927fc225e9a95e.tar.gz
gi-docgen: Initial commit
Diffstat (limited to 'docs')
-rw-r--r--docs/meson.build4
-rw-r--r--docs/reference/.gitignore15
-rw-r--r--docs/reference/libpeas-docs.sgml68
-rw-r--r--docs/reference/libpeas-gtk-urlmap.js8
-rw-r--r--docs/reference/libpeas-gtk.toml.in55
-rw-r--r--docs/reference/libpeas-overrides.txt0
-rw-r--r--docs/reference/libpeas-sections.txt229
-rw-r--r--docs/reference/libpeas-urlmap.js7
-rw-r--r--docs/reference/libpeas.toml.in44
-rw-r--r--docs/reference/libpeas.types10
-rw-r--r--docs/reference/meson.build145
-rw-r--r--docs/reference/version.xml.in1
12 files changed, 170 insertions, 416 deletions
diff --git a/docs/meson.build b/docs/meson.build
index c662ff0..ead14c4 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -1,3 +1 @@
-if build_gtk_doc == true
- subdir('reference')
-endif
+subdir('reference')
diff --git a/docs/reference/.gitignore b/docs/reference/.gitignore
deleted file mode 100644
index a84a511..0000000
--- a/docs/reference/.gitignore
+++ /dev/null
@@ -1,15 +0,0 @@
-/html
-/tmpl
-/xml
-/libpeas-decl-list.txt
-/libpeas-decl.txt
-/libpeas-undeclared.txt
-/libpeas-undocumented.txt
-/libpeas-unused.txt
-/libpeas.args
-/libpeas.hierarchy
-/libpeas.interfaces
-/libpeas.prerequisites
-/libpeas.signals
-/version.xml
-/*.stamp
diff --git a/docs/reference/libpeas-docs.sgml b/docs/reference/libpeas-docs.sgml
deleted file mode 100644
index 0e96245..0000000
--- a/docs/reference/libpeas-docs.sgml
+++ /dev/null
@@ -1,68 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
- "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
-[
- <!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
- <!ENTITY version SYSTEM "version.xml">
-]>
-<book id="index">
- <bookinfo>
- <title>Peas Reference Manual</title>
- <releaseinfo>
- for libpeas &version; and libpeas-gtk &version;
- </releaseinfo>
- </bookinfo>
-
- <part label="I">
- <title>API Reference</title>
- <chapter>
- <title>Core Classes</title>
- <xi:include href="xml/peas-engine.xml"/>
- <xi:include href="xml/peas-plugin-info.xml"/>
- <xi:include href="xml/peas-extension.xml"/>
- <xi:include href="xml/peas-extension-set.xml"/>
- <xi:include href="xml/peas-extension-base.xml"/>
- <xi:include href="xml/peas-object-module.xml"/>
- </chapter>
- <chapter>
- <title>Gtk+ Widgets</title>
- <xi:include href="xml/peas-gtk-plugin-manager.xml"/>
- <xi:include href="xml/peas-gtk-plugin-manager-view.xml"/>
- </chapter>
- <chapter>
- <title>Built-in Extension Interfaces</title>
- <xi:include href="xml/peas-activatable.xml"/>
- <xi:include href="xml/peas-gtk-configurable.xml"/>
- </chapter>
- </part>
- <index id="api-index-full">
- <title>Index</title>
- <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
- </index>
- <index id="api-index-deprecated" role="deprecated">
- <title>Index of deprecated symbols</title>
- <xi:include href="xml/api-index-deprecated.xml"><xi:fallback /></xi:include>
- </index>
- <index id="api-index-1-2" role="1.2">
- <title>Index of new symbols in 1.2</title>
- <xi:include href="xml/api-index-1.2.xml"><xi:fallback /></xi:include>
- </index>
- <index id="api-index-1-4" role="1.4">
- <title>Index of new symbols in 1.4</title>
- <xi:include href="xml/api-index-1.4.xml"><xi:fallback /></xi:include>
- </index>
- <index id="api-index-1-6" role="1.6">
- <title>Index of new symbols in 1.6</title>
- <xi:include href="xml/api-index-1.6.xml"><xi:fallback /></xi:include>
- </index>
- <index id="api-index-1-14" role="1.14">
- <title>Index of new symbols in 1.14</title>
- <xi:include href="xml/api-index-1.14.xml"><xi:fallback /></xi:include>
- </index>
- <index id="api-index-1-18" role="1.18">
- <title>Index of new symbols in 1.18</title>
- <xi:include href="xml/api-index-1.18.xml"><xi:fallback /></xi:include>
- </index>
-
- <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
-</book>
diff --git a/docs/reference/libpeas-gtk-urlmap.js b/docs/reference/libpeas-gtk-urlmap.js
new file mode 100644
index 0000000..0b6777e
--- /dev/null
+++ b/docs/reference/libpeas-gtk-urlmap.js
@@ -0,0 +1,8 @@
+// A map between namespaces and base URLs for their online documentation
+baseURLs = [
+ [ 'GLib', 'https://docs.gtk.org/glib/' ],
+ [ 'GObject', 'https://docs.gtk.org/gobject/' ],
+ [ 'Gio', 'https://docs.gtk.org/gio/' ],
+ [ 'Gtk', 'https://docs.gtk.org/gtk4/' ],
+ [ 'Peas', 'https://gnome.pages.gitlab.gnome.org/libpeas/libpeas-1.0/' ],
+]
diff --git a/docs/reference/libpeas-gtk.toml.in b/docs/reference/libpeas-gtk.toml.in
new file mode 100644
index 0000000..4994389
--- /dev/null
+++ b/docs/reference/libpeas-gtk.toml.in
@@ -0,0 +1,55 @@
+[library]
+version = "@VERSION@"
+browse_url = "https://gitlab.gnome.org/GNOME/libpeas"
+repository_url = "https://gitlab.gnome.org/GNOME/libpeas.git"
+docs_url = "https://gnome.pages.gitlab.gnome.org/libpeas/libpeas-gtk-1.0/"
+website_url = "https://gitlab.gnome.org/GNOME/libpeas"
+authors = "Steve Frécinaux, Garrett Regier, Christian Hergert"
+license = "LGPL-2.0-or-later"
+description = "HTTP client/server library for GNOME"
+dependencies = [ "GObject-2.0", "GLib-1.0", "Gio-2.0", "Gtk-3.0", "Peas-1.0" ]
+devhelp = true
+search_index = true
+
+[dependencies."GObject-2.0"]
+name = "GObject"
+description = "The base type system library"
+docs_url = "https://docs.gtk.org/gobject/"
+
+[dependencies."GLib-2.0"]
+name = "GLib"
+description = "The base type system library"
+docs_url = "https://docs.gtk.org/glib/"
+
+[dependencies."Gio-2.0"]
+name = "GIO"
+description = "GObject Interfaces and Objects, Networking, IPC, and I/O"
+docs_url = "https://docs.gtk.org/gio/"
+
+[dependencies."Gtk-3.0"]
+name = "GTK"
+description = "The GTK toolkit"
+docs_url = "https://docs.gtk.org/gtk3/"
+
+[dependencies."Peas-1.0"]
+name = "Peas"
+description = "GObject-based plugins engine"
+docs_url = "https://gnome.pages.gitlab.gnome.org/libpeas/libpeas-1.0/"
+
+[theme]
+name = "basic"
+show_index_summary = true
+show_class_hierarchy = true
+
+[source-location]
+base_url = "https://gitlab.gnome.org/GNOME/libpeas/-/blob/master/"
+
+[extra]
+# The same order will be used when generating the index
+content_files = [
+]
+
+content_images = [
+ 'images/peas-gtk-plugin-manager.png',
+]
+urlmap_file = "libpeas-gtk-urlmap.js"
diff --git a/docs/reference/libpeas-overrides.txt b/docs/reference/libpeas-overrides.txt
deleted file mode 100644
index e69de29..0000000
--- a/docs/reference/libpeas-overrides.txt
+++ /dev/null
diff --git a/docs/reference/libpeas-sections.txt b/docs/reference/libpeas-sections.txt
deleted file mode 100644
index 610a163..0000000
--- a/docs/reference/libpeas-sections.txt
+++ /dev/null
@@ -1,229 +0,0 @@
-<SECTION>
-<FILE>peas-gtk-configurable</FILE>
-<TITLE>PeasGtkConfigurable</TITLE>
-PeasGtkConfigurable
-PeasGtkConfigurableInterface
-peas_gtk_configurable_create_configure_widget
-<SUBSECTION Standard>
-PEAS_GTK_CONFIGURABLE
-PEAS_GTK_IS_CONFIGURABLE
-PEAS_GTK_TYPE_CONFIGURABLE
-peas_gtk_configurable_get_type
-PEAS_GTK_CONFIGURABLE_IFACE
-PEAS_GTK_CONFIGURABLE_GET_IFACE
-</SECTION>
-
-<SECTION>
-<FILE>peas-gtk-plugin-manager</FILE>
-<TITLE>PeasGtkPluginManager</TITLE>
-PeasGtkPluginManager
-PeasGtkPluginManagerClass
-peas_gtk_plugin_manager_new
-peas_gtk_plugin_manager_get_view
-<SUBSECTION Standard>
-PEAS_GTK_PLUGIN_MANAGER
-PEAS_GTK_IS_PLUGIN_MANAGER
-PEAS_GTK_TYPE_PLUGIN_MANAGER
-peas_gtk_plugin_manager_get_type
-PEAS_GTK_PLUGIN_MANAGER_CLASS
-PEAS_GTK_IS_PLUGIN_MANAGER_CLASS
-PEAS_GTK_PLUGIN_MANAGER_GET_CLASS
-<SUBSECTION Private>
-PeasGtkPluginManagerPrivate
-</SECTION>
-
-<SECTION>
-<FILE>peas-gtk-plugin-manager-view</FILE>
-<TITLE>PeasGtkPluginManagerView</TITLE>
-PeasGtkPluginManagerView
-PeasGtkPluginManagerViewClass
-peas_gtk_plugin_manager_view_new
-peas_gtk_plugin_manager_view_set_show_builtin
-peas_gtk_plugin_manager_view_get_show_builtin
-peas_gtk_plugin_manager_view_set_selected_plugin
-peas_gtk_plugin_manager_view_get_selected_plugin
-<SUBSECTION Standard>
-PEAS_GTK_PLUGIN_MANAGER_VIEW
-PEAS_GTK_IS_PLUGIN_MANAGER_VIEW
-PEAS_GTK_TYPE_PLUGIN_MANAGER_VIEW
-peas_gtk_plugin_manager_view_get_type
-PEAS_GTK_PLUGIN_MANAGER_VIEW_CLASS
-PEAS_GTK_IS_PLUGIN_MANAGER_VIEW_CLASS
-PEAS_GTK_PLUGIN_MANAGER_VIEW_GET_CLASS
-<SUBSECTION Private>
-PeasGtkPluginManagerViewPrivate
-</SECTION>
-
-<SECTION>
-<FILE>peas-engine</FILE>
-<TITLE>PeasEngine</TITLE>
-PeasEngine
-PeasEngineClass
-peas_engine_new
-peas_engine_new_with_nonglobal_loaders
-peas_engine_get_default
-peas_engine_add_search_path
-peas_engine_prepend_search_path
-peas_engine_enable_loader
-peas_engine_rescan_plugins
-peas_engine_get_plugin_list
-peas_engine_get_loaded_plugins
-peas_engine_set_loaded_plugins
-peas_engine_get_plugin_info
-peas_engine_load_plugin
-peas_engine_unload_plugin
-peas_engine_garbage_collect
-peas_engine_provides_extension
-peas_engine_create_extension
-peas_engine_create_extensionv
-peas_engine_create_extension_valist
-<SUBSECTION Standard>
-PEAS_ENGINE
-PEAS_IS_ENGINE
-PEAS_TYPE_ENGINE
-peas_engine_get_type
-PEAS_ENGINE_CLASS
-PEAS_IS_ENGINE_CLASS
-PEAS_ENGINE_GET_CLASS
-<SUBSECTION Private>
-PeasEnginePrivate
-</SECTION>
-
-<SECTION>
-<FILE>peas-activatable</FILE>
-<TITLE>PeasActivatable</TITLE>
-PeasActivatable
-PeasActivatableInterface
-peas_activatable_activate
-peas_activatable_deactivate
-peas_activatable_update_state
-<SUBSECTION Standard>
-PEAS_ACTIVATABLE
-PEAS_IS_ACTIVATABLE
-PEAS_TYPE_ACTIVATABLE
-peas_activatable_get_type
-PEAS_ACTIVATABLE_IFACE
-PEAS_ACTIVATABLE_GET_IFACE
-</SECTION>
-
-<SECTION>
-<FILE>peas-extension-set</FILE>
-<TITLE>PeasExtensionSet</TITLE>
-PeasExtensionSet
-PeasExtensionSetClass
-PeasExtensionSetForeachFunc
-peas_extension_set_call
-peas_extension_set_call_valist
-peas_extension_set_callv
-peas_extension_set_foreach
-peas_extension_set_get_extension
-peas_extension_set_new
-peas_extension_set_newv
-peas_extension_set_new_valist
-<SUBSECTION Standard>
-PEAS_EXTENSION_SET
-PEAS_IS_EXTENSION_SET
-PEAS_TYPE_EXTENSION_SET
-peas_extension_set_get_type
-PEAS_EXTENSION_SET_CLASS
-PEAS_IS_EXTENSION_SET_CLASS
-PEAS_EXTENSION_SET_GET_CLASS
-<SUBSECTION Private>
-PeasExtensionSetPrivate
-</SECTION>
-
-<SECTION>
-<FILE>peas-object-module</FILE>
-<TITLE>PeasObjectModule</TITLE>
-PeasObjectModule
-PeasObjectModuleClass
-PeasFactoryFunc
-peas_object_module_register_extension_factory
-peas_object_module_register_extension_type
-<SUBSECTION Standard>
-PEAS_OBJECT_MODULE
-PEAS_IS_OBJECT_MODULE
-PEAS_TYPE_OBJECT_MODULE
-peas_object_module_get_type
-PEAS_OBJECT_MODULE_CLASS
-PEAS_IS_OBJECT_MODULE_CLASS
-PEAS_OBJECT_MODULE_GET_CLASS
-<SUBSECTION Private>
-PeasObjectModulePrivate
-peas_object_module_new
-peas_object_module_new_full
-peas_object_module_new_embedded
-peas_object_module_create_object
-peas_object_module_get_library
-peas_object_module_get_module_name
-peas_object_module_get_path
-peas_object_module_get_symbol
-peas_object_module_provides_object
-</SECTION>
-
-<SECTION>
-<FILE>peas-extension-base</FILE>
-<TITLE>PeasExtensionBase</TITLE>
-PeasExtensionBase
-PeasExtensionBaseClass
-peas_extension_base_get_plugin_info
-peas_extension_base_get_data_dir
-<SUBSECTION Standard>
-PEAS_EXTENSION_BASE
-PEAS_IS_EXTENSION_BASE
-PEAS_TYPE_EXTENSION_BASE
-peas_extension_base_get_type
-PEAS_EXTENSION_BASE_CLASS
-PEAS_IS_EXTENSION_BASE_CLASS
-PEAS_EXTENSION_BASE_GET_CLASS
-<SUBSECTION Private>
-PeasExtensionBasePrivate
-</SECTION>
-
-<SECTION>
-<FILE>peas-extension</FILE>
-<TITLE>PeasExtension</TITLE>
-PeasExtension
-peas_extension_get_extension_type
-peas_extension_call
-peas_extension_call_valist
-peas_extension_callv
-<SUBSECTION Standard>
-PEAS_EXTENSION
-PEAS_IS_EXTENSION
-PEAS_TYPE_EXTENSION
-peas_extension_get_type
-</SECTION>
-
-<SECTION>
-<FILE>peas-plugin-info</FILE>
-<TITLE>PeasPluginInfo</TITLE>
-PeasPluginInfo
-PeasPluginInfoError
-peas_plugin_info_is_loaded
-peas_plugin_info_is_available
-peas_plugin_info_is_builtin
-peas_plugin_info_is_hidden
-peas_plugin_info_get_module_name
-peas_plugin_info_get_module_dir
-peas_plugin_info_get_data_dir
-peas_plugin_info_get_settings
-peas_plugin_info_get_dependencies
-peas_plugin_info_has_dependency
-peas_plugin_info_get_name
-peas_plugin_info_get_description
-peas_plugin_info_get_icon_name
-peas_plugin_info_get_help_uri
-peas_plugin_info_get_authors
-peas_plugin_info_get_website
-peas_plugin_info_get_copyright
-peas_plugin_info_get_version
-peas_plugin_info_get_external_data
-<SUBSECTION Standard>
-PEAS_TYPE_PLUGIN_INFO
-PEAS_PLUGIN_INFO
-peas_plugin_info_get_type
-PEAS_PLUGIN_INFO_ERROR
-peas_plugin_info_error_quark
-</SECTION>
-
diff --git a/docs/reference/libpeas-urlmap.js b/docs/reference/libpeas-urlmap.js
new file mode 100644
index 0000000..a0ce5e6
--- /dev/null
+++ b/docs/reference/libpeas-urlmap.js
@@ -0,0 +1,7 @@
+// A map between namespaces and base URLs for their online documentation
+baseURLs = [
+ [ 'GLib', 'https://docs.gtk.org/glib/' ],
+ [ 'GObject', 'https://docs.gtk.org/gobject/' ],
+ [ 'Gio', 'https://docs.gtk.org/gio/' ],
+ [ 'Gtk', 'https://docs.gtk.org/gtk4/' ],
+]
diff --git a/docs/reference/libpeas.toml.in b/docs/reference/libpeas.toml.in
new file mode 100644
index 0000000..05e47ab
--- /dev/null
+++ b/docs/reference/libpeas.toml.in
@@ -0,0 +1,44 @@
+[library]
+version = "@VERSION@"
+browse_url = "https://gitlab.gnome.org/GNOME/libpeas"
+repository_url = "https://gitlab.gnome.org/GNOME/libpeas.git"
+docs_url = "https://gnome.pages.gitlab.gnome.org/libpeas/libpeas-1.0/"
+website_url = "https://gitlab.gnome.org/GNOME/libpeas"
+authors = "Steve Frécinaux, Garrett Regier, Christian Hergert"
+license = "LGPL-2.0-or-later"
+description = "HTTP client/server library for GNOME"
+dependencies = [ "GObject-2.0", "GLib-1.0", "Gio-2.0" ]
+devhelp = true
+search_index = true
+
+[dependencies."GObject-2.0"]
+name = "GObject"
+description = "The base type system library"
+docs_url = "https://docs.gtk.org/gobject/"
+
+[dependencies."GLib-2.0"]
+name = "GLib"
+description = "The base type system library"
+docs_url = "https://docs.gtk.org/glib/"
+
+[dependencies."Gio-2.0"]
+name = "GIO"
+description = "GObject Interfaces and Objects, Networking, IPC, and I/O"
+docs_url = "https://docs.gtk.org/gio/"
+
+[theme]
+name = "basic"
+show_index_summary = true
+show_class_hierarchy = true
+
+[source-location]
+base_url = "https://gitlab.gnome.org/GNOME/libpeas/-/blob/master/"
+
+[extra]
+# The same order will be used when generating the index
+content_files = [
+]
+
+content_images = [
+]
+urlmap_file = "libpeas-urlmap.js"
diff --git a/docs/reference/libpeas.types b/docs/reference/libpeas.types
deleted file mode 100644
index b837068..0000000
--- a/docs/reference/libpeas.types
+++ /dev/null
@@ -1,10 +0,0 @@
-peas_activatable_get_type
-peas_engine_get_type
-peas_extension_base_get_type
-peas_extension_get_type
-peas_extension_set_get_type
-peas_object_module_get_type
-peas_plugin_info_get_type
-peas_gtk_configurable_get_type
-peas_gtk_plugin_manager_get_type
-peas_gtk_plugin_manager_view_get_type
diff --git a/docs/reference/meson.build b/docs/reference/meson.build
index bac8849..fd4b513 100644
--- a/docs/reference/meson.build
+++ b/docs/reference/meson.build
@@ -1,99 +1,64 @@
-glib_prefix = glib_dep.get_pkgconfig_variable('prefix')
-glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
-
-gtk_prefix = gtk_dep.get_pkgconfig_variable('prefix')
-gtk_docpath = join_paths(gtk_prefix, 'share', 'gtk-doc', 'html')
-
-libpeas_reference_ignored_h = [
- 'gconstructor.h',
- 'peas-debug.h',
- 'peas-dirs.h',
- 'peas-engine-priv.h',
- 'peas-introspection.h',
- 'peas-marshal.h',
- 'peas-plugin-info-priv.h',
- 'peas-plugin-loader.h',
- 'peas-plugin-loader-c.h',
- 'peas-utils.h',
-]
-
-libpeas_reference_html_images = [
+expand_content_md_files = [
]
-libpeas_reference_srcdirs = [
- libpeas_srcdir,
-]
-
-if build_gtk_widgetry == true
- libpeas_reference_ignored_h += [
- 'peas-gtk-disable-plugins-dialog.h',
- 'peas-gtk-plugin-manager-store.h',
- ]
+toml_data = configuration_data()
+toml_data.set('VERSION', meson.project_version())
- libpeas_reference_html_images += [
- join_paths('images', 'peas-gtk-plugin-manager.png'),
- ]
-
- libpeas_reference_srcdirs += [
- libpeas_gtk_srcdir,
- ]
-endif
-
-version_xml = configuration_data()
-version_xml.set('PEAS_VERSION', version)
-
-configure_file(
- input: 'version.xml.in',
- output: 'version.xml',
- configuration: version_xml,
+libpeas_toml = configure_file(
+ input: 'libpeas.toml.in',
+ output: 'libpeas.toml',
+ configuration: toml_data
)
-libpeas_reference_deps = [
- libpeas_dep,
-]
-
-libpeas_reference_scan_args = [
- '--rebuild-types',
- '--deprecated-guards="PEAS_DISABLE_DEPRECATED"',
- '--ignore-headers=' + ' '.join(libpeas_reference_ignored_h),
-]
-
-libpeas_reference_fixxref_args = [
- '--extra-dir=@0@'.format(join_paths(glib_docpath, 'glib')),
- '--extra-dir=@0@'.format(join_paths(glib_docpath, 'gobject')),
- '--extra-dir=@0@'.format(join_paths(glib_docpath, 'gmodule')),
- '--extra-dir=@0@'.format(join_paths(glib_docpath, 'gio')),
-]
-
-libpeas_reference_mkdb_args = [
- '--sgml-mode',
- '--output-format=xml',
-]
+gidocgen = find_program('gi-docgen')
+
+docs_dir = get_option('datadir') / 'doc'
+
+custom_target('libpeas-doc',
+ input: [libpeas_toml, libpeas_gir[0]],
+ output: 'libpeas-@0@'.format(api_version),
+ command: [
+ gidocgen,
+ 'generate',
+ '--quiet',
+ '--add-include-path=@0@'.format(meson.current_build_dir() / '../../libpeas'),
+ '--config=@INPUT0@',
+ '--output-dir=@OUTPUT@',
+ '--no-namespace-dir',
+ '--content-dir=@0@'.format(meson.current_source_dir()),
+ '@INPUT1@',
+ ],
+ depend_files: [ expand_content_md_files ],
+ build_by_default: true,
+ install: true,
+ install_dir: docs_dir,
+)
if build_gtk_widgetry == true
- libpeas_reference_deps += [
- libpeas_gtk_dep,
- ]
-
- libpeas_reference_fixxref_args += [
- '--extra-dir=@0@'.format(join_paths(gtk_docpath, 'gtk')),
- ]
-endif
+ libpeas_gtk_toml = configure_file(
+ input: 'libpeas-gtk.toml.in',
+ output: 'libpeas-gtk.toml',
+ configuration: toml_data
+ )
-gnome.gtkdoc(
- package_name,
- main_sgml: 'libpeas-docs.sgml',
- gobject_typesfile: 'libpeas.types',
- src_dir: libpeas_reference_srcdirs,
- html_assets: libpeas_reference_html_images,
- dependencies: libpeas_reference_deps,
- scan_args: libpeas_reference_scan_args,
- fixxref_args: libpeas_reference_fixxref_args,
- mkdb_args: libpeas_reference_mkdb_args,
- install: true,
- install_dir: join_paths(
- gtkdocdir,
- 'html',
- package_name,
+ custom_target('libpeas-gtk-doc',
+ input: [libpeas_gtk_toml, libpeas_gtk_gir[0], libpeas_gir[0]],
+ output: 'libpeas-gtk-@0@'.format(api_version),
+ command: [
+ gidocgen,
+ 'generate',
+ '--quiet',
+ '--add-include-path=@0@'.format(meson.current_build_dir() / '../../libpeas-gtk'),
+ '--add-include-path=@0@'.format(meson.current_build_dir() / '../../libpeas'),
+ '--config=@INPUT0@',
+ '--output-dir=@OUTPUT@',
+ '--no-namespace-dir',
+ '--content-dir=@0@'.format(meson.current_source_dir()),
+ '@INPUT1@',
+ ],
+ depend_files: [ expand_content_md_files ],
+ build_by_default: true,
+ install: true,
+ install_dir: docs_dir,
)
-)
+endif
diff --git a/docs/reference/version.xml.in b/docs/reference/version.xml.in
deleted file mode 100644
index 35861e9..0000000
--- a/docs/reference/version.xml.in
+++ /dev/null
@@ -1 +0,0 @@
-@PEAS_VERSION@