just-the-docs 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +1 -1
- data/_includes/head.html +17 -11
- data/_includes/head_custom.html +0 -0
- data/_includes/js/custom.js +0 -0
- data/_includes/nav.html +30 -34
- data/_includes/title.html +1 -0
- data/_includes/vendor/anchor_headings.html +100 -0
- data/_layouts/default.html +57 -39
- data/_layouts/table_wrappers.html +7 -0
- data/_layouts/vendor/compress.html +10 -0
- data/_sass/buttons.scss +1 -1
- data/_sass/code.scss +4 -3
- data/_sass/color_schemes/dark.scss +3 -0
- data/_sass/content.scss +35 -0
- data/_sass/custom/custom.scss +129 -120
- data/_sass/layout.scss +71 -27
- data/_sass/navigation.scss +4 -32
- data/_sass/search.scss +98 -45
- data/_sass/support/_variables.scss +15 -16
- data/_sass/tables.scss +13 -33
- data/assets/js/just-the-docs.js +222 -104
- data/assets/js/search-data.json +1 -2
- data/assets/js/vendor/lunr.min.js +3 -3
- metadata +9 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4ed236fbe2e6a8dbf8408db5674c662ed9b5b65513e6dab45f7aa965fd93b80a
|
4
|
+
data.tar.gz: dd4461bac3d6c2b09c28d7c8e3f91409d35097d222c48ce3d013911993066894
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1dd17f6683dc2757a208eb709f6655684dce68f8128dbda4d15e6b7ba1fa3cbb362c178f4714352281d8660d4b81cc12ab45db2a3a09bdb546b605cac27ff36
|
7
|
+
data.tar.gz: 4485b31d17822613e31f92186f9ab63a2e3f062249b127d9bc5cdd05069c56aec25fa7d7c46b52e306893f782ad9929ce331f282ae0f829c90017dd1df0c8616
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
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://
|
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/CI/badge.svg" alt="Build status"></a>
|
3
3
|
</p>
|
4
4
|
<br><br>
|
5
5
|
<p align="center">
|
data/_includes/head.html
CHANGED
@@ -6,29 +6,35 @@
|
|
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
|
{% endif %}
|
12
12
|
|
13
|
-
<link rel="shortcut icon" href="{{
|
13
|
+
<link rel="shortcut icon" href="{{ 'favicon.ico' | absolute_url }}" type="image/x-icon">
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="{{
|
15
|
+
<link rel="stylesheet" href="{{ '/assets/css/just-the-docs.css' | absolute_url }}">
|
16
16
|
|
17
17
|
{% if site.ga_tracking != nil %}
|
18
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.ga_tracking }}"></script>
|
18
19
|
<script>
|
19
|
-
window.
|
20
|
-
|
21
|
-
|
20
|
+
window.dataLayer = window.dataLayer || [];
|
21
|
+
function gtag(){dataLayer.push(arguments);}
|
22
|
+
gtag('js', new Date());
|
23
|
+
|
24
|
+
gtag('config', "{{ site.ga_tracking }}");
|
22
25
|
</script>
|
23
|
-
|
26
|
+
|
24
27
|
{% endif %}
|
25
28
|
|
26
|
-
{% if site.search_enabled !=
|
27
|
-
<script type="text/javascript" src="{{
|
29
|
+
{% if site.search_enabled != false %}
|
30
|
+
<script type="text/javascript" src="{{ '/assets/js/vendor/lunr.min.js' | absolute_url }}"></script>
|
28
31
|
{% endif %}
|
29
|
-
<script type="text/javascript" src="{{
|
32
|
+
<script type="text/javascript" src="{{ '/assets/js/just-the-docs.js' | absolute_url }}"></script>
|
30
33
|
|
31
34
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
32
35
|
|
33
|
-
{% seo %}
|
36
|
+
{% seo %}
|
37
|
+
|
38
|
+
{% include head_custom.html %}
|
39
|
+
|
34
40
|
</head>
|
File without changes
|
File without changes
|
data/_includes/nav.html
CHANGED
@@ -1,44 +1,40 @@
|
|
1
1
|
<nav role="navigation" aria-label="Main navigation">
|
2
2
|
<ul class="navigation-list">
|
3
|
-
{
|
4
|
-
{
|
5
|
-
{
|
6
|
-
{
|
3
|
+
{%- assign pages_list = site.html_pages | sort:"nav_order" -%}
|
4
|
+
{%- for node in pages_list -%}
|
5
|
+
{%- unless node.nav_exclude -%}
|
6
|
+
{%- if node.parent == nil -%}
|
7
7
|
<li class="navigation-list-item{% if page.url == node.url or page.parent == node.title or page.grand_parent == node.title %} active{% endif %}">
|
8
|
-
{
|
9
|
-
{
|
10
|
-
{
|
8
|
+
{%- if page.parent == node.title or page.grand_parent == node.title -%}
|
9
|
+
{%- assign first_level_url = node.url | absolute_url -%}
|
10
|
+
{%- endif -%}
|
11
11
|
<a href="{{ node.url | absolute_url }}" class="navigation-list-link{% if page.url == node.url %} active{% endif %}">{{ node.title }}</a>
|
12
|
-
{
|
13
|
-
{
|
12
|
+
{%- if node.has_children -%}
|
13
|
+
{%- assign children_list = site.html_pages | where: "parent", node.title | sort:"nav_order" -%}
|
14
14
|
<ul class="navigation-list-child-list ">
|
15
|
-
{
|
16
|
-
{% if child.parent ==
|
17
|
-
|
18
|
-
{
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
{% assign grand_children_list = site.html_pages | sort:"nav_order" %}
|
15
|
+
{%- for child in children_list -%}
|
16
|
+
<li class="navigation-list-item {% if page.url == child.url or page.parent == child.title %} active{% endif %}">
|
17
|
+
{%- if page.url == child.url or page.parent == child.title -%}
|
18
|
+
{%- assign second_level_url = child.url | absolute_url -%}
|
19
|
+
{%- endif -%}
|
20
|
+
<a href="{{ child.url | absolute_url }}" class="navigation-list-link{% if page.url == child.url %} active{% endif %}">{{ child.title }}</a>
|
21
|
+
{%- if child.has_children -%}
|
22
|
+
{%- assign grand_children_list = site.html_pages | where: "parent", child.title | sort:"nav_order" -%}
|
24
23
|
<ul class="navigation-list-child-list">
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
</li>
|
35
|
-
{% endif %}
|
36
|
-
{% endfor %}
|
24
|
+
{%- for grand_child in grand_children_list -%}
|
25
|
+
<li class="navigation-list-item {% if page.url == grand_child.url %} active{% endif %}">
|
26
|
+
<a href="{{ grand_child.url | absolute_url }}" class="navigation-list-link{% if page.url == grand_child.url %} active{% endif %}">{{ grand_child.title }}</a>
|
27
|
+
</li>
|
28
|
+
{%- endfor -%}
|
29
|
+
</ul>
|
30
|
+
{%- endif -%}
|
31
|
+
</li>
|
32
|
+
{%- endfor -%}
|
37
33
|
</ul>
|
38
|
-
{
|
34
|
+
{%- endif -%}
|
39
35
|
</li>
|
40
|
-
{
|
41
|
-
{
|
42
|
-
{
|
36
|
+
{%- endif -%}
|
37
|
+
{%- endunless -%}
|
38
|
+
{%- endfor -%}
|
43
39
|
</ul>
|
44
40
|
</nav>
|
@@ -0,0 +1 @@
|
|
1
|
+
{{ site.title }}
|
@@ -0,0 +1,100 @@
|
|
1
|
+
{% capture headingsWorkspace %}
|
2
|
+
{% comment %}
|
3
|
+
Version 1.0.3
|
4
|
+
https://github.com/allejo/jekyll-anchor-headings
|
5
|
+
|
6
|
+
"Be the pull request you wish to see in the world." ~Ben Balter
|
7
|
+
|
8
|
+
Usage:
|
9
|
+
{% include anchor_headings.html html=content %}
|
10
|
+
|
11
|
+
Parameters:
|
12
|
+
* html (string) - the HTML of compiled markdown generated by kramdown in Jekyll
|
13
|
+
|
14
|
+
Optional Parameters:
|
15
|
+
* beforeHeading (bool) : false - Set to true if the anchor should be placed _before_ the heading's content
|
16
|
+
* anchorBody (string) : '' - The content that will be placed inside the anchor; the `%heading%` placeholder is available
|
17
|
+
* anchorClass (string) : '' - The class(es) that will be used for each anchor. Separate multiple classes with a space
|
18
|
+
* anchorTitle (string) : '' - The `title` attribute that will be used for anchors
|
19
|
+
* h_min (int) : 1 - The minimum header level to build an anchor for; any header lower than this value will be ignored
|
20
|
+
* h_max (int) : 6 - The maximum header level to build an anchor for; any header greater than this value will be ignored
|
21
|
+
* bodyPrefix (string) : '' - Anything that should be inserted inside of the heading tag _before_ its anchor and content
|
22
|
+
* bodySuffix (string) : '' - Anything that should be inserted inside of the heading tag _after_ its anchor and content
|
23
|
+
|
24
|
+
Output:
|
25
|
+
The original HTML with the addition of anchors inside of all of the h1-h6 headings.
|
26
|
+
{% endcomment %}
|
27
|
+
|
28
|
+
{% assign minHeader = include.h_min | default: 1 %}
|
29
|
+
{% assign maxHeader = include.h_max | default: 6 %}
|
30
|
+
{% assign beforeHeading = include.beforeHeading %}
|
31
|
+
{% assign nodes = include.html | split: '<h' %}
|
32
|
+
|
33
|
+
{% capture edited_headings %}{% endcapture %}
|
34
|
+
|
35
|
+
{% for _node in nodes %}
|
36
|
+
{% capture node %}{{ _node | strip }}{% endcapture %}
|
37
|
+
|
38
|
+
{% if node == "" %}
|
39
|
+
{% continue %}
|
40
|
+
{% endif %}
|
41
|
+
|
42
|
+
{% assign nextChar = node | replace: '"', '' | strip | slice: 0, 1 %}
|
43
|
+
{% assign headerLevel = nextChar | times: 1 %}
|
44
|
+
|
45
|
+
<!-- If the level is cast to 0, it means it's not a h1-h6 tag, so let's try to fix it -->
|
46
|
+
{% if headerLevel == 0 %}
|
47
|
+
{% if nextChar != '<' and nextChar != '' %}
|
48
|
+
{% capture node %}<h{{ node }}{% endcapture %}
|
49
|
+
{% endif %}
|
50
|
+
|
51
|
+
{% capture edited_headings %}{{ edited_headings }}{{ node }}{% endcapture %}
|
52
|
+
{% continue %}
|
53
|
+
{% endif %}
|
54
|
+
|
55
|
+
{% assign _workspace = node | split: '</h' %}
|
56
|
+
{% assign _idWorkspace = _workspace[0] | split: 'id="' %}
|
57
|
+
{% assign _idWorkspace = _idWorkspace[1] | split: '"' %}
|
58
|
+
{% assign html_id = _idWorkspace[0] %}
|
59
|
+
|
60
|
+
{% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %}
|
61
|
+
{% assign header = _workspace[0] | replace: _hAttrToStrip, '' %}
|
62
|
+
|
63
|
+
<!-- Build the anchor to inject for our heading -->
|
64
|
+
{% capture anchor %}{% endcapture %}
|
65
|
+
|
66
|
+
{% if html_id and headerLevel >= minHeader and headerLevel <= maxHeader %}
|
67
|
+
{% capture anchor %}href="#{{ html_id}}"{% endcapture %}
|
68
|
+
|
69
|
+
{% if include.anchorClass %}
|
70
|
+
{% capture anchor %}{{ anchor }} class="{{ include.anchorClass }}"{% endcapture %}
|
71
|
+
{% endif %}
|
72
|
+
|
73
|
+
{% if include.anchorTitle %}
|
74
|
+
{% capture anchor %}{{ anchor }} title="{{ include.anchorTitle | replace: '%heading%', header }}"{% endcapture %}
|
75
|
+
{% endif %}
|
76
|
+
|
77
|
+
{% capture anchor %}<a {{ anchor }}>{{ include.anchorBody | replace: '%heading%', header | default: '' }}</a>{% endcapture %}
|
78
|
+
|
79
|
+
<!-- In order to prevent adding extra space after a heading, we'll let the 'anchor' value contain it -->
|
80
|
+
{% if beforeHeading %}
|
81
|
+
{% capture anchor %}{{ anchor }} {% endcapture %}
|
82
|
+
{% else %}
|
83
|
+
{% capture anchor %} {{ anchor }}{% endcapture %}
|
84
|
+
{% endif %}
|
85
|
+
{% endif %}
|
86
|
+
|
87
|
+
{% capture new_heading %}
|
88
|
+
<h{{ _hAttrToStrip }}
|
89
|
+
{{ include.bodyPrefix }}
|
90
|
+
{% if beforeHeading %}
|
91
|
+
{{ anchor }}{{ header }}
|
92
|
+
{% else %}
|
93
|
+
{{ header }}{{ anchor }}
|
94
|
+
{% endif %}
|
95
|
+
{{ include.bodySuffix }}
|
96
|
+
</h{{ _workspace | last }}
|
97
|
+
{% endcapture %}
|
98
|
+
{% capture edited_headings %}{{ edited_headings }}{{ new_heading }}{% endcapture %}
|
99
|
+
{% endfor %}
|
100
|
+
{% endcapture %}{% assign headingsWorkspace = '' %}{{ edited_headings | strip }}
|
data/_layouts/default.html
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
---
|
2
|
+
layout: table_wrappers
|
3
|
+
---
|
4
|
+
|
1
5
|
<!DOCTYPE html>
|
2
6
|
|
3
7
|
<html lang="{{ site.lang | default: "en-US" }}">
|
@@ -6,20 +10,23 @@
|
|
6
10
|
|
7
11
|
<div class="page-wrap">
|
8
12
|
<div class="side-bar">
|
9
|
-
<
|
10
|
-
|
13
|
+
<div class="site-header">
|
14
|
+
<a href="{{ site.url }}{{ site.baseurl }}" class="site-title lh-tight">{% include title.html %}</a>
|
15
|
+
<button class="menu-button fs-3 js-main-nav-trigger" data-text-toggle="Hide" type="button">Menu</button>
|
16
|
+
</div>
|
17
|
+
|
11
18
|
<div class="navigation main-nav js-main-nav">
|
12
19
|
{% include nav.html %}
|
13
20
|
</div>
|
14
|
-
<footer
|
15
|
-
<p class="text-small text-grey-dk-000 mb-
|
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>
|
16
23
|
</footer>
|
17
24
|
</div>
|
18
25
|
<div class="main-content-wrap js-main-content" tabindex="0">
|
19
|
-
<div class="
|
20
|
-
<div class="
|
21
|
-
{% if site.search_enabled !=
|
22
|
-
<div class="search
|
26
|
+
<div class="main-content">
|
27
|
+
<div class="page-header js-page-header">
|
28
|
+
{% if site.search_enabled != false %}
|
29
|
+
<div class="search">
|
23
30
|
<div class="search-input-wrap">
|
24
31
|
<input type="text" class="js-search-input search-input" tabindex="0" placeholder="Search {{ site.title }}" aria-label="Search {{ site.title }}" autocomplete="off">
|
25
32
|
<svg width="14" height="14" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg" class="search-icon"><title>Search</title><g fill-rule="nonzero"><path d="M17.332 20.735c-5.537 0-10-4.6-10-10.247 0-5.646 4.463-10.247 10-10.247 5.536 0 10 4.601 10 10.247s-4.464 10.247-10 10.247zm0-4c3.3 0 6-2.783 6-6.247 0-3.463-2.7-6.247-6-6.247s-6 2.784-6 6.247c0 3.464 2.7 6.247 6 6.247z"/><path d="M11.672 13.791L.192 25.271 3.02 28.1 14.5 16.62z"/></g></svg>
|
@@ -28,47 +35,58 @@
|
|
28
35
|
</div>
|
29
36
|
{% endif %}
|
30
37
|
{% if site.aux_links != nil %}
|
31
|
-
<ul class="list-style-none text-small
|
38
|
+
<ul class="list-style-none text-small aux-nav">
|
32
39
|
{% for link in site.aux_links %}
|
33
40
|
<li class="d-inline-block my-0{% unless forloop.last %} mr-2{% endunless %}"><a href="{{ link.last }}">{{ link.first }}</a></li>
|
34
41
|
{% endfor %}
|
35
42
|
</ul>
|
36
43
|
{% endif %}
|
37
44
|
</div>
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
45
|
+
<div class="page">
|
46
|
+
{% unless page.url == "/" %}
|
47
|
+
{% if page.parent %}
|
48
|
+
<nav class="breadcrumb-nav">
|
49
|
+
<ol class="breadcrumb-nav-list">
|
50
|
+
{% if page.grand_parent %}
|
51
|
+
<li class="breadcrumb-nav-list-item"><a href="{{ first_level_url }}">{{ page.grand_parent }}</a></li>
|
52
|
+
<li class="breadcrumb-nav-list-item"><a href="{{ second_level_url }}">{{ page.parent }}</a></li>
|
53
|
+
{% else %}
|
54
|
+
<li class="breadcrumb-nav-list-item"><a href="{{ first_level_url }}">{{ page.parent }}</a></li>
|
55
|
+
{% endif %}
|
56
|
+
<li class="breadcrumb-nav-list-item"><span>{{ page.title }}</span></li>
|
57
|
+
</ol>
|
58
|
+
</nav>
|
59
|
+
{% endif %}
|
60
|
+
{% endunless %}
|
61
|
+
<div id="main-content" class="page-content" role="main">
|
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 }}
|
66
|
+
{% endif %}
|
67
|
+
|
68
|
+
{% if page.has_children == true and page.has_toc != false %}
|
69
|
+
<hr>
|
70
|
+
<h2 class="text-delta">Table of contents</h2>
|
71
|
+
{% assign children_list = site.pages | sort:"nav_order" %}
|
72
|
+
<ul>
|
73
|
+
{% for child in children_list %}
|
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>
|
49
78
|
{% endif %}
|
50
|
-
|
51
|
-
|
52
|
-
</nav>
|
79
|
+
{% endfor %}
|
80
|
+
</ul>
|
53
81
|
{% endif %}
|
54
|
-
{% endunless %}
|
55
|
-
<div id="main-content" class="page-content" role="main">
|
56
|
-
{{ content }}
|
57
82
|
|
58
|
-
{% if
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
{% for child in children_list %}
|
64
|
-
{% if child.parent == page.title and child.title != page.title %}
|
65
|
-
<li>
|
66
|
-
<a href="{{ child.url | absolute_url }}">{{ child.title }}</a>
|
67
|
-
</li>
|
68
|
-
{% endif %}
|
69
|
-
{% endfor %}
|
70
|
-
</ul>
|
83
|
+
{% if site.footer_content != nil %}
|
84
|
+
<hr>
|
85
|
+
<footer role="contentinfo">
|
86
|
+
<p class="text-small text-grey-dk-000 mb-0">{{ site.footer_content }}</p>
|
87
|
+
</footer>
|
71
88
|
{% endif %}
|
89
|
+
|
72
90
|
</div>
|
73
91
|
</div>
|
74
92
|
</div>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
---
|
2
|
+
# Jekyll layout that compresses HTML
|
3
|
+
# v3.1.0
|
4
|
+
# http://jch.penibelst.de/
|
5
|
+
# © 2014–2015 Anatol Broder
|
6
|
+
# MIT License
|
7
|
+
---
|
8
|
+
|
9
|
+
{% capture _LINE_FEED %}
|
10
|
+
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment or site.compress_html.ignore.envs == "all" %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
|
data/_sass/buttons.scss
CHANGED
data/_sass/code.scss
CHANGED
@@ -11,7 +11,8 @@ code {
|
|
11
11
|
border-radius: $border-radius;
|
12
12
|
}
|
13
13
|
|
14
|
-
pre.highlight
|
14
|
+
pre.highlight,
|
15
|
+
figure.highlight {
|
15
16
|
padding: $sp-3;
|
16
17
|
margin-bottom: 0;
|
17
18
|
-webkit-overflow-scrolling: touch;
|
@@ -61,7 +62,7 @@ pre.highlight {
|
|
61
62
|
.highlight .ld { color: #93a1a1; } // literal.date //
|
62
63
|
.highlight .m { color: #2aa198; } // literal.number //
|
63
64
|
.highlight .s { color: #2aa198; } // literal.string //
|
64
|
-
.highlight .na { color: #
|
65
|
+
.highlight .na { color: #555; } // name.attribute //
|
65
66
|
.highlight .nb { color: #b58900; } // name.builtin //
|
66
67
|
.highlight .nc { color: #268bd2; } // name.class //
|
67
68
|
.highlight .no { color: #cb4b16; } // name.constant //
|
@@ -69,7 +70,7 @@ pre.highlight {
|
|
69
70
|
.highlight .ni { color: #cb4b16; } // name.entity //
|
70
71
|
.highlight .ne { color: #cb4b16; } // name.exception //
|
71
72
|
.highlight .nf { color: #268bd2; } // name.function //
|
72
|
-
.highlight .nl { color: #
|
73
|
+
.highlight .nl { color: #555; } // name.label //
|
73
74
|
.highlight .nn { color: #93a1a1; } // name.namespace //
|
74
75
|
.highlight .nx { color: #555; } // name.other //
|
75
76
|
.highlight .py { color: #93a1a1; } // name.property //
|
@@ -6,9 +6,12 @@ $border-color: $grey-dk-200;
|
|
6
6
|
$body-text-color: $grey-lt-300;
|
7
7
|
$body-heading-color: $grey-lt-000;
|
8
8
|
$nav-child-link-color: $grey-dk-000;
|
9
|
+
$search-result-preview-color: $grey-dk-000;
|
9
10
|
|
10
11
|
$link-color: $blue-000;
|
11
12
|
$btn-primary-color: $blue-200;
|
12
13
|
$base-button-color: $grey-dk-250;
|
13
14
|
|
14
15
|
$code-background-color: $grey-dk-250;
|
16
|
+
$search-background-color: $grey-dk-250;
|
17
|
+
$table-background-color: $grey-dk-250;
|