[gtk-web/new-website: 111/191] shifted sidebar navigation from stuff.yml to navigation.yml



commit aaecb08c750212b5eaa0a267554a135f3df56aff
Author: ravgeetdhillon <ravgeetdhillon gmail com>
Date:   Fri Jul 19 12:34:21 2019 +0530

    shifted sidebar navigation from stuff.yml to navigation.yml

 _data/navigation.yml        | 67 ++++++++++++++++++++++++++++++++++++++++++++-
 _layouts/documentation.html |  4 +--
 2 files changed, 68 insertions(+), 3 deletions(-)
---
diff --git a/_data/navigation.yml b/_data/navigation.yml
index e95aab5..9304b9f 100644
--- a/_data/navigation.yml
+++ b/_data/navigation.yml
@@ -116,4 +116,69 @@ social_links:
   - icon: fab fa-gitlab
     href: https://gitlab.gnome.org/GNOME/gtk/
   - icon: fab fa-discourse
-    href: https://discourse.gnome.org/c/platform/core/
\ No newline at end of file
+    href: https://discourse.gnome.org/c/platform/core/
+
+# read out the CONTRIBUTING.md to know how to add documentation pages to the website
+
+# to add sections to the sidebar on the documentation pages of the website, add a section with the following 
attributes:
+#   title: the display text for the section
+#   name: the name of the `.md` file in '/collection/_docs', to which the link should point
+sidebar_sections:
+  - title: Getting Started
+    name: getting-started
+  - title: Installations
+    name: installations
+  - title: Language Bindings
+    name: language-bindings
+  - title: Dev Tools
+    name: dev-tools
+  - title: API References
+    name: apis
+  - title: Architecture
+    name: architecture
+
+# to add links to the sidebar on the documentation pages of the website, add a link with the following 
attributes:
+#   title: the display text for the section
+#   name: the name of the `.md` file in '/collection/_docs', to which the link should point
+#   section: the name of the section the link belongs to
+sidebar_links:
+  - title: Mono Develop
+    name: mono-develop
+    section: Dev Tools
+  - title: GNOME Builder
+    name: gnome-builder
+    section: Dev Tools
+  - title: Eclipse
+    name: eclipse
+    section: Dev Tools
+  - title: Linux
+    name: linux
+    section: Installations
+  - title: Windows
+    name: windows
+    section: Installations
+  - title: MacOS
+    name: macos
+    section: Installations
+  - title: GTK3
+    name: gtk3
+    section: API References
+    href: https://developer.gnome.org/gtk3/
+  - title: GTK4
+    name: gtk4
+    section: API References
+  - title: GLib, GObject, GIO
+    name: glib
+    section: Architecture
+  - title: GdkPixbuf
+    name: gdkpixbuf
+    section: Architecture
+  - title: Pango
+    name: pango
+    section: Architecture
+  - title: GDK
+    name: gtk
+    section: Architecture
+  - title: Cairo
+    name: cairo
+    section: architecture
\ No newline at end of file
diff --git a/_layouts/documentation.html b/_layouts/documentation.html
index b5d49bb..c634d05 100644
--- a/_layouts/documentation.html
+++ b/_layouts/documentation.html
@@ -9,9 +9,9 @@
       <div class="col-lg-3 col-md-4 small p-0 order-2 order-md-1">
         <div class="text-break pt-4 px-4 border-right h-100">
           <ul class="list-group">
-            {% for section in site.data.stuff.sidebar_sections %}
+            {% for section in site.data.navigation.sidebar_sections %}
             <li class="list-group-item border-0 group-header pb-4"><a href="/docs/{{ section.name }}" 
class="text-dark"><strong>{{ section.title }}</strong></a>
-              {% assign sidebar_links = site.data.stuff.sidebar_links | where: "section", section.title %}
+              {% assign sidebar_links = site.data.navigation.sidebar_links | where: "section", section.title 
%}
               <ul class="list-group">
                 {% for link in sidebar_links %}
                   {% if link.href %}


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