Commit a3368141 authored by Jiří Techet's avatar Jiří Techet

Fix documentation generation using meson

Meson build removed "lib" prefix from the docs directory name. Because
of this, also files like -sections.txt have to drop the "lib" prefix,
otherwise they are ignored when generating documentation.

Also use xml mode for generating docs and rename sgml file to xml.
parent 95fe1887
Pipeline #57507 passed with stages
in 11 minutes and 2 seconds
......@@ -53,35 +53,35 @@ demos/launcher-vala.c
demos/markers-vala.c
depcomp
compile
docs/reference-gtk/libchamplain-gtk-undeclared.txt
docs/reference-gtk/libchamplain-gtk-undocumented.txt
docs/reference-gtk/libchamplain-gtk-unused.txt
docs/reference-gtk/libchamplain-gtk.args
docs/reference-gtk/libchamplain-gtk.hierarchy
docs/reference-gtk/libchamplain-gtk.interfaces
docs/reference-gtk/libchamplain-gtk.prerequisites
docs/reference-gtk/libchamplain-gtk.signals
docs/reference-gtk/champlain-gtk-undeclared.txt
docs/reference-gtk/champlain-gtk-undocumented.txt
docs/reference-gtk/champlain-gtk-unused.txt
docs/reference-gtk/champlain-gtk.args
docs/reference-gtk/champlain-gtk.hierarchy
docs/reference-gtk/champlain-gtk.interfaces
docs/reference-gtk/champlain-gtk.prerequisites
docs/reference-gtk/champlain-gtk.signals
docs/reference-gtk/version.xml
docs/reference-gtk/libchamplain-gtk-decl-list.txt
docs/reference-gtk/libchamplain-gtk-decl.txt
docs/reference-gtk/libchamplain-gtk-overrides.txt
docs/reference-gtk/libchamplain-gtk-types.txt
docs/reference-gtk/champlain-gtk-decl-list.txt
docs/reference-gtk/champlain-gtk-decl.txt
docs/reference-gtk/champlain-gtk-overrides.txt
docs/reference-gtk/champlain-gtk-types.txt
docs/reference-gtk/html/*.*
docs/reference-gtk/tmpl/*.*
docs/reference-gtk/xml/*.*
docs/reference/version.xml
docs/reference/libchamplain-undeclared.txt
docs/reference/libchamplain-undocumented.txt
docs/reference/libchamplain-unused.txt
docs/reference/libchamplain.args
docs/reference/libchamplain.hierarchy
docs/reference/libchamplain.interfaces
docs/reference/libchamplain.prerequisites
docs/reference/libchamplain.signals
docs/reference/libchamplain-decl-list.txt
docs/reference/libchamplain-decl.txt
docs/reference/libchamplain-overrides.txt
docs/reference/libchamplain-types.txt
docs/reference/champlain-undeclared.txt
docs/reference/champlain-undocumented.txt
docs/reference/champlain-unused.txt
docs/reference/champlain.args
docs/reference/champlain.hierarchy
docs/reference/champlain.interfaces
docs/reference/champlain.prerequisites
docs/reference/champlain.signals
docs/reference/champlain-decl-list.txt
docs/reference/champlain-decl.txt
docs/reference/champlain-overrides.txt
docs/reference/champlain-types.txt
docs/reference/html/*.*
docs/reference/tmpl/*.*
docs/reference/xml/*.*
......
......@@ -4,14 +4,14 @@
AUTOMAKE_OPTIONS = 1.6
# The name of the module, e.g. 'glib'.
DOC_MODULE=libchamplain-gtk
DOC_MODULE=champlain-gtk
# Uncomment for versioned docs and specify the version of the module, e.g. '2'.
DOC_MODULE_VERSION=@CHAMPLAIN_API_VERSION@
# The top-level SGML file. You can change this if you want to.
DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml
DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
# The directory containing the source code. Relative to $(srcdir).
# gtk-doc will search all .c & .h files beneath here for inline comments
......@@ -28,7 +28,7 @@ SCAN_OPTIONS=--rebuild-types --deprecated-guards="GTK_DISABLE_DEPRECATED"
# Extra options to supply to gtkdoc-mkdb.
# e.g. MKDB_OPTIONS=--sgml-mode --output-format=xml
MKDB_OPTIONS=--sgml-mode --output-format=xml --name-space=gtk_champlain
MKDB_OPTIONS=--xml-mode --output-format=xml --name-space=gtk_champlain
# Extra options to supply to gtkdoc-mktmpl
# e.g. MKTMPL_OPTIONS=--only-section-tmpl
......
......@@ -36,8 +36,9 @@ libchamplain_gtk_reference_fixxref_args = [
gnome.gtkdoc(
package_gtk_name,
main_sgml: 'libchamplain-gtk-docs.sgml',
gobject_typesfile: files('libchamplain-gtk.types'),
main_xml: 'champlain-gtk-docs.xml',
mode: 'xml',
gobject_typesfile: files('champlain-gtk.types'),
src_dir: libchamplain_gtk_srcdir,
dependencies: libchamplain_gtk_dep,
scan_args: libchamplain_gtk_reference_scan_args,
......
......@@ -4,14 +4,14 @@
AUTOMAKE_OPTIONS = 1.6
# The name of the module, e.g. 'glib'.
DOC_MODULE=libchamplain
DOC_MODULE=champlain
# Uncomment for versioned docs and specify the version of the module, e.g. '2'.
DOC_MODULE_VERSION=@CHAMPLAIN_API_VERSION@
# The top-level SGML file. You can change this if you want to.
DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml
DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
# The directory containing the source code. Relative to $(srcdir).
# gtk-doc will search all .c & .h files beneath here for inline comments
......@@ -28,7 +28,7 @@ SCAN_OPTIONS=--rebuild-types --deprecated-guards="GTK_DISABLE_DEPRECATED"
# Extra options to supply to gtkdoc-mkdb.
# e.g. MKDB_OPTIONS=--sgml-mode --output-format=xml
MKDB_OPTIONS=--sgml-mode --output-format=xml --name-space=champlain
MKDB_OPTIONS=--xml-mode --output-format=xml --name-space=champlain
# Extra options to supply to gtkdoc-mktmpl
# e.g. MKTMPL_OPTIONS=--only-section-tmpl
......
......@@ -56,8 +56,9 @@ libchamplain_reference_fixxref_args = [
gnome.gtkdoc(
package_name,
main_sgml: 'libchamplain-docs.sgml',
gobject_typesfile: files('libchamplain.types'),
main_xml: 'champlain-docs.xml',
mode: 'xml',
gobject_typesfile: files('champlain.types'),
src_dir: libchamplain_srcdir,
dependencies: libchamplain_dep,
scan_args: libchamplain_reference_scan_args,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment