just-the-docs 0.3.3 → 0.4.0.rc1

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.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +484 -0
  3. data/README.md +18 -5
  4. data/_includes/css/callouts.scss.liquid +93 -0
  5. data/_includes/css/just-the-docs.scss.liquid +2 -1
  6. data/_includes/favicon.html +1 -0
  7. data/_includes/head.html +6 -1
  8. data/_includes/icons/external_link.html +5 -0
  9. data/_includes/mermaid_config.js +1 -0
  10. data/_includes/nav.html +48 -5
  11. data/_includes/nav_footer_custom.html +0 -0
  12. data/_includes/search_placeholder_custom.html +1 -0
  13. data/_layouts/default.html +52 -29
  14. data/_sass/base.scss +5 -4
  15. data/_sass/buttons.scss +0 -2
  16. data/_sass/code.scss +20 -211
  17. data/_sass/color_schemes/dark.scss +15 -4
  18. data/_sass/color_schemes/light.scss +208 -0
  19. data/_sass/content.scss +27 -19
  20. data/_sass/custom/custom.scss +4 -0
  21. data/_sass/labels.scss +1 -2
  22. data/_sass/layout.scss +3 -2
  23. data/_sass/modules.scss +1 -5
  24. data/_sass/navigation.scss +29 -3
  25. data/_sass/print.scss +1 -1
  26. data/_sass/search.scss +1 -2
  27. data/_sass/support/_functions.scss +4 -4
  28. data/_sass/support/_variables.scss +8 -32
  29. data/_sass/support/mixins/_layout.scss +1 -1
  30. data/_sass/tables.scss +1 -2
  31. data/_sass/typography.scss +6 -6
  32. data/_sass/utilities/_colors.scss +0 -2
  33. data/_sass/utilities/_layout.scss +9 -3
  34. data/_sass/utilities/_lists.scss +1 -3
  35. data/_sass/utilities/_spacing.scss +1 -4
  36. data/_sass/utilities/_typography.scss +0 -6
  37. data/_sass/vendor/OneDarkJekyll/LICENSE +21 -0
  38. data/_sass/vendor/OneDarkJekyll/README.md +25 -0
  39. data/_sass/vendor/OneDarkJekyll/colors.less +30 -0
  40. data/_sass/vendor/OneDarkJekyll/syntax-firewatch-green.scss +200 -0
  41. data/_sass/vendor/OneDarkJekyll/syntax-firewatch.scss +200 -0
  42. data/_sass/vendor/OneDarkJekyll/syntax-one-dark-vivid.scss +200 -0
  43. data/_sass/vendor/OneDarkJekyll/syntax-one-dark.scss +200 -0
  44. data/_sass/vendor/OneDarkJekyll/syntax-variables.less +56 -0
  45. data/_sass/vendor/OneDarkJekyll/syntax.less +93 -0
  46. data/_sass/vendor/normalize.scss/normalize.scss +4 -2
  47. data/assets/images/large-image.jpg +0 -0
  48. data/assets/images/small-image.jpg +0 -0
  49. data/assets/js/just-the-docs.js +15 -2
  50. data/assets/js/zzzz-search-data.json +3 -3
  51. data/favicon.ico +0 -0
  52. data/lib/tasks/search.rake +1 -1
  53. metadata +36 -17
data/_includes/head.html CHANGED
@@ -10,7 +10,7 @@
10
10
  {% endif %}
11
11
  {% endunless %}
12
12
 
13
- <link rel="shortcut icon" href="{{ 'favicon.ico' | relative_url }}" type="image/x-icon">
13
+ {% include favicon.html %}
14
14
 
15
15
  <link rel="stylesheet" href="{{ '/assets/css/just-the-docs-default.css' | relative_url }}">
16
16
 
@@ -29,6 +29,11 @@
29
29
  {% if site.search_enabled != false %}
30
30
  <script type="text/javascript" src="{{ '/assets/js/vendor/lunr.min.js' | relative_url }}"></script>
31
31
  {% endif %}
32
+
33
+ {% if site.mermaid %}
34
+ <script src="https://cdn.jsdelivr.net/npm/mermaid@{{ site.mermaid.version }}/dist/mermaid.min.js"></script>
35
+ {% endif %}
36
+
32
37
  <script type="text/javascript" src="{{ '/assets/js/just-the-docs.js' | relative_url }}"></script>
33
38
 
34
39
  <meta name="viewport" content="width=device-width, initial-scale=1">
@@ -0,0 +1,5 @@
1
+ <!-- Feather. MIT License: https://github.com/feathericons/feather/blob/master/LICENSE -->
2
+ <symbol id="svg-external-link" 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-external-link">
3
+ <title id="svg-external-link-title">(external link)</title>
4
+ <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line>
5
+ </symbol>
@@ -0,0 +1 @@
1
+ {}
data/_includes/nav.html CHANGED
@@ -60,13 +60,17 @@
60
60
  {%- for node in pages_list -%}
61
61
  {%- if node.parent == nil -%}
62
62
  {%- unless node.nav_exclude -%}
63
- <li class="nav-list-item{% if page.url == node.url or page.parent == node.title or page.grand_parent == node.title %} active{% endif %}">
63
+ <li class="nav-list-item{% if page.collection == include.key and page.url == node.url or page.parent == node.title or page.grand_parent == node.title %} active{% endif %}">
64
64
  {%- if node.has_children -%}
65
65
  <a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a>
66
66
  {%- endif -%}
67
- <a href="{{ node.url | absolute_url }}" class="nav-list-link{% if page.url == node.url %} active{% endif %}">{{ node.title }}</a>
67
+ <a href="{{ node.url | relative_url }}" class="nav-list-link{% if page.url == node.url %} active{% endif %}">{{ node.title }}</a>
68
68
  {%- if node.has_children -%}
69
- {%- assign children_list = pages_list | where: "parent", node.title -%}
69
+ {%- if node.child_nav_order == 'desc' -%}
70
+ {%- assign children_list = pages_list | where: "parent", node.title | where_exp:"item", "item.grand_parent == nil" | reverse -%}
71
+ {%- else -%}
72
+ {%- assign children_list = pages_list | where: "parent", node.title | where_exp:"item", "item.grand_parent == nil" -%}
73
+ {%- endif -%}
70
74
  <ul class="nav-list ">
71
75
  {%- for child in children_list -%}
72
76
  {%- unless child.nav_exclude -%}
@@ -74,14 +78,18 @@
74
78
  {%- if child.has_children -%}
75
79
  <a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a>
76
80
  {%- endif -%}
77
- <a href="{{ child.url | absolute_url }}" class="nav-list-link{% if page.url == child.url %} active{% endif %}">{{ child.title }}</a>
81
+ <a href="{{ child.url | relative_url }}" class="nav-list-link{% if page.url == child.url %} active{% endif %}">{{ child.title }}</a>
78
82
  {%- if child.has_children -%}
83
+ {%- if node.child_nav_order == 'desc' -%}
84
+ {%- assign grand_children_list = pages_list | where: "parent", child.title | where: "grand_parent", node.title | reverse -%}
85
+ {%- else -%}
79
86
  {%- assign grand_children_list = pages_list | where: "parent", child.title | where: "grand_parent", node.title -%}
87
+ {%- endif -%}
80
88
  <ul class="nav-list">
81
89
  {%- for grand_child in grand_children_list -%}
82
90
  {%- unless grand_child.nav_exclude -%}
83
91
  <li class="nav-list-item {% if page.url == grand_child.url %} active{% endif %}">
84
- <a href="{{ grand_child.url | absolute_url }}" class="nav-list-link{% if page.url == grand_child.url %} active{% endif %}">{{ grand_child.title }}</a>
92
+ <a href="{{ grand_child.url | relative_url }}" class="nav-list-link{% if page.url == grand_child.url %} active{% endif %}">{{ grand_child.title }}</a>
85
93
  </li>
86
94
  {%- endunless -%}
87
95
  {%- endfor -%}
@@ -96,4 +104,39 @@
96
104
  {%- endunless -%}
97
105
  {%- endif -%}
98
106
  {%- endfor -%}
107
+ {%- assign nav_external_links = site.nav_external_links -%}
108
+ {%- for node in nav_external_links -%}
109
+ <li class="nav-list-item external">
110
+ <a href="{{ node.url | absolute_url }}" class="nav-list-link external">
111
+ {{ node.title }}
112
+ {% unless node.hide_icon %}<svg viewBox="0 0 24 24" aria-labelledby="svg-external-link-title"><use xlink:href="#svg-external-link"></use></svg>{% endunless %}
113
+ </a>
114
+ </li>
115
+ {%- endfor -%}
99
116
  </ul>
117
+
118
+ {%- if page.collection == include.key -%}
119
+
120
+ {%- for node in pages_list -%}
121
+ {%- if node.parent == nil -%}
122
+ {%- if page.grand_parent == node.title or page.parent == node.title and page.grand_parent == nil -%}
123
+ {%- assign first_level_url = node.url | relative_url -%}
124
+ {%- endif -%}
125
+ {%- if node.has_children -%}
126
+ {%- assign children_list = pages_list | where: "parent", node.title -%}
127
+ {%- for child in children_list -%}
128
+ {%- if child.has_children -%}
129
+ {%- if page.url == child.url or page.parent == child.title and page.grand_parent == child.parent -%}
130
+ {%- assign second_level_url = child.url | relative_url -%}
131
+ {%- endif -%}
132
+ {%- endif -%}
133
+ {%- endfor -%}
134
+ {%- endif -%}
135
+ {%- endif -%}
136
+ {%- endfor -%}
137
+
138
+ {% if page.has_children == true and page.has_toc != false %}
139
+ {%- assign toc_list = pages_list | where: "parent", page.title | where: "grand_parent", page.parent -%}
140
+ {%- endif -%}
141
+
142
+ {%- endif -%}
File without changes
@@ -0,0 +1 @@
1
+ Search {{site.title}}
@@ -38,16 +38,25 @@ layout: table_wrappers
38
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
39
  </svg>
40
40
  </symbol>
41
+ {% include icons/external_link.html %}
41
42
  </svg>
42
43
 
43
44
  <div class="side-bar">
44
45
  <div class="site-header">
45
- <a href="{{ '/' | absolute_url }}" class="site-title lh-tight">{% include title.html %}</a>
46
+ <a href="{{ '/' | relative_url }}" class="site-title lh-tight">{% include title.html %}</a>
46
47
  <a href="#" id="menu-button" class="site-button">
47
48
  <svg viewBox="0 0 24 24" class="icon"><use xlink:href="#svg-menu"></use></svg>
48
49
  </a>
49
50
  </div>
50
51
  <nav role="navigation" aria-label="Main" id="site-nav" class="site-nav">
52
+ {% assign pages_top_size = site.html_pages
53
+ | where_exp:"item", "item.title != nil"
54
+ | where_exp:"item", "item.parent == nil"
55
+ | where_exp:"item", "item.nav_exclude != true"
56
+ | size %}
57
+ {% if pages_top_size > 0 %}
58
+ {% include nav.html pages=site.html_pages key=nil %}
59
+ {% endif %}
51
60
  {% if site.just_the_docs.collections %}
52
61
  {% assign collections_size = site.just_the_docs.collections | size %}
53
62
  {% for collection_entry in site.just_the_docs.collections %}
@@ -55,26 +64,49 @@ layout: table_wrappers
55
64
  {% assign collection_value = collection_entry[1] %}
56
65
  {% assign collection = site[collection_key] %}
57
66
  {% if collection_value.nav_exclude != true %}
58
- {% if collections_size > 1 %}
59
- <div class="nav-category">{{ collection_value.name }}</div>
67
+ {% if collections_size > 1 or pages_top_size > 0 %}
68
+ {% if collection_value.nav_fold == true %}
69
+ <ul class="nav-list nav-category-list">
70
+ <li class="nav-list-item{% if page.collection == collection_key %} active{% endif %}">
71
+ {%- if collection.size > 0 -%}
72
+ <a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a>
73
+ {%- endif -%}
74
+ <div class="nav-category">{{ collection_value.name }}</div>
75
+ {% include nav.html pages=collection key=collection_key %}
76
+ </li>
77
+ </ul>
78
+ {% else %}
79
+ <div class="nav-category">{{ collection_value.name }}</div>
80
+ {% include nav.html pages=collection key=collection_key %}
81
+ {% endif %}
82
+ {% else %}
83
+ {% include nav.html pages=collection key=collection_key %}
60
84
  {% endif %}
61
- {% include nav.html pages=collection %}
62
85
  {% endif %}
63
86
  {% endfor %}
64
- {% else %}
65
- {% include nav.html pages=site.html_pages %}
66
87
  {% endif %}
67
88
  </nav>
68
- <footer class="site-footer">
69
- This site uses <a href="https://github.com/pmarsceill/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll.
70
- </footer>
89
+
90
+ {% capture nav_footer_custom %}
91
+ {%- include nav_footer_custom.html -%}
92
+ {% endcapture %}
93
+ {% if nav_footer_custom != "" %}
94
+ {{ nav_footer_custom }}
95
+ {% else %}
96
+ <footer class="site-footer">
97
+ This site uses <a href="https://github.com/just-the-docs/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll.
98
+ </footer>
99
+ {% endif %}
71
100
  </div>
72
101
  <div class="main" id="top">
73
102
  <div id="main-header" class="main-header">
74
103
  {% if site.search_enabled != false %}
104
+
105
+ {% capture search_placeholder %}{% include search_placeholder_custom.html %}{% endcapture %}
106
+
75
107
  <div class="search">
76
108
  <div class="search-input-wrap">
77
- <input type="text" id="search-input" class="search-input" tabindex="0" placeholder="Search {{ site.title }}" aria-label="Search {{ site.title }}" autocomplete="off">
109
+ <input type="text" id="search-input" class="search-input" tabindex="0" placeholder="{{ search_placeholder | strip_html | strip }}" aria-label="{{ search_placeholder | strip_html| strip }}" autocomplete="off">
78
110
  <label for="search-input" class="search-label"><svg viewBox="0 0 24 24" class="search-icon"><use xlink:href="#svg-search"></use></svg></label>
79
111
  </div>
80
112
  <div id="search-results" class="search-results"></div>
@@ -102,21 +134,6 @@ layout: table_wrappers
102
134
  <div id="main-content-wrap" class="main-content-wrap">
103
135
  {% unless page.url == "/" %}
104
136
  {% if page.parent %}
105
- {%- for node in pages_list -%}
106
- {%- if node.parent == nil -%}
107
- {%- if page.parent == node.title or page.grand_parent == node.title -%}
108
- {%- assign first_level_url = node.url | absolute_url -%}
109
- {%- endif -%}
110
- {%- if node.has_children -%}
111
- {%- assign children_list = pages_list | where: "parent", node.title -%}
112
- {%- for child in children_list -%}
113
- {%- if page.url == child.url or page.parent == child.title -%}
114
- {%- assign second_level_url = child.url | absolute_url -%}
115
- {%- endif -%}
116
- {%- endfor -%}
117
- {%- endif -%}
118
- {%- endif -%}
119
- {%- endfor -%}
120
137
  <nav aria-label="Breadcrumb" class="breadcrumb-nav">
121
138
  <ol class="breadcrumb-nav-list">
122
139
  {% if page.grand_parent %}
@@ -141,10 +158,9 @@ layout: table_wrappers
141
158
  <hr>
142
159
  <h2 class="text-delta">Table of contents</h2>
143
160
  <ul>
144
- {%- assign children_list = pages_list | where: "parent", page.title | where: "grand_parent", page.parent -%}
145
- {% for child in children_list %}
161
+ {% for child in toc_list %}
146
162
  <li>
147
- <a href="{{ child.url | absolute_url }}">{{ child.title }}</a>{% if child.summary %} - {{ child.summary }}{% endif %}
163
+ <a href="{{ child.url | relative_url }}">{{ child.title }}</a>{% if child.summary %} - {{ child.summary }}{% endif %}
148
164
  </li>
149
165
  {% endfor %}
150
166
  </ul>
@@ -177,7 +193,7 @@ layout: table_wrappers
177
193
  site.gh_edit_view_mode
178
194
  %}
179
195
  <p class="text-small text-grey-dk-000 mb-0">
180
- <a href="{{ site.gh_edit_repository }}/{{ site.gh_edit_view_mode }}/{{ site.gh_edit_branch }}{% if site.gh_edit_source %}/{{ site.gh_edit_source }}{% endif %}/{{ page.path }}" id="edit-this-page">{{ site.gh_edit_link_text }}</a>
196
+ <a href="{{ site.gh_edit_repository }}/{{ site.gh_edit_view_mode }}/{{ site.gh_edit_branch }}{% if site.gh_edit_source %}/{{ site.gh_edit_source }}{% endif %}{% if page.collection and site.collections_dir %}/{{ site.collections_dir }}{% endif %}/{{ page.path }}" id="edit-this-page">{{ site.gh_edit_link_text }}</a>
181
197
  </p>
182
198
  {% endif %}
183
199
  </div>
@@ -199,4 +215,11 @@ layout: table_wrappers
199
215
  {% endif %}
200
216
  </div>
201
217
  </body>
218
+ {% if site.mermaid %}
219
+ <script>
220
+ var config = {% include mermaid_config.js %};
221
+ mermaid.initialize(config);
222
+ window.mermaid.init(undefined, document.querySelectorAll('.language-mermaid'));
223
+ </script>
224
+ {% endif %}
202
225
  </html>
data/_sass/base.scss CHANGED
@@ -1,7 +1,5 @@
1
- //
2
1
  // Base element style overrides
3
- //
4
- // stylelint-disable selector-no-type, selector-max-type
2
+ // stylelint-disable selector-no-type, selector-max-type, selector-max-specificity, selector-max-id
5
3
 
6
4
  * {
7
5
  box-sizing: border-box;
@@ -14,6 +12,7 @@
14
12
 
15
13
  html {
16
14
  @include fs-4;
15
+
17
16
  scroll-behavior: smooth;
18
17
  }
19
18
 
@@ -23,6 +22,7 @@ body {
23
22
  line-height: $body-line-height;
24
23
  color: $body-text-color;
25
24
  background-color: $body-background-color;
25
+ overflow-wrap: break-word;
26
26
  }
27
27
 
28
28
  ol,
@@ -45,7 +45,8 @@ h2,
45
45
  h3,
46
46
  h4,
47
47
  h5,
48
- h6 {
48
+ h6,
49
+ #toctitle {
49
50
  margin-top: 0;
50
51
  margin-bottom: 1em;
51
52
  font-weight: 500;
data/_sass/buttons.scss CHANGED
@@ -1,6 +1,4 @@
1
- //
2
1
  // Buttons and things that look like buttons
3
- //
4
2
  // stylelint-disable color-named
5
3
 
6
4
  .btn {
data/_sass/code.scss CHANGED
@@ -1,7 +1,7 @@
1
- //
2
1
  // Code and syntax highlighting
3
- //
4
- // stylelint-disable selector-no-qualifying-type, declaration-block-semicolon-newline-after,declaration-block-single-line-max-declarations, selector-no-type, selector-max-type
2
+ // stylelint-disable selector-no-qualifying-type, declaration-block-semicolon-newline-after,declaration-block-single-line-max-declarations, selector-no-type, selector-max-type, scss/comment-no-empty
3
+
4
+ // {% raw %}
5
5
 
6
6
  code {
7
7
  padding: 0.2em 0.15em;
@@ -36,6 +36,9 @@ a:visited code {
36
36
  // > td.gutter.gl > pre.lineno
37
37
  // | td.code > pre
38
38
  //
39
+ // ----...---- (AsciiDoc)
40
+ // div.listingblock > div.content > pre.rouge.highlight
41
+ //
39
42
  // fix_linenos removes the outermost pre when it encloses table.rouge-table
40
43
  //
41
44
  // See docs/index-test.md for some tests.
@@ -44,7 +47,8 @@ a:visited code {
44
47
  // Kramdown line_numbers = true: fences have a wider gutter than with Liquid?
45
48
 
46
49
  // ```[LANG]...```
47
- div.highlighter-rouge {
50
+ div.highlighter-rouge,
51
+ div.listingblock {
48
52
  padding: $sp-3;
49
53
  margin-top: 0;
50
54
  margin-bottom: $sp-3;
@@ -69,6 +73,7 @@ figure.highlight {
69
73
  padding: $sp-3;
70
74
  margin-top: 0;
71
75
  margin-bottom: $sp-3;
76
+ overflow-x: auto;
72
77
  background-color: $code-background-color;
73
78
  border-radius: $border-radius;
74
79
  box-shadow: none;
@@ -93,6 +98,7 @@ figure.highlight {
93
98
  td,
94
99
  pre {
95
100
  @include fs-2;
101
+
96
102
  min-width: 0;
97
103
  padding: 0;
98
104
  background-color: $code-background-color;
@@ -109,213 +115,6 @@ figure.highlight {
109
115
  }
110
116
  }
111
117
 
112
- .highlight .c {
113
- color: #586e75;
114
- } // comment //
115
- .highlight .err {
116
- color: #93a1a1;
117
- } // error //
118
- .highlight .g {
119
- color: #93a1a1;
120
- } // generic //
121
- .highlight .k {
122
- color: #859900;
123
- } // keyword //
124
- .highlight .l {
125
- color: #93a1a1;
126
- } // literal //
127
- .highlight .n {
128
- color: #93a1a1;
129
- } // name //
130
- .highlight .o {
131
- color: #859900;
132
- } // operator //
133
- .highlight .x {
134
- color: #cb4b16;
135
- } // other //
136
- .highlight .p {
137
- color: #93a1a1;
138
- } // punctuation //
139
- .highlight .cm {
140
- color: #586e75;
141
- } // comment.multiline //
142
- .highlight .cp {
143
- color: #859900;
144
- } // comment.preproc //
145
- .highlight .c1 {
146
- color: #586e75;
147
- } // comment.single //
148
- .highlight .cs {
149
- color: #859900;
150
- } // comment.special //
151
- .highlight .gd {
152
- color: #2aa198;
153
- } // generic.deleted //
154
- .highlight .ge {
155
- font-style: italic;
156
- color: #93a1a1;
157
- } // generic.emph //
158
- .highlight .gr {
159
- color: #dc322f;
160
- } // generic.error //
161
- .highlight .gh {
162
- color: #cb4b16;
163
- } // generic.heading //
164
- .highlight .gi {
165
- color: #859900;
166
- } // generic.inserted //
167
- .highlight .go {
168
- color: #93a1a1;
169
- } // generic.output //
170
- .highlight .gp {
171
- color: #93a1a1;
172
- } // generic.prompt //
173
- .highlight .gs {
174
- font-weight: bold;
175
- color: #93a1a1;
176
- } // generic.strong //
177
- .highlight .gu {
178
- color: #cb4b16;
179
- } // generic.subheading //
180
- .highlight .gt {
181
- color: #93a1a1;
182
- } // generic.traceback //
183
- .highlight .kc {
184
- color: #cb4b16;
185
- } // keyword.constant //
186
- .highlight .kd {
187
- color: #268bd2;
188
- } // keyword.declaration //
189
- .highlight .kn {
190
- color: #859900;
191
- } // keyword.namespace //
192
- .highlight .kp {
193
- color: #859900;
194
- } // keyword.pseudo //
195
- .highlight .kr {
196
- color: #268bd2;
197
- } // keyword.reserved //
198
- .highlight .kt {
199
- color: #dc322f;
200
- } // keyword.type //
201
- .highlight .ld {
202
- color: #93a1a1;
203
- } // literal.date //
204
- .highlight .m {
205
- color: #2aa198;
206
- } // literal.number //
207
- .highlight .s {
208
- color: #2aa198;
209
- } // literal.string //
210
- .highlight .na {
211
- color: #555;
212
- } // name.attribute //
213
- .highlight .nb {
214
- color: #b58900;
215
- } // name.builtin //
216
- .highlight .nc {
217
- color: #268bd2;
218
- } // name.class //
219
- .highlight .no {
220
- color: #cb4b16;
221
- } // name.constant //
222
- .highlight .nd {
223
- color: #268bd2;
224
- } // name.decorator //
225
- .highlight .ni {
226
- color: #cb4b16;
227
- } // name.entity //
228
- .highlight .ne {
229
- color: #cb4b16;
230
- } // name.exception //
231
- .highlight .nf {
232
- color: #268bd2;
233
- } // name.function //
234
- .highlight .nl {
235
- color: #555;
236
- } // name.label //
237
- .highlight .nn {
238
- color: #93a1a1;
239
- } // name.namespace //
240
- .highlight .nx {
241
- color: #555;
242
- } // name.other //
243
- .highlight .py {
244
- color: #93a1a1;
245
- } // name.property //
246
- .highlight .nt {
247
- color: #268bd2;
248
- } // name.tag //
249
- .highlight .nv {
250
- color: #268bd2;
251
- } // name.variable //
252
- .highlight .ow {
253
- color: #859900;
254
- } // operator.word //
255
- .highlight .w {
256
- color: #93a1a1;
257
- } // text.whitespace //
258
- .highlight .mf {
259
- color: #2aa198;
260
- } // literal.number.float //
261
- .highlight .mh {
262
- color: #2aa198;
263
- } // literal.number.hex //
264
- .highlight .mi {
265
- color: #2aa198;
266
- } // literal.number.integer //
267
- .highlight .mo {
268
- color: #2aa198;
269
- } // literal.number.oct //
270
- .highlight .sb {
271
- color: #586e75;
272
- } // literal.string.backtick //
273
- .highlight .sc {
274
- color: #2aa198;
275
- } // literal.string.char //
276
- .highlight .sd {
277
- color: #93a1a1;
278
- } // literal.string.doc //
279
- .highlight .s2 {
280
- color: #2aa198;
281
- } // literal.string.double //
282
- .highlight .se {
283
- color: #cb4b16;
284
- } // literal.string.escape //
285
- .highlight .sh {
286
- color: #93a1a1;
287
- } // literal.string.heredoc //
288
- .highlight .si {
289
- color: #2aa198;
290
- } // literal.string.interpol //
291
- .highlight .sx {
292
- color: #2aa198;
293
- } // literal.string.other //
294
- .highlight .sr {
295
- color: #dc322f;
296
- } // literal.string.regex //
297
- .highlight .s1 {
298
- color: #2aa198;
299
- } // literal.string.single //
300
- .highlight .ss {
301
- color: #2aa198;
302
- } // literal.string.symbol //
303
- .highlight .bp {
304
- color: #268bd2;
305
- } // name.builtin.pseudo //
306
- .highlight .vc {
307
- color: #268bd2;
308
- } // name.variable.class //
309
- .highlight .vg {
310
- color: #268bd2;
311
- } // name.variable.global //
312
- .highlight .vi {
313
- color: #268bd2;
314
- } // name.variable.instance //
315
- .highlight .il {
316
- color: #2aa198;
317
- } // literal.number.integer.long //
318
-
319
118
  //
320
119
  // Code examples (rendered)
321
120
  //
@@ -328,6 +127,7 @@ figure.highlight {
328
127
  border-radius: $border-radius;
329
128
 
330
129
  + .highlighter-rouge,
130
+ + .sectionbody .listingblock,
331
131
  + figure.highlight {
332
132
  position: relative;
333
133
  margin-top: -$sp-4;
@@ -338,3 +138,12 @@ figure.highlight {
338
138
  border-top-right-radius: 0;
339
139
  }
340
140
  }
141
+
142
+ // Mermaid diagram code blocks should be left unstyled.
143
+ code.language-mermaid {
144
+ padding: 0;
145
+ background-color: inherit;
146
+ border: 0;
147
+ }
148
+
149
+ // {% endraw %}
@@ -1,17 +1,28 @@
1
1
  $body-background-color: $grey-dk-300;
2
2
  $sidebar-color: $grey-dk-300;
3
3
  $border-color: $grey-dk-200;
4
-
5
4
  $body-text-color: $grey-lt-300;
6
5
  $body-heading-color: $grey-lt-000;
7
6
  $nav-child-link-color: $grey-dk-000;
8
7
  $search-result-preview-color: $grey-dk-000;
9
-
10
8
  $link-color: $blue-000;
11
9
  $btn-primary-color: $blue-200;
12
10
  $base-button-color: $grey-dk-250;
13
-
14
- $code-background-color: $grey-dk-250;
15
11
  $search-background-color: $grey-dk-250;
16
12
  $table-background-color: $grey-dk-250;
17
13
  $feedback-color: darken($sidebar-color, 3%);
14
+
15
+ // The following highlight theme is more legible than that used for the light color scheme
16
+
17
+ // @import "./vendor/OneDarkJekyll/syntax-one-dark";
18
+ // $code-background-color: #282c34;
19
+
20
+ @import "./vendor/OneDarkJekyll/syntax-one-dark-vivid";
21
+
22
+ $code-background-color: #31343f;
23
+
24
+ // @import "./vendor/OneDarkJekyll/syntax-firewatch";
25
+ // $code-background-color: #282c34;
26
+
27
+ // @import "./vendor/OneDarkJekyll/syntax-firewatch-green";
28
+ // $code-background-color: #282c34;