just-the-docs 0.2.6 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/_includes/css/custom.scss.liquid +1 -0
- data/_includes/css/just-the-docs.scss.liquid +7 -0
- data/_includes/head.html +4 -4
- data/_includes/nav.html +55 -40
- data/_includes/title.html +5 -1
- data/_includes/vendor/anchor_headings.html +2 -2
- data/_layouts/default.html +146 -73
- data/_layouts/table_wrappers.html +1 -1
- data/_sass/base.scss +16 -18
- data/_sass/code.scss +209 -71
- data/_sass/color_schemes/dark.scss +1 -1
- data/_sass/color_schemes/light.scss +0 -0
- data/_sass/content.scss +53 -5
- data/_sass/custom/custom.scss +0 -129
- data/_sass/labels.scss +5 -4
- data/_sass/layout.scss +67 -55
- data/_sass/modules.scss +20 -0
- data/_sass/navigation.scss +129 -53
- data/_sass/print.scss +40 -0
- data/_sass/search.scss +204 -48
- data/_sass/support/_functions.scss +2 -3
- data/_sass/support/_variables.scss +15 -9
- data/_sass/support/mixins/_layout.scss +1 -3
- data/_sass/support/mixins/_typography.scss +6 -1
- data/_sass/typography.scss +9 -7
- data/_sass/utilities/_layout.scss +74 -17
- data/_sass/utilities/_lists.scss +7 -1
- data/_sass/utilities/_spacing.scss +69 -25
- data/assets/css/just-the-docs-dark.scss +3 -0
- data/assets/css/just-the-docs-default.scss +8 -0
- data/assets/css/just-the-docs-light.scss +3 -0
- data/assets/js/just-the-docs.js +374 -197
- data/assets/js/zzzz-search-data.json +58 -0
- data/lib/tasks/search.rake +54 -9
- metadata +36 -24
- data/assets/css/dark-mode-preview.scss +0 -41
- data/assets/css/just-the-docs.scss +0 -44
- data/assets/js/search-data.json +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87c6985104e4168278d239ca574b91c75b417cb9e6eb43cf043a07d8faeb2d2d
|
4
|
+
data.tar.gz: 16a11958e2715cdfbf29918ff218b58f26d4507634ebd6fbcb9b26a68d7765b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d0cece8a1437daee58c56cf476228cbb6dbe74899dd750125e1a898509eb6ae93db7f1c9272d65dd68eb27680069809f4d8f94e09cc3ea6412ba1caf6a53715
|
7
|
+
data.tar.gz: 0b6024ecb2f568beb97d3aa219958bf86c1179211610beff3e3e11f578d1597d8d796b185845f8926a255648eef35afd62ab56fa90487b7572611aa863a413c4
|
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
<p align="right">
|
2
|
-
<a href="https://badge.fury.io/rb/just-the-docs"><img src="https://badge.fury.io/rb/just-the-docs.svg" alt="Gem version"></a> <a href="https://github.com/pmarsceill/just-the-docs/actions"><img src="https://github.com/pmarsceill/just-the-docs/workflows/
|
2
|
+
<a href="https://badge.fury.io/rb/just-the-docs"><img src="https://badge.fury.io/rb/just-the-docs.svg" alt="Gem version"></a> <a href="https://github.com/pmarsceill/just-the-docs/actions?query=workflow%3A%22Master+branch+CI%22"><img src="https://github.com/pmarsceill/just-the-docs/workflows/Master%20branch%20CI/badge.svg" alt="Build status"></a>
|
3
3
|
</p>
|
4
4
|
<br><br>
|
5
5
|
<p align="center">
|
6
6
|
<h1 align="center">Just the Docs</h1>
|
7
|
-
<p align="center">A modern,
|
7
|
+
<p align="center">A modern, highly customizable, and responsive Jekyll theme for documentation with built-in search.<br>Easily hosted on GitHub Pages with few dependencies.</p>
|
8
8
|
<p align="center"><strong><a href="https://pmarsceill.github.io/just-the-docs/">See it in action!</a></strong></p>
|
9
9
|
<br><br><br>
|
10
10
|
</p>
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "./custom/custom";
|
data/_includes/head.html
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
<meta charset="UTF-8">
|
3
3
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
4
4
|
|
5
|
-
{%
|
5
|
+
{% unless site.plugins contains "jekyll-seo-tag" %}
|
6
6
|
<title>{{ page.title }} - {{ site.title }}</title>
|
7
7
|
|
8
8
|
{% if page.description %}
|
9
9
|
<meta name="Description" content="{{ page.description }}">
|
10
10
|
{% endif %}
|
11
|
-
{%
|
11
|
+
{% endunless %}
|
12
12
|
|
13
13
|
<link rel="shortcut icon" href="{{ 'favicon.ico' | absolute_url }}" type="image/x-icon">
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="{{ '/assets/css/just-the-docs.css' | absolute_url }}">
|
15
|
+
<link rel="stylesheet" href="{{ '/assets/css/just-the-docs-default.css' | absolute_url }}">
|
16
16
|
|
17
17
|
{% if site.ga_tracking != nil %}
|
18
18
|
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.ga_tracking }}"></script>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
function gtag(){dataLayer.push(arguments);}
|
22
22
|
gtag('js', new Date());
|
23
23
|
|
24
|
-
gtag('config',
|
24
|
+
gtag('config', '{{ site.ga_tracking }}'{% unless site.ga_tracking_anonymize_ip == nil %}, { 'anonymize_ip': true }{% endunless %});
|
25
25
|
</script>
|
26
26
|
|
27
27
|
{% endif %}
|
data/_includes/nav.html
CHANGED
@@ -1,40 +1,55 @@
|
|
1
|
-
<
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
{%-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
1
|
+
<ul class="nav-list">
|
2
|
+
{%- assign ordered_pages_list = site.html_pages | where_exp:"item", "item.nav_order != nil" -%}
|
3
|
+
{%- assign unordered_pages_list = site.html_pages | where_exp:"item", "item.nav_order == nil" -%}
|
4
|
+
{%- if site.nav_sort == 'case_insensitive' -%}
|
5
|
+
{%- assign sorted_ordered_pages_list = ordered_pages_list | sort_natural:"nav_order" -%}
|
6
|
+
{%- assign sorted_unordered_pages_list = unordered_pages_list | sort_natural:"title" -%}
|
7
|
+
{%- else -%}
|
8
|
+
{%- assign sorted_ordered_pages_list = ordered_pages_list | sort:"nav_order" -%}
|
9
|
+
{%- assign sorted_unordered_pages_list = unordered_pages_list | sort:"title" -%}
|
10
|
+
{%- endif -%}
|
11
|
+
{%- assign pages_list = sorted_ordered_pages_list | concat: sorted_unordered_pages_list -%}
|
12
|
+
{%- for node in pages_list -%}
|
13
|
+
{%- unless node.nav_exclude -%}
|
14
|
+
{%- if node.parent == nil and node.title -%}
|
15
|
+
<li class="nav-list-item{% if page.url == node.url or page.parent == node.title or page.grand_parent == node.title %} active{% endif %}">
|
16
|
+
{%- if page.parent == node.title or page.grand_parent == node.title -%}
|
17
|
+
{%- assign first_level_url = node.url | absolute_url -%}
|
18
|
+
{%- endif -%}
|
19
|
+
{%- if node.has_children -%}
|
20
|
+
<a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a>
|
21
|
+
{%- endif -%}
|
22
|
+
<a href="{{ node.url | absolute_url }}" class="nav-list-link{% if page.url == node.url %} active{% endif %}">{{ node.title }}</a>
|
23
|
+
{%- if node.has_children -%}
|
24
|
+
{%- assign children_list = pages_list | where: "parent", node.title -%}
|
25
|
+
<ul class="nav-list ">
|
26
|
+
{%- for child in children_list -%}
|
27
|
+
{%- unless child.nav_exclude -%}
|
28
|
+
<li class="nav-list-item {% if page.url == child.url or page.parent == child.title %} active{% endif %}">
|
29
|
+
{%- if page.url == child.url or page.parent == child.title -%}
|
30
|
+
{%- assign second_level_url = child.url | absolute_url -%}
|
31
|
+
{%- endif -%}
|
32
|
+
{%- if child.has_children -%}
|
33
|
+
<a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a>
|
34
|
+
{%- endif -%}
|
35
|
+
<a href="{{ child.url | absolute_url }}" class="nav-list-link{% if page.url == child.url %} active{% endif %}">{{ child.title }}</a>
|
36
|
+
{%- if child.has_children -%}
|
37
|
+
{%- assign grand_children_list = pages_list | where: "parent", child.title | where: "grand_parent", node.title -%}
|
38
|
+
<ul class="nav-list">
|
39
|
+
{%- for grand_child in grand_children_list -%}
|
40
|
+
<li class="nav-list-item {% if page.url == grand_child.url %} active{% endif %}">
|
41
|
+
<a href="{{ grand_child.url | absolute_url }}" class="nav-list-link{% if page.url == grand_child.url %} active{% endif %}">{{ grand_child.title }}</a>
|
42
|
+
</li>
|
43
|
+
{%- endfor -%}
|
44
|
+
</ul>
|
45
|
+
{%- endif -%}
|
46
|
+
</li>
|
47
|
+
{%- endunless -%}
|
48
|
+
{%- endfor -%}
|
49
|
+
</ul>
|
50
|
+
{%- endif -%}
|
51
|
+
</li>
|
52
|
+
{%- endif -%}
|
53
|
+
{%- endunless -%}
|
54
|
+
{%- endfor -%}
|
55
|
+
</ul>
|
data/_includes/title.html
CHANGED
@@ -64,7 +64,7 @@
|
|
64
64
|
{% capture anchor %}{% endcapture %}
|
65
65
|
|
66
66
|
{% if html_id and headerLevel >= minHeader and headerLevel <= maxHeader %}
|
67
|
-
{% capture anchor %}href="#{{ html_id}}"{% endcapture %}
|
67
|
+
{% capture anchor %}href="#{{ html_id}}" aria-labelledby="{{ html_id}}"{% endcapture %}
|
68
68
|
|
69
69
|
{% if include.anchorClass %}
|
70
70
|
{% capture anchor %}{{ anchor }} class="{{ include.anchorClass }}"{% endcapture %}
|
@@ -97,4 +97,4 @@
|
|
97
97
|
{% endcapture %}
|
98
98
|
{% capture edited_headings %}{{ edited_headings }}{{ new_heading }}{% endcapture %}
|
99
99
|
{% endfor %}
|
100
|
-
{% endcapture %}{% assign headingsWorkspace = '' %}{{ edited_headings | strip }}
|
100
|
+
{% endcapture %}{% assign headingsWorkspace = '' %}{{ edited_headings | strip }}
|
data/_layouts/default.html
CHANGED
@@ -4,93 +4,166 @@ layout: table_wrappers
|
|
4
4
|
|
5
5
|
<!DOCTYPE html>
|
6
6
|
|
7
|
-
<html lang="{{ site.lang | default:
|
7
|
+
<html lang="{{ site.lang | default: 'en-US' }}">
|
8
8
|
{% include head.html %}
|
9
9
|
<body>
|
10
|
+
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
11
|
+
<symbol id="svg-link" viewBox="0 0 24 24">
|
12
|
+
<title>Link</title>
|
13
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link">
|
14
|
+
<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>
|
15
|
+
</svg>
|
16
|
+
</symbol>
|
17
|
+
<symbol id="svg-search" viewBox="0 0 24 24">
|
18
|
+
<title>Search</title>
|
19
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search">
|
20
|
+
<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line>
|
21
|
+
</svg>
|
22
|
+
</symbol>
|
23
|
+
<symbol id="svg-menu" viewBox="0 0 24 24">
|
24
|
+
<title>Menu</title>
|
25
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-menu">
|
26
|
+
<line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line>
|
27
|
+
</svg>
|
28
|
+
</symbol>
|
29
|
+
<symbol id="svg-arrow-right" viewBox="0 0 24 24">
|
30
|
+
<title>Expand</title>
|
31
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right">
|
32
|
+
<polyline points="9 18 15 12 9 6"></polyline>
|
33
|
+
</svg>
|
34
|
+
</symbol>
|
35
|
+
<symbol id="svg-doc" viewBox="0 0 24 24">
|
36
|
+
<title>Document</title>
|
37
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-file">
|
38
|
+
<path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline>
|
39
|
+
</svg>
|
40
|
+
</symbol>
|
41
|
+
</svg>
|
10
42
|
|
11
|
-
<div class="
|
12
|
-
<div class="
|
13
|
-
<
|
14
|
-
|
15
|
-
<
|
16
|
-
</
|
17
|
-
|
18
|
-
<div class="navigation main-nav js-main-nav">
|
19
|
-
{% include nav.html %}
|
20
|
-
</div>
|
21
|
-
<footer class="site-footer">
|
22
|
-
<p class="text-small text-grey-dk-000 mb-4">This site uses <a href="https://github.com/pmarsceill/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll.</p>
|
23
|
-
</footer>
|
43
|
+
<div class="side-bar">
|
44
|
+
<div class="site-header">
|
45
|
+
<a href="{{ '/' | absolute_url }}" class="site-title lh-tight">{% include title.html %}</a>
|
46
|
+
<a href="#" id="menu-button" class="site-button">
|
47
|
+
<svg viewBox="0 0 24 24" class="icon"><use xlink:href="#svg-menu"></use></svg>
|
48
|
+
</a>
|
24
49
|
</div>
|
25
|
-
<
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
50
|
+
<nav role="navigation" aria-label="Main" id="site-nav" class="site-nav">
|
51
|
+
{% include nav.html %}
|
52
|
+
</nav>
|
53
|
+
<footer class="site-footer">
|
54
|
+
This site uses <a href="https://github.com/pmarsceill/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll.
|
55
|
+
</footer>
|
56
|
+
</div>
|
57
|
+
<div class="main" id="top">
|
58
|
+
<div id="main-header" class="main-header">
|
59
|
+
{% if site.search_enabled != false %}
|
60
|
+
<div class="search">
|
61
|
+
<div class="search-input-wrap">
|
62
|
+
<input type="text" id="search-input" class="search-input" tabindex="0" placeholder="Search {{ site.title }}" aria-label="Search {{ site.title }}" autocomplete="off">
|
63
|
+
<label for="search-input" class="search-label"><svg viewBox="0 0 24 24" class="search-icon"><use xlink:href="#svg-search"></use></svg></label>
|
35
64
|
</div>
|
36
|
-
|
37
|
-
{% if site.aux_links != nil %}
|
38
|
-
<ul class="list-style-none text-small aux-nav">
|
39
|
-
{% for link in site.aux_links %}
|
40
|
-
<li class="d-inline-block my-0{% unless forloop.last %} mr-2{% endunless %}"><a href="{{ link.last }}">{{ link.first }}</a></li>
|
41
|
-
{% endfor %}
|
42
|
-
</ul>
|
43
|
-
{% endif %}
|
65
|
+
<div id="search-results" class="search-results"></div>
|
44
66
|
</div>
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
<li class="breadcrumb-nav-list-item"><a href="{{ first_level_url }}">{{ page.parent }}</a></li>
|
67
|
+
{% endif %}
|
68
|
+
{% if site.aux_links %}
|
69
|
+
<nav aria-label="Auxiliary" class="aux-nav">
|
70
|
+
<ul class="aux-nav-list">
|
71
|
+
{% for link in site.aux_links %}
|
72
|
+
<li class="aux-nav-list-item">
|
73
|
+
<a href="{{ link.last }}" class="site-button"
|
74
|
+
{% if site.aux_links_new_tab %}
|
75
|
+
target="_blank" rel="noopener noreferrer"
|
55
76
|
{% endif %}
|
56
|
-
|
57
|
-
|
58
|
-
|
77
|
+
>
|
78
|
+
{{ link.first }}
|
79
|
+
</a>
|
80
|
+
</li>
|
81
|
+
{% endfor %}
|
82
|
+
</ul>
|
83
|
+
</nav>
|
84
|
+
{% endif %}
|
85
|
+
</div>
|
86
|
+
<div id="main-content-wrap" class="main-content-wrap">
|
87
|
+
{% unless page.url == "/" %}
|
88
|
+
{% if page.parent %}
|
89
|
+
<nav aria-label="Breadcrumb" class="breadcrumb-nav">
|
90
|
+
<ol class="breadcrumb-nav-list">
|
91
|
+
{% if page.grand_parent %}
|
92
|
+
<li class="breadcrumb-nav-list-item"><a href="{{ first_level_url }}">{{ page.grand_parent }}</a></li>
|
93
|
+
<li class="breadcrumb-nav-list-item"><a href="{{ second_level_url }}">{{ page.parent }}</a></li>
|
94
|
+
{% else %}
|
95
|
+
<li class="breadcrumb-nav-list-item"><a href="{{ first_level_url }}">{{ page.parent }}</a></li>
|
96
|
+
{% endif %}
|
97
|
+
<li class="breadcrumb-nav-list-item"><span>{{ page.title }}</span></li>
|
98
|
+
</ol>
|
99
|
+
</nav>
|
100
|
+
{% endif %}
|
101
|
+
{% endunless %}
|
102
|
+
<div id="main-content" class="main-content" role="main">
|
103
|
+
{% if site.heading_anchors != false %}
|
104
|
+
{% include vendor/anchor_headings.html html=content beforeHeading="true" anchorBody="<svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><use xlink:href=\"#svg-link\"></use></svg>" anchorClass="anchor-heading" %}
|
105
|
+
{% else %}
|
106
|
+
{{ content }}
|
107
|
+
{% endif %}
|
108
|
+
|
109
|
+
{% if page.has_children == true and page.has_toc != false %}
|
110
|
+
<hr>
|
111
|
+
<h2 class="text-delta">Table of contents</h2>
|
112
|
+
<ul>
|
113
|
+
{%- assign children_list = pages_list | where: "parent", page.title | where: "grand_parent", page.parent -%}
|
114
|
+
{% for child in children_list %}
|
115
|
+
<li>
|
116
|
+
<a href="{{ child.url | absolute_url }}">{{ child.title }}</a>{% if child.summary %} - {{ child.summary }}{% endif %}
|
117
|
+
</li>
|
118
|
+
{% endfor %}
|
119
|
+
</ul>
|
120
|
+
{% endif %}
|
121
|
+
|
122
|
+
{% if site.footer_content != nil or site.last_edit_timestamp or site.gh_edit_link %}
|
123
|
+
<hr>
|
124
|
+
<footer>
|
125
|
+
{% if site.back_to_top %}
|
126
|
+
<p><a href="#top" id="back-to-top">{{ site.back_to_top_text }}</a></p>
|
59
127
|
{% endif %}
|
60
|
-
|
61
|
-
|
62
|
-
{% if site.heading_anchors != false %}
|
63
|
-
{% include vendor/anchor_headings.html html=content beforeHeading = "true" anchorBody="<svg class=\"d-inline-block v-align-middle\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"18\" height=\"18\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg>" anchorClass="anchor-heading" %}
|
64
|
-
{% else %}
|
65
|
-
{{ content }}
|
128
|
+
{% if site.footer_content != nil %}
|
129
|
+
<p class="text-small text-grey-dk-000 mb-0">{{ site.footer_content }}</p>
|
66
130
|
{% endif %}
|
67
131
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
{% if child.parent == page.title and child.title != page.title %}
|
75
|
-
<li>
|
76
|
-
<a href="{{ child.url | absolute_url }}">{{ child.title }}</a>
|
77
|
-
</li>
|
132
|
+
{% if site.last_edit_timestamp or site.gh_edit_link %}
|
133
|
+
<div class="d-flex mt-2">
|
134
|
+
{% if site.last_edit_timestamp and site.last_edit_time_format and page.last_modified_date %}
|
135
|
+
<p class="text-small text-grey-dk-000 mb-0 mr-2">
|
136
|
+
Page last modified: <span class="d-inline-block">{{ page.last_modified_date | date: site.last_edit_time_format }}</span>.
|
137
|
+
</p>
|
78
138
|
{% endif %}
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
139
|
+
{% if
|
140
|
+
site.gh_edit_link and
|
141
|
+
site.gh_edit_link_text and
|
142
|
+
site.gh_edit_repository and
|
143
|
+
site.gh_edit_branch and
|
144
|
+
site.gh_edit_view_mode
|
145
|
+
%}
|
146
|
+
<p class="text-small text-grey-dk-000 mb-0">
|
147
|
+
<a href="{{ site.gh_edit_repository }}/{{ site.gh_edit_view_mode }}/{{ site.gh_edit_branch }}/{{ page.path }}" id="edit-this-page">{{ site.gh_edit_link_text }}</a>
|
148
|
+
</p>
|
149
|
+
{% endif %}
|
150
|
+
</div>
|
151
|
+
{% endif %}
|
152
|
+
</footer>
|
153
|
+
{% endif %}
|
89
154
|
|
90
|
-
</div>
|
91
155
|
</div>
|
92
156
|
</div>
|
93
|
-
</div>
|
94
157
|
|
158
|
+
{% if site.search_enabled != false %}
|
159
|
+
{% if site.search.button %}
|
160
|
+
<a href="#" id="search-button" class="search-button">
|
161
|
+
<svg viewBox="0 0 24 24" class="icon"><use xlink:href="#svg-search"></use></svg>
|
162
|
+
</a>
|
163
|
+
{% endif %}
|
164
|
+
|
165
|
+
<div class="search-overlay"></div>
|
166
|
+
{% endif %}
|
167
|
+
</div>
|
95
168
|
</body>
|
96
169
|
</html>
|
data/_sass/base.scss
CHANGED
@@ -14,6 +14,7 @@
|
|
14
14
|
|
15
15
|
html {
|
16
16
|
@include fs-4;
|
17
|
+
scroll-behavior: smooth;
|
17
18
|
}
|
18
19
|
|
19
20
|
body {
|
@@ -24,25 +25,18 @@ body {
|
|
24
25
|
background-color: $body-background-color;
|
25
26
|
}
|
26
27
|
|
27
|
-
p,
|
28
|
-
h1,
|
29
|
-
h2,
|
30
|
-
h3,
|
31
|
-
h4,
|
32
|
-
h5,
|
33
|
-
h6,
|
34
28
|
ol,
|
35
29
|
ul,
|
30
|
+
dl,
|
36
31
|
pre,
|
37
32
|
address,
|
38
33
|
blockquote,
|
39
|
-
|
34
|
+
table,
|
40
35
|
div,
|
41
|
-
fieldset,
|
42
|
-
form,
|
43
36
|
hr,
|
44
|
-
|
45
|
-
|
37
|
+
form,
|
38
|
+
fieldset,
|
39
|
+
noscript .table-wrapper {
|
46
40
|
margin-top: 0;
|
47
41
|
}
|
48
42
|
|
@@ -52,14 +46,15 @@ h3,
|
|
52
46
|
h4,
|
53
47
|
h5,
|
54
48
|
h6 {
|
55
|
-
margin-top:
|
56
|
-
margin-bottom:
|
49
|
+
margin-top: 0;
|
50
|
+
margin-bottom: 1em;
|
57
51
|
font-weight: 500;
|
58
52
|
line-height: $body-heading-line-height;
|
59
53
|
color: $body-heading-color;
|
60
54
|
}
|
61
55
|
|
62
56
|
p {
|
57
|
+
margin-top: 1em;
|
63
58
|
margin-bottom: 1em;
|
64
59
|
}
|
65
60
|
|
@@ -76,19 +71,22 @@ a:not([class]) {
|
|
76
71
|
background-size: 1px 1px;
|
77
72
|
|
78
73
|
&:hover {
|
79
|
-
background-image: linear-gradient(
|
74
|
+
background-image: linear-gradient(
|
75
|
+
rgba($link-color, 0.45) 0%,
|
76
|
+
rgba($link-color, 0.45) 100%
|
77
|
+
);
|
80
78
|
background-size: 1px 1px;
|
81
|
-
|
82
79
|
}
|
83
80
|
}
|
84
81
|
|
85
82
|
code {
|
86
83
|
font-family: $mono-font-family;
|
87
|
-
font-size:
|
84
|
+
font-size: 0.75em;
|
88
85
|
line-height: $body-line-height;
|
89
86
|
}
|
90
87
|
|
91
|
-
figure
|
88
|
+
figure,
|
89
|
+
pre {
|
92
90
|
margin: 0;
|
93
91
|
}
|
94
92
|
|