mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 01:43:24 +00:00
devel-docs: Add a urlmap file
The urlmap file allows gi-docgen to generate links for namespaces that are also generated by gi-docgen. For example, with this commit, a reference to `GObject` will now be properly linked to the GObject documentation.
This commit is contained in:
parent
1dded62f6d
commit
175dab9f86
4 changed files with 20 additions and 0 deletions
|
@ -106,3 +106,4 @@ content_images = [
|
|||
'images/string-combo-box.png',
|
||||
'images/unit-combo-box.png',
|
||||
]
|
||||
urlmap_file = "urlmap.js"
|
||||
|
|
9
devel-docs/reference/gimp-ui/urlmap.js
Normal file
9
devel-docs/reference/gimp-ui/urlmap.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
// A map between namespaces and base URLs for their online gi-docgen documentation
|
||||
baseURLs = [
|
||||
[ 'GLib', 'https://docs.gtk.org/glib/' ],
|
||||
[ 'GObject', 'https://docs.gtk.org/gobject/' ],
|
||||
[ 'Gdk', 'https://docs.gtk.org/gdk3/' ],
|
||||
[ 'GdkPixbuf', 'https://docs.gtk.org/gdk-pixbuf/' ],
|
||||
[ 'Gio', 'https://docs.gtk.org/gio/' ],
|
||||
[ 'Gtk', 'https://docs.gtk.org/gtk3/' ],
|
||||
]
|
|
@ -72,3 +72,4 @@ base_url = "https://gitlab.gnome.org/GNOME/gimp/-/blob/master/"
|
|||
[extra]
|
||||
content_files = [
|
||||
]
|
||||
urlmap_file = "urlmap.js"
|
||||
|
|
9
devel-docs/reference/gimp/urlmap.js
Normal file
9
devel-docs/reference/gimp/urlmap.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
// A map between namespaces and base URLs for their online gi-docgen documentation
|
||||
baseURLs = [
|
||||
[ 'GLib', 'https://docs.gtk.org/glib/' ],
|
||||
[ 'GObject', 'https://docs.gtk.org/gobject/' ],
|
||||
[ 'Gdk', 'https://docs.gtk.org/gdk3/' ],
|
||||
[ 'GdkPixbuf', 'https://docs.gtk.org/gdk-pixbuf/' ],
|
||||
[ 'Gio', 'https://docs.gtk.org/gio/' ],
|
||||
[ 'Gtk', 'https://docs.gtk.org/gtk3/' ],
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue