[gtk-web/new-website: 115/191] added breadcrumbs to docs
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-web/new-website: 115/191] added breadcrumbs to docs
- Date: Thu, 21 Nov 2019 12:28:08 +0000 (UTC)
commit 115e17e05f551191573dfa587d49a6bc574fc6b9
Author: ravgeetdhillon <ravgeetdhillon gmail com>
Date: Sat Jul 20 18:08:23 2019 +0530
added breadcrumbs to docs
_includes/header.html | 2 +-
_layouts/documentation.html | 15 +++++++++------
collections/_docs/architecture.md | 4 +++-
docs.html | 2 +-
features.html | 1 +
5 files changed, 15 insertions(+), 9 deletions(-)
---
diff --git a/_includes/header.html b/_includes/header.html
index aa9b1c6..0724b32 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -41,7 +41,7 @@
<nav class="container navbar-expand-md px-0 px-md-3">
<a href="{{ site.url }}" class="navbar-brand text-{{ text_color }}"><img src="{{
'/assets/img/logo-gtk.png' | prepend: site.url }}" width="40" height="40" /><strong>GTK</strong></a>
<a class="btn navbar-toggler border-0 p-0" role="button" data-toggle="collapse"
data-target="#navbarSupportedContent">
- <i class="fas fa-ellipsis-h"></i>
+ <i class="fas fa-ellipsis-h text-{{ text_color }}"></i>
</a>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
diff --git a/_layouts/documentation.html b/_layouts/documentation.html
index a6e084b..f6d217d 100644
--- a/_layouts/documentation.html
+++ b/_layouts/documentation.html
@@ -10,15 +10,16 @@
<div class="text-break pt-4 px-4 border-right h-100">
<ul class="list-group">
{% 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>
+ <li class="list-group-item border-0 group-header pb-4"><a href="{{ '/docs/' | prepend: site.url
}}{{ section.name }}/" class="text-dark"><strong>{{ section.title }}</strong></a>
{% assign sidebar_links = site.data.navigation.sidebar_links | where: "section", section.title
%}
<ul class="list-group">
{% for link in sidebar_links %}
- {% if link.href %}
+ {% if link.external %}
<li class="list-group-item border-0 p-0 pt-2"><a href="{{ link.href }}"
class="text-muted">{{ link.title }}</a></li>
{% else %}
- <li class="list-group-item border-0 p-0 pt-2"><a href="/docs/{{ section.name }}/{{
link.name }}/" class="text-muted">{{ link.title }}</a></li>
+ <li class="list-group-item border-0 p-0 pt-2"><a href="{{ '/docs/' | prepend: site.url
}}{{ section.name }}/{{ link.name }}/" class="text-muted">{{ link.title }}</a></li>
{% endif %}
+ {{ link.permalink }}
{% endfor %}
</ul>
</li>
@@ -32,11 +33,13 @@
<nav aria-label="breadcrumb">
<ol class="breadcrumb small bg-transparent pl-0 m-0">
{% assign url = page.url | split: '/' %}
+ {% assign current_path = '' %}
{% for part in url %}
+ {% assign current_path = current_path | append: part | append: '/' %}
{% if forloop.last == true %}
<li class="breadcrumb-item active" aria-current="page">{{ part }}</li>
{% else %}
- <li class="breadcrumb-item"><a href="#">{{ part }}</a></li>
+ <li class="breadcrumb-item"><a href="{{ current_path | prepend: site.url }}">{{ part
}}</a></li>
{% endif %}
{% endfor %}
</ol>
@@ -52,9 +55,9 @@
<div class="mr-3 px-3 py-3 border rounded shadow-sm">
{% assign page_name = page.path | split: '/' %}
{% assign page_name = page_name.last %}
- <p class="mb-0">Observed a typo or some missing information, edit this page <a
href="https://gitlab.gnome.org/ravgeetdhillon/gtk-web/blob/master/collections/_docs/{{ page_name
}}/">here</a>.</p>
+ <p class="mb-0">Observed a typo or some missing information, edit this page <a href="{{
site.data.stuff.site_repo | append: 'blob/master/collections/_docs/' }}{{ page_name }}/">here</a>.</p>
<br>
- <p class="mb-0">Read on <a
href="https://gitlab.gnome.org/ravgeetdhillon/gtk-web/blob/master/CONTRIBUTING.md/">how to contribute</a> to
this website.</p>
+ <p class="mb-0">Read on <a href="{{ site.data.stuff.site_repo | append:
'blob/master/CONTRIBUTING.md/' }}">how to contribute</a> to this website.</p>
</div>
</div>
</div>
diff --git a/collections/_docs/architecture.md b/collections/_docs/architecture.md
index b6c2aad..2059779 100644
--- a/collections/_docs/architecture.md
+++ b/collections/_docs/architecture.md
@@ -1,4 +1,6 @@
---
permalink: /docs/:name/
---
-architecture
\ No newline at end of file
+architecture
+
+![uetiuetioe](/assets/img/docs/doc-gtk-architecture.png)
\ No newline at end of file
diff --git a/docs.html b/docs.html
index 4282c36..6df6bdd 100644
--- a/docs.html
+++ b/docs.html
@@ -1,6 +1,6 @@
---
navbar_type: dark
-
+permalink: /docs/
---
{%- include header.html -%}
diff --git a/features.html b/features.html
index a8719d6..e42a441 100644
--- a/features.html
+++ b/features.html
@@ -1,5 +1,6 @@
---
navbar_type: dark
+permalink: /features/
---
{%- include header.html -%}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]