aboutsummaryrefslogtreecommitdiffstats
path: root/theme/mkdocs_windmill/article-nav.html
diff options
context:
space:
mode:
authorShankho Boron Ghosh <shankhoghosh123@gmail.com>2020-11-06 20:20:45 +0530
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-11-10 15:25:18 +0000
commit992be2143539df943ba835ffa6b1165e5c841119 (patch)
tree613c05e71974bed2ff8a7bf96e747ac7c6d23571 /theme/mkdocs_windmill/article-nav.html
parent1aeb863a111b8ea1b48d56d4a563c8398082858e (diff)
Added Halibut Branchhalibut
Meta redirects to http://old-docs.automotivelinux.org/docs/en/halibut/getting_started/ Bug-AGL: [SPEC-3633] Signed-off-by: Shankho Boron Ghosh <shankhoghosh123@gmail.com> Change-Id: I2f106628e603cb207d1734f521b5e8d1fb4164dc Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/documentation/+/25515 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'theme/mkdocs_windmill/article-nav.html')
-rw-r--r--theme/mkdocs_windmill/article-nav.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/theme/mkdocs_windmill/article-nav.html b/theme/mkdocs_windmill/article-nav.html
new file mode 100644
index 0000000..3f21b96
--- /dev/null
+++ b/theme/mkdocs_windmill/article-nav.html
@@ -0,0 +1,37 @@
+{% block article_nav %}
+ {%- if page and (page.next_page or page.previous_page) %}
+
+ {# Workaround to keep mkdocs 0.17 working for now, which has no 'url' filter. #}
+ {% if mkdocs_version >= "1" %}
+ {% from "page-nav-urls.html" import next_page, prev_page with context %}
+ {% else %}
+ {% set next_page = page.next_page.url %}
+ {% set prev_page = page.previous_page.url %}
+ {% endif %}
+
+ <div class="row wm-article-nav-buttons" role="navigation" aria-label="navigation">
+ {% if page.next_page %}
+ <div class="wm-article-nav pull-right">
+ <a href="{{ next_page }}" class="btn btn-xs btn-default pull-right">
+ Next
+ <i class="fa fa-chevron-right" aria-hidden="true"></i>
+ </a>
+ <a href="{{ next_page }}" class="btn btn-xs btn-link">
+ {{ page.next_page.title }}
+ </a>
+ </div>
+ {% endif %}
+
+ {%- if page.previous_page %}
+ <div class="wm-article-nav">
+ <a href="{{ prev_page }}" class="btn btn-xs btn-default pull-left">
+ <i class="fa fa-chevron-left" aria-hidden="true"></i>
+ Previous</a><a href="{{ prev_page }}" class="btn btn-xs btn-link">
+ {{ page.previous_page.title }}
+ </a>
+ </div>
+ {% endif %}
+ </div>
+
+ {%- endif %}
+{% endblock %}