[gtksourceview: 17/21] docs: add a urlmap




commit 1c8e4d7987c1a31c9abcd4c634562c9e3ac74eb0
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Wed Dec 1 12:52:23 2021 +0100

    docs: add a urlmap
    
    shamelessly copied from gtk docs

 docs/GtkSource.toml.in |  3 ++-
 docs/urlmap.js         | 12 ++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/docs/GtkSource.toml.in b/docs/GtkSource.toml.in
index 02866654..6ce85092 100644
--- a/docs/GtkSource.toml.in
+++ b/docs/GtkSource.toml.in
@@ -66,4 +66,5 @@ content_files = [
 
 content_images = [
   "logo.svg",
-]
\ No newline at end of file
+]
+urlmap_file = "urlmap.js"
diff --git a/docs/urlmap.js b/docs/urlmap.js
new file mode 100644
index 00000000..06e15976
--- /dev/null
+++ b/docs/urlmap.js
@@ -0,0 +1,12 @@
+
+// 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/' ],
+    [ 'Gdk', 'https://docs.gtk.org/gdk4/' ],
+    [ 'Gsk', 'https://docs.gtk.org/gsk4/' ],
+    [ 'Gtk', 'https://docs.gtk.org/gtk4/' ],
+    [ 'Pango', 'https://docs.gtk.org/Pango/' ],
+    [ 'GdkPixbuf', 'https://docs.gtk.org/gdk-pixbuf/' ],
+]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]