forked from AuroraMiddleware/gtk
docs: Add separate toml files for gdk backends
Reusing the same one duplicates the standalone docs, which doesn't quite seem right.
This commit is contained in:
parent
205a13eaa0
commit
b78895e449
23
docs/reference/gdk/gdk4-wayland.toml.in
Normal file
23
docs/reference/gdk/gdk4-wayland.toml.in
Normal file
@ -0,0 +1,23 @@
|
||||
[library]
|
||||
version = "@version@"
|
||||
browse_url = "https://gitlab.gnome.org/GNOME/gtk/"
|
||||
repository_url = "https://gitlab.gnome.org/GNOME/gtk.git"
|
||||
website_url = "https://www.gtk.org"
|
||||
authors = "GTK Development Team"
|
||||
logo_url = "gtk-logo.svg"
|
||||
license = "GPL-2.1-or-later"
|
||||
description = "The GTK toolkit"
|
||||
dependencies = [ "GObject-2.0" ]
|
||||
devhelp = true
|
||||
|
||||
[dependencies."GObject-2.0"]
|
||||
name = "GObject"
|
||||
description = "The base type system library"
|
||||
docs_url = "https://developer.gnome.org/gobject/stable"
|
||||
|
||||
[theme]
|
||||
name = "basic"
|
||||
show_index_summary = true
|
||||
|
||||
[source-location]
|
||||
base_url = "https://gitlab.gnome.org/GNOME/gtk/-/blob/master/"
|
23
docs/reference/gdk/gdk4-x11.toml.in
Normal file
23
docs/reference/gdk/gdk4-x11.toml.in
Normal file
@ -0,0 +1,23 @@
|
||||
[library]
|
||||
version = "@version@"
|
||||
browse_url = "https://gitlab.gnome.org/GNOME/gtk/"
|
||||
repository_url = "https://gitlab.gnome.org/GNOME/gtk.git"
|
||||
website_url = "https://www.gtk.org"
|
||||
authors = "GTK Development Team"
|
||||
logo_url = "gtk-logo.svg"
|
||||
license = "GPL-2.1-or-later"
|
||||
description = "The GTK toolkit"
|
||||
dependencies = [ "GObject-2.0" ]
|
||||
devhelp = true
|
||||
|
||||
[dependencies."GObject-2.0"]
|
||||
name = "GObject"
|
||||
description = "The base type system library"
|
||||
docs_url = "https://developer.gnome.org/gobject/stable"
|
||||
|
||||
[theme]
|
||||
name = "basic"
|
||||
show_index_summary = true
|
||||
|
||||
[source-location]
|
||||
base_url = "https://gitlab.gnome.org/GNOME/gtk/-/blob/master/"
|
@ -2,6 +2,8 @@ expand_content_md_files = [
|
||||
]
|
||||
|
||||
gdk4_toml = configure_file(input: 'gdk4.toml.in', output: 'gdk4.toml', configuration: toml_conf)
|
||||
gdk4x11_toml = configure_file(input: 'gdk4-x11.toml.in', output: 'gdk4-x11.toml', configuration: toml_conf)
|
||||
gdk4wayland_toml = configure_file(input: 'gdk4-wayland.toml.in', output: 'gdk4-wayland.toml', configuration: toml_conf)
|
||||
|
||||
if get_option('gtk_doc')
|
||||
custom_target('gdk4-doc',
|
||||
@ -24,7 +26,7 @@ if get_option('gtk_doc')
|
||||
|
||||
if x11_enabled
|
||||
custom_target('gdk4-x11-doc',
|
||||
input: [ gdk4_toml, gdk_x11_gir[0] ],
|
||||
input: [ gdk4x11_toml, gdk_x11_gir[0] ],
|
||||
output: 'gdk4-x11',
|
||||
command: [
|
||||
gidocgen,
|
||||
@ -38,14 +40,14 @@ if get_option('gtk_doc')
|
||||
'@INPUT1@',
|
||||
],
|
||||
depends: [ gdk_gir[0] ],
|
||||
depend_files: [ expand_content_md_files ],
|
||||
depend_files: [ ],
|
||||
build_by_default: true,
|
||||
)
|
||||
endif
|
||||
|
||||
if wayland_enabled
|
||||
custom_target('gdk4-wayland-doc',
|
||||
input: [ gdk4_toml, gdk_wayland_gir[0] ],
|
||||
input: [ gdk4wayland_toml, gdk_wayland_gir[0] ],
|
||||
output: 'gdk4-wayland',
|
||||
command: [
|
||||
gidocgen,
|
||||
@ -59,7 +61,7 @@ if get_option('gtk_doc')
|
||||
'@INPUT1@',
|
||||
],
|
||||
depends: [ gdk_gir[0] ],
|
||||
depend_files: [ expand_content_md_files ],
|
||||
depend_files: [ ],
|
||||
build_by_default: true,
|
||||
)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user