just-the-hm-docs 1.0.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 (114) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +24 -0
  4. data/Rakefile +1 -0
  5. data/_includes/components/aux_nav.html +15 -0
  6. data/_includes/components/breadcrumbs.html +15 -0
  7. data/_includes/components/children_nav.html +9 -0
  8. data/_includes/components/footer.html +34 -0
  9. data/_includes/components/header.html +11 -0
  10. data/_includes/components/mermaid.html +5 -0
  11. data/_includes/components/search_footer.html +7 -0
  12. data/_includes/components/search_header.html +9 -0
  13. data/_includes/components/sidebar.html +69 -0
  14. data/_includes/css/callouts.scss.liquid +93 -0
  15. data/_includes/css/custom.scss.liquid +1 -0
  16. data/_includes/css/just-the-docs.scss.liquid +10 -0
  17. data/_includes/fix_linenos.html +65 -0
  18. data/_includes/footer_custom.html +3 -0
  19. data/_includes/head.html +46 -0
  20. data/_includes/head_custom.html +4 -0
  21. data/_includes/header_custom.html +0 -0
  22. data/_includes/icons/code_copy.html +15 -0
  23. data/_includes/icons/document.html +6 -0
  24. data/_includes/icons/expand.html +6 -0
  25. data/_includes/icons/external_link.html +5 -0
  26. data/_includes/icons/icons.html +13 -0
  27. data/_includes/icons/link.html +6 -0
  28. data/_includes/icons/menu.html +6 -0
  29. data/_includes/icons/search.html +6 -0
  30. data/_includes/js/custom.js +0 -0
  31. data/_includes/lunr/custom-data.json +0 -0
  32. data/_includes/lunr/custom-index.js +0 -0
  33. data/_includes/mermaid_config.js +1 -0
  34. data/_includes/nav.html +251 -0
  35. data/_includes/nav_footer_custom.html +0 -0
  36. data/_includes/search_placeholder_custom.html +1 -0
  37. data/_includes/title.html +5 -0
  38. data/_includes/toc_heading_custom.html +1 -0
  39. data/_includes/vendor/anchor_headings.html +172 -0
  40. data/_layouts/about.html +5 -0
  41. data/_layouts/default.html +41 -0
  42. data/_layouts/home.html +5 -0
  43. data/_layouts/minimal.html +60 -0
  44. data/_layouts/page.html +5 -0
  45. data/_layouts/post.html +5 -0
  46. data/_layouts/table_wrappers.html +7 -0
  47. data/_layouts/vendor/compress.html +10 -0
  48. data/_sass/base.scss +114 -0
  49. data/_sass/buttons.scss +113 -0
  50. data/_sass/code.scss +210 -0
  51. data/_sass/color_schemes/dark.scss +28 -0
  52. data/_sass/color_schemes/hm.scss +26 -0
  53. data/_sass/color_schemes/light.scss +208 -0
  54. data/_sass/content.scss +239 -0
  55. data/_sass/custom/custom.scss +30 -0
  56. data/_sass/custom/hm-branding.scss +259 -0
  57. data/_sass/custom/hm-code.scss +153 -0
  58. data/_sass/custom/hm-colors.scss +15 -0
  59. data/_sass/custom/hm-notes.scss +38 -0
  60. data/_sass/custom/setup.scss +160 -0
  61. data/_sass/labels.scss +33 -0
  62. data/_sass/layout.scss +206 -0
  63. data/_sass/modules.scss +17 -0
  64. data/_sass/navigation.scss +235 -0
  65. data/_sass/print.scss +40 -0
  66. data/_sass/search.scss +311 -0
  67. data/_sass/skiptomain.scss +30 -0
  68. data/_sass/support/_functions.scss +11 -0
  69. data/_sass/support/_variables.scss +129 -0
  70. data/_sass/support/mixins/_buttons.scss +27 -0
  71. data/_sass/support/mixins/_layout.scss +34 -0
  72. data/_sass/support/mixins/_typography.scss +84 -0
  73. data/_sass/support/mixins/mixins.scss +3 -0
  74. data/_sass/support/support.scss +3 -0
  75. data/_sass/tables.scss +54 -0
  76. data/_sass/typography.scss +63 -0
  77. data/_sass/utilities/_colors.scss +237 -0
  78. data/_sass/utilities/_layout.scss +101 -0
  79. data/_sass/utilities/_lists.scss +15 -0
  80. data/_sass/utilities/_spacing.scss +162 -0
  81. data/_sass/utilities/_typography.scss +85 -0
  82. data/_sass/utilities/utilities.scss +5 -0
  83. data/_sass/vendor/OneDarkJekyll/LICENSE +21 -0
  84. data/_sass/vendor/OneDarkJekyll/README.md +25 -0
  85. data/_sass/vendor/OneDarkJekyll/colors.less +30 -0
  86. data/_sass/vendor/OneDarkJekyll/syntax-firewatch-green.scss +200 -0
  87. data/_sass/vendor/OneDarkJekyll/syntax-firewatch.scss +200 -0
  88. data/_sass/vendor/OneDarkJekyll/syntax-one-dark-vivid.scss +200 -0
  89. data/_sass/vendor/OneDarkJekyll/syntax-one-dark.scss +200 -0
  90. data/_sass/vendor/OneDarkJekyll/syntax-variables.less +56 -0
  91. data/_sass/vendor/OneDarkJekyll/syntax.less +93 -0
  92. data/_sass/vendor/normalize.scss/README.md +7 -0
  93. data/_sass/vendor/normalize.scss/normalize.scss +351 -0
  94. data/assets/css/just-the-docs-dark.scss +3 -0
  95. data/assets/css/just-the-docs-default.scss +8 -0
  96. data/assets/css/just-the-docs-light.scss +3 -0
  97. data/assets/favicon/android-chrome-192x192.png +0 -0
  98. data/assets/favicon/android-chrome-512x512.png +0 -0
  99. data/assets/favicon/apple-touch-icon.png +0 -0
  100. data/assets/favicon/favicon-16x16.png +0 -0
  101. data/assets/favicon/favicon-32x32.png +0 -0
  102. data/assets/favicon/favicon.ico +0 -0
  103. data/assets/favicon/site.webmanifest +1 -0
  104. data/assets/images/.gitkeep +0 -0
  105. data/assets/images/hm-logo.svg +1 -0
  106. data/assets/images/search.svg +1 -0
  107. data/assets/js/just-the-docs.js +528 -0
  108. data/assets/js/vendor/lunr.min.js +61 -0
  109. data/assets/js/zzzz-search-data.json +74 -0
  110. data/bin/just-the-hm-docs +16 -0
  111. data/changelog.md +17 -0
  112. data/favicon.ico +0 -0
  113. data/lib/tasks/search.rake +88 -0
  114. metadata +217 -0
@@ -0,0 +1,251 @@
1
+ {%- comment -%}
2
+ The `nav_order` values of pages affect the order in which they are shown in
3
+ the navigation panel and in the automatically generated tables of contents.
4
+ Sibling pages with the same `nav_order` value may be shown in any order.
5
+ Sibling pages with no `nav_order` value are shown after all pages that have
6
+ explicit `nav_order` values, ordered by their `title` values.
7
+
8
+ The `nav_order` and `title` values can be numbers or strings. To avoid build
9
+ failures, we sort numbers and strings separately. We sort numbers by their
10
+ values, and strings lexicographically. The case-sensitivity of string sorting
11
+ is determined by the configuration setting of `nav_sort`. Pages with no `title`
12
+ value are excluded from the navigation.
13
+
14
+ Note: Numbers used as `title` or `nav_order` values should not be in quotes,
15
+ unless you intend them to be lexicographically ordered. Numbers are written
16
+ without spaces or thousands-separators. Negative numbers are preceded by `-`.
17
+ Floats are written with the integral and fractional parts separated by `.`.
18
+ (Bounds on the magnitude and precision are presumably the same as in Liquid.)
19
+ {%- endcomment -%}
20
+
21
+ {%- assign title_pages = include.pages
22
+ | where_exp: "item", "item.title != nil" -%}
23
+
24
+ {%- comment -%}
25
+ A page with `nav_exclude: true` does not appear in the main navigation.
26
+ If it has a `parent`, it may appear in the parent's table of contents.
27
+ If it specifies `has_children: true`, it should appear in the breadcrumbs
28
+ of the child pages, but its order in relation to other pages is irrelevant.
29
+ Pages that never appear can be removed from the pages that need to be sorted.
30
+ This optimisation can be significant on a site with many pages.
31
+
32
+ In Jekyll 4, the pages to be sorted can be filtered by:
33
+
34
+ {%- assign title_pages = title_pages
35
+ | where_exp: "item", "item.nav_exclude != true or item.parent != nil" -%}
36
+
37
+ That filter is not allowed in Jekyll 3. The following iterative code gives the
38
+ same effect, but it is activated only when it will filter more than 50% of the
39
+ pages.
40
+ {%- endcomment -%}
41
+
42
+ {%- unless title_pages == empty -%}
43
+ {%- assign unsorted_pages = title_pages
44
+ | where_exp: "item", "item.parent == nil"
45
+ | where_exp: "item", "item.nav_exclude == true" -%}
46
+ {%- assign title_pages_size = title_pages.size -%}
47
+ {%- assign unsorted_pages_percent = unsorted_pages.size
48
+ | times: 100 | divided_by: title_pages_size -%}
49
+ {%- if unsorted_pages_percent > 50 -%}
50
+ {%- assign sorted_pages = "" | split: "" -%}
51
+ {%- for item in title_pages -%}
52
+ {%- if item.nav_exclude != true or item.parent -%}
53
+ {%- assign sorted_pages = sorted_pages | push: item -%}
54
+ {%- endif -%}
55
+ {%- endfor -%}
56
+ {%- assign title_pages = sorted_pages -%}
57
+ {%- endif -%}
58
+ {%- endunless -%}
59
+
60
+ {%- assign nav_order_pages = title_pages
61
+ | where_exp: "item", "item.nav_order != nil" -%}
62
+ {%- assign title_order_pages = title_pages
63
+ | where_exp: "item", "item.nav_order == nil" -%}
64
+
65
+ {%- comment -%}
66
+ Divide the arrays of `nav_order_pages` and `title_order_pages` according to
67
+ the type of value.
68
+
69
+ The first character of the result of `jsonify` is `"` only for strings.
70
+ Grouping by a single character also ensures the number of groups is small.
71
+ {%- endcomment -%}
72
+
73
+ {%- assign nav_number_pages = "" | split: "" -%}
74
+ {%- assign nav_string_pages = "" | split: "" -%}
75
+ {%- assign nav_order_groups = nav_order_pages
76
+ | group_by_exp: "item", "item.nav_order | jsonify | slice: 0" -%}
77
+ {%- for group in nav_order_groups -%}
78
+ {%- if group.name == '"' -%}
79
+ {%- assign nav_string_pages = group.items -%}
80
+ {%- else -%}
81
+ {%- assign nav_number_pages = nav_number_pages | concat: group.items -%}
82
+ {%- endif -%}
83
+ {%- endfor -%}
84
+
85
+ {%- unless nav_number_pages == empty -%}
86
+ {%- assign nav_number_pages = nav_number_pages | sort: "nav_order" -%}
87
+ {%- endunless -%}
88
+
89
+ {%- unless nav_string_pages == empty -%}
90
+ {%- if site.nav_sort == 'case_insensitive' -%}
91
+ {%- assign nav_string_pages = nav_string_pages | sort_natural: "nav_order" -%}
92
+ {%- else -%}
93
+ {%- assign nav_string_pages = nav_string_pages | sort: "nav_order" -%}
94
+ {%- endif -%}
95
+ {%- endunless -%}
96
+
97
+ {%- assign title_number_pages = "" | split: "" -%}
98
+ {%- assign title_string_pages = "" | split: "" -%}
99
+ {%- assign title_order_groups = title_order_pages
100
+ | group_by_exp: "item", "item.title | jsonify | slice: 0" -%}
101
+ {%- for group in title_order_groups -%}
102
+ {%- if group.name == '"' -%}
103
+ {%- assign title_string_pages = group.items -%}
104
+ {%- else -%}
105
+ {%- assign title_number_pages = title_number_pages | concat: group.items -%}
106
+ {%- endif -%}
107
+ {%- endfor -%}
108
+
109
+ {%- unless title_number_pages == empty -%}
110
+ {%- assign title_number_pages = title_number_pages | sort: "title" -%}
111
+ {%- endunless -%}
112
+
113
+ {%- unless title_string_pages == empty -%}
114
+ {%- if site.nav_sort == 'case_insensitive' -%}
115
+ {%- assign title_string_pages = title_string_pages | sort_natural: "title" -%}
116
+ {%- else -%}
117
+ {%- assign title_string_pages = title_string_pages | sort: "title" -%}
118
+ {%- endif -%}
119
+ {%- endunless -%}
120
+
121
+ {%- assign pages_list = nav_number_pages | concat: nav_string_pages
122
+ | concat: title_number_pages | concat: title_string_pages -%}
123
+
124
+ {%- assign first_level_pages = pages_list
125
+ | where_exp: "item", "item.parent == nil" -%}
126
+ {%- assign second_level_pages = pages_list
127
+ | where_exp: "item", "item.parent != nil"
128
+ | where_exp: "item", "item.grand_parent == nil" -%}
129
+ {%- assign third_level_pages = pages_list
130
+ | where_exp: "item", "item.grand_parent != nil" -%}
131
+
132
+ {%- comment -%}
133
+ The order of sibling pages in `pages_list` determines the order of display of
134
+ links to them in lists of navigation links and in auto-generated TOCs.
135
+
136
+ Note that Liquid evaluates conditions from right to left (and it does not allow
137
+ the use of parentheses). Some conditions are not so easy to express clearly...
138
+
139
+ For example, consider the following condition:
140
+
141
+ C: page.collection = = include.key and
142
+ page.url = = node.url or
143
+ page.grand_parent = = node.title or
144
+ page.parent = = node.title and
145
+ page.grand_parent = = nil
146
+
147
+ Here, `node` is a first-level page. The last part of the condition
148
+ -- namely: `page.parent = = node.title and page.grand_parent = = nil` --
149
+ is evaluated first; it holds if and only if `page` is a child of `node`.
150
+
151
+ The condition `page.grand_parent = = node.title or ...` holds when
152
+ `page` is a grandchild of node, OR `...` holds.
153
+
154
+ The condition `page.url = = node.url or ...` holds when
155
+ `page` is `node`, OR `...` holds.
156
+
157
+ The condition C: `page.collection = = include.key and ...` holds when we are
158
+ generating the nav links for a collection that includes `page`, AND `...` holds.
159
+ {%- endcomment -%}
160
+
161
+ <ul class="nav-list">
162
+ {%- for node in first_level_pages -%}
163
+ {%- unless node.nav_exclude -%}
164
+ <li class="nav-list-item{% if page.collection == include.key and page.url == node.url or page.grand_parent == node.title or page.parent == node.title and page.grand_parent == nil %} active{% endif %}">
165
+ {%- if node.has_children -%}
166
+ <a href="#" class="nav-list-expander" aria-label="toggle links in {{ node.title }} category">
167
+ <svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg>
168
+ </a>
169
+ {%- endif -%}
170
+ <a href="{{ node.url | relative_url }}" class="nav-list-link{% if page.url == node.url %} active{% endif %}">{{ node.title }}</a>
171
+ {%- if node.has_children -%}
172
+ {%- assign children_list = second_level_pages
173
+ | where: "parent", node.title -%}
174
+ {%- if node.child_nav_order == 'desc' or node.child_nav_order == 'reversed' -%}
175
+ {%- assign children_list = children_list | reverse -%}
176
+ {%- endif -%}
177
+ <ul class="nav-list">
178
+ {%- for child in children_list -%}
179
+ {%- unless child.nav_exclude -%}
180
+ <li class="nav-list-item {% if page.url == child.url or page.parent == child.title %} active{% endif %}">
181
+ {%- if child.has_children -%}
182
+ <a href="#" class="nav-list-expander" aria-label="toggle links in {{ child.title }} category">
183
+ <svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg>
184
+ </a>
185
+ {%- endif -%}
186
+ <a href="{{ child.url | relative_url }}" class="nav-list-link{% if page.url == child.url %} active{% endif %}">{{ child.title }}</a>
187
+ {%- if child.has_children -%}
188
+ {%- assign grand_children_list = third_level_pages
189
+ | where: "parent", child.title
190
+ | where: "grand_parent", node.title -%}
191
+ {%- if child.child_nav_order == 'desc' or child.child_nav_order == 'reversed' -%}
192
+ {%- assign grand_children_list = grand_children_list | reverse -%}
193
+ {%- endif -%}
194
+ <ul class="nav-list">
195
+ {%- for grand_child in grand_children_list -%}
196
+ {%- unless grand_child.nav_exclude -%}
197
+ <li class="nav-list-item {% if page.url == grand_child.url %} active{% endif %}">
198
+ <a href="{{ grand_child.url | relative_url }}" class="nav-list-link{% if page.url == grand_child.url %} active{% endif %}">{{ grand_child.title }}</a>
199
+ </li>
200
+ {%- endunless -%}
201
+ {%- endfor -%}
202
+ </ul>
203
+ {%- endif -%}
204
+ </li>
205
+ {%- endunless -%}
206
+ {%- endfor -%}
207
+ </ul>
208
+ {%- endif -%}
209
+ </li>
210
+ {%- endunless -%}
211
+ {%- endfor -%}
212
+ </ul>
213
+
214
+ {%- comment -%}
215
+ `page.collection` is the name of the Jekyll collection that contains the page,
216
+ if any, and otherwise nil. Similarly for `include.key`.
217
+
218
+ If the current page is in the collection (if any) whose navigation is currently
219
+ being generated, the following code sets `first_level_url` to the URL used in
220
+ the page's top-level breadcrumb (if any), and `second_level_url` to that used
221
+ in the page's second-level breadcrumb (if any).
222
+
223
+ For pages with children, the code also sets `toc_list` to the list of child pages,
224
+ reversing the order if needed.
225
+ {%- endcomment -%}
226
+
227
+ {%- if page.collection == include.key -%}
228
+ {%- for node in first_level_pages -%}
229
+ {%- if page.grand_parent == node.title or page.parent == node.title and page.grand_parent == nil -%}
230
+ {%- assign first_level_url = node.url | relative_url -%}
231
+ {%- endif -%}
232
+ {%- if node.has_children -%}
233
+ {%- assign children_list = second_level_pages | where: "parent", node.title -%}
234
+ {%- for child in children_list -%}
235
+ {%- if child.has_children -%}
236
+ {%- if page.url == child.url or page.parent == child.title and page.grand_parent == child.parent -%}
237
+ {%- assign second_level_url = child.url | relative_url -%}
238
+ {%- endif -%}
239
+ {%- endif -%}
240
+ {%- endfor -%}
241
+ {%- endif -%}
242
+ {%- endfor -%}
243
+ {%- if page.has_children == true and page.has_toc != false -%}
244
+ {%- assign toc_list = pages_list
245
+ | where: "parent", page.title
246
+ | where_exp: "item", "item.grand_parent == page.parent" -%}
247
+ {%- if page.child_nav_order == 'desc' or page.child_nav_order == 'reversed' -%}
248
+ {%- assign toc_list = toc_list | reverse -%}
249
+ {%- endif -%}
250
+ {%- endif -%}
251
+ {%- endif -%}
File without changes
@@ -0,0 +1 @@
1
+ Search the docs
@@ -0,0 +1,5 @@
1
+ {% if site.logo %}
2
+ <div class="site-logo"></div>
3
+ {% else %}
4
+ {{ site.title }}
5
+ {% endif %}
@@ -0,0 +1 @@
1
+ <h2 class="text-delta">Table of contents</h2>
@@ -0,0 +1,172 @@
1
+ {% capture headingsWorkspace %}
2
+ {% comment %}
3
+ Copyright (c) 2018 Vladimir "allejo" Jimenez
4
+
5
+ Permission is hereby granted, free of charge, to any person
6
+ obtaining a copy of this software and associated documentation
7
+ files (the "Software"), to deal in the Software without
8
+ restriction, including without limitation the rights to use,
9
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the
11
+ Software is furnished to do so, subject to the following
12
+ conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24
+ OTHER DEALINGS IN THE SOFTWARE.
25
+ {% endcomment %}
26
+ {% comment %}
27
+ Version 1.0.12
28
+ https://github.com/allejo/jekyll-anchor-headings
29
+
30
+ "Be the pull request you wish to see in the world." ~Ben Balter
31
+
32
+ Usage:
33
+ {% include anchor_headings.html html=content anchorBody="#" %}
34
+
35
+ Parameters:
36
+ * html (string) - the HTML of compiled markdown generated by kramdown in Jekyll
37
+
38
+ Optional Parameters:
39
+ * beforeHeading (bool) : false - Set to true if the anchor should be placed _before_ the heading's content
40
+ * headerAttrs (string) : '' - Any custom HTML attributes that will be added to the heading tag; you may NOT use `id`;
41
+ the `%heading%` and `%html_id%` placeholders are available
42
+ * anchorAttrs (string) : '' - Any custom HTML attributes that will be added to the `<a>` tag; you may NOT use `href`, `class` or `title`;
43
+ the `%heading%` and `%html_id%` placeholders are available
44
+ * anchorBody (string) : '' - The content that will be placed inside the anchor; the `%heading%` placeholder is available
45
+ * anchorClass (string) : '' - The class(es) that will be used for each anchor. Separate multiple classes with a space
46
+ * anchorTitle (string) : '' - The `title` attribute that will be used for anchors
47
+ * h_min (int) : 1 - The minimum header level to build an anchor for; any header lower than this value will be ignored
48
+ * h_max (int) : 6 - The maximum header level to build an anchor for; any header greater than this value will be ignored
49
+ * bodyPrefix (string) : '' - Anything that should be inserted inside of the heading tag _before_ its anchor and content
50
+ * bodySuffix (string) : '' - Anything that should be inserted inside of the heading tag _after_ its anchor and content
51
+ * generateId (true) : false - Set to true if a header without id should generate an id to use.
52
+
53
+ Output:
54
+ The original HTML with the addition of anchors inside of all of the h1-h6 headings.
55
+ {% endcomment %}
56
+
57
+ {% assign minHeader = include.h_min | default: 1 %}
58
+ {% assign maxHeader = include.h_max | default: 6 %}
59
+ {% assign beforeHeading = include.beforeHeading %}
60
+ {% assign headerAttrs = include.headerAttrs %}
61
+ {% assign nodes = include.html | split: '<h' %}
62
+
63
+ {% capture edited_headings %}{% endcapture %}
64
+
65
+ {% for _node in nodes %}
66
+ {% capture node %}{{ _node | strip }}{% endcapture %}
67
+
68
+ {% if node == "" %}
69
+ {% continue %}
70
+ {% endif %}
71
+
72
+ {% assign nextChar = node | replace: '"', '' | strip | slice: 0, 1 %}
73
+ {% assign headerLevel = nextChar | times: 1 %}
74
+
75
+ <!-- If the level is cast to 0, it means it's not a h1-h6 tag, so let's see if we need to fix it -->
76
+ {% if headerLevel == 0 %}
77
+ <!-- Split up the node based on closing angle brackets and get the first one. -->
78
+ {% assign firstChunk = node | split: '>' | first %}
79
+
80
+ <!-- If the first chunk does NOT contain a '<', that means we've broken another HTML tag that starts with 'h' -->
81
+ {% unless firstChunk contains '<' %}
82
+ {% capture node %}<h{{ node }}{% endcapture %}
83
+ {% endunless %}
84
+
85
+ {% capture edited_headings %}{{ edited_headings }}{{ node }}{% endcapture %}
86
+ {% continue %}
87
+ {% endif %}
88
+
89
+ {% capture _closingTag %}</h{{ headerLevel }}>{% endcapture %}
90
+ {% assign _workspace = node | split: _closingTag %}
91
+ {% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %}
92
+ {% assign header = _workspace[0] | replace: _hAttrToStrip, '' %}
93
+ {% assign escaped_header = header | strip_html | strip %}
94
+
95
+ {% assign _classWorkspace = _workspace[0] | split: 'class="' %}
96
+ {% assign _classWorkspace = _classWorkspace[1] | split: '"' %}
97
+ {% assign _html_class = _classWorkspace[0] %}
98
+
99
+ {% if _html_class contains "no_anchor" %}
100
+ {% assign skip_anchor = true %}
101
+ {% else %}
102
+ {% assign skip_anchor = false %}
103
+ {% endif %}
104
+
105
+ {% assign _idWorkspace = _workspace[0] | split: 'id="' %}
106
+ {% if _idWorkspace[1] %}
107
+ {% assign _idWorkspace = _idWorkspace[1] | split: '"' %}
108
+ {% assign html_id = _idWorkspace[0] %}
109
+ {% elsif include.generateId %}
110
+ <!-- If the header did not have an id we create one. -->
111
+ {% assign html_id = escaped_header | slugify %}
112
+ {% if html_id == "" %}
113
+ {% assign html_id = false %}
114
+ {% endif %}
115
+ {% capture headerAttrs %}{{ headerAttrs }} id="%html_id%"{% endcapture %}
116
+ {% endif %}
117
+
118
+ <!-- Build the anchor to inject for our heading -->
119
+ {% capture anchor %}{% endcapture %}
120
+
121
+ {% if skip_anchor == false and html_id and headerLevel >= minHeader and headerLevel <= maxHeader %}
122
+ {% if headerAttrs %}
123
+ {% capture _hAttrToStrip %}{{ _hAttrToStrip | split: '>' | first }} {{ headerAttrs | replace: '%heading%', escaped_header | replace: '%html_id%', html_id }}>{% endcapture %}
124
+ {% endif %}
125
+
126
+ {% capture anchor %}href="#{{ html_id }}"{% endcapture %}
127
+
128
+ {% if include.anchorClass %}
129
+ {% capture anchor %}{{ anchor }} class="{{ include.anchorClass }}"{% endcapture %}
130
+ {% endif %}
131
+
132
+ {% if include.anchorTitle %}
133
+ {% capture anchor %}{{ anchor }} title="{{ include.anchorTitle | replace: '%heading%', escaped_header }}"{% endcapture %}
134
+ {% endif %}
135
+
136
+ {% if include.anchorAttrs %}
137
+ {% capture anchor %}{{ anchor }} {{ include.anchorAttrs | replace: '%heading%', escaped_header | replace: '%html_id%', html_id }}{% endcapture %}
138
+ {% endif %}
139
+
140
+ {% capture anchor %}<a {{ anchor }}>{{ include.anchorBody | replace: '%heading%', escaped_header | default: '' }}</a>{% endcapture %}
141
+
142
+ <!-- In order to prevent adding extra space after a heading, we'll let the 'anchor' value contain it -->
143
+ {% if beforeHeading %}
144
+ {% capture anchor %}{{ anchor }} {% endcapture %}
145
+ {% else %}
146
+ {% capture anchor %} {{ anchor }}{% endcapture %}
147
+ {% endif %}
148
+ {% endif %}
149
+
150
+ {% capture new_heading %}
151
+ <h{{ _hAttrToStrip }}
152
+ {{ include.bodyPrefix }}
153
+ {% if beforeHeading %}
154
+ {{ anchor }}{{ header }}
155
+ {% else %}
156
+ {{ header }}{{ anchor }}
157
+ {% endif %}
158
+ {{ include.bodySuffix }}
159
+ </h{{ headerLevel }}>
160
+ {% endcapture %}
161
+
162
+ <!--
163
+ If we have content after the `</hX>` tag, then we'll want to append that here so we don't lost any content.
164
+ -->
165
+ {% assign chunkCount = _workspace | size %}
166
+ {% if chunkCount > 1 %}
167
+ {% capture new_heading %}{{ new_heading }}{{ _workspace | last }}{% endcapture %}
168
+ {% endif %}
169
+
170
+ {% capture edited_headings %}{{ edited_headings }}{{ new_heading }}{% endcapture %}
171
+ {% endfor %}
172
+ {% endcapture %}{% assign headingsWorkspace = '' %}{{ edited_headings | strip }}
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
@@ -0,0 +1,41 @@
1
+ ---
2
+ layout: table_wrappers
3
+ ---
4
+
5
+ <!DOCTYPE html>
6
+
7
+ <html lang="{{ site.lang | default: 'en-US' }}">
8
+ {% include head.html %}
9
+ <body>
10
+ <a class="skip-to-main" href="#main-content">Skip to main content</a>
11
+ {% include icons/icons.html %}
12
+ {% include components/sidebar.html %}
13
+ <div class="main" id="top">
14
+ {% include components/header.html %}
15
+ <div id="main-content-wrap" class="main-content-wrap">
16
+ {% include components/breadcrumbs.html %}
17
+ <div id="main-content" class="main-content" role="main">
18
+ {% if site.heading_anchors != false %}
19
+ {% 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" anchorAttrs="aria-labelledby=\"%html_id%\"" %}
20
+ {% else %}
21
+ {{ content }}
22
+ {% endif %}
23
+
24
+ {% if page.has_children == true and page.has_toc != false %}
25
+ {% include components/children_nav.html toc_list=toc_list %}
26
+ {% endif %}
27
+
28
+ {% include components/footer.html %}
29
+
30
+ </div>
31
+ </div>
32
+ {% if site.search_enabled != false %}
33
+ {% include components/search_footer.html %}
34
+ {% endif %}
35
+ </div>
36
+
37
+ {% if site.mermaid %}
38
+ {% include components/mermaid.html %}
39
+ {% endif %}
40
+ </body>
41
+ </html>
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
@@ -0,0 +1,60 @@
1
+ ---
2
+ layout: table_wrappers
3
+ ---
4
+
5
+ <!DOCTYPE html>
6
+
7
+ <html lang="{{ site.lang | default: 'en-US' }}">
8
+ {% include head.html %}
9
+ <body>
10
+ <a class="skip-to-main" href="#main-content">Skip to main content</a>
11
+ {% include icons/icons.html %}
12
+ {% comment %}
13
+ This is a bandaid fix to properly render breadcrumbs; as of now, there is some variable leakage between the sidebar component (which computes parents, grandparents) and the breadcrumbs component. We plan to remove this in a future release to deduplicate code.
14
+
15
+ For more context, see https://github.com/just-the-docs/just-the-docs/pull/1058#discussion_r1057014053
16
+ {% endcomment %}
17
+ {% capture nav %}
18
+ {% assign pages_top_size = site.html_pages
19
+ | where_exp:"item", "item.title != nil"
20
+ | where_exp:"item", "item.parent == nil"
21
+ | where_exp:"item", "item.nav_exclude != true"
22
+ | size %}
23
+ {% if pages_top_size > 0 %}
24
+ {% include nav.html pages=site.html_pages key=nil %}
25
+ {% endif %}
26
+ {% if site.just_the_hm_docs.collections %}
27
+ {% assign collections_size = site.just_the_hm_docs.collections | size %}
28
+ {% for collection_entry in site.just_the_hm_docs.collections %}
29
+ {% assign collection_key = collection_entry[0] %}
30
+ {% assign collection_value = collection_entry[1] %}
31
+ {% assign collection = site[collection_key] %}
32
+ {% if collection_value.nav_exclude != true %}
33
+ {% include nav.html pages=collection key=collection_key %}
34
+ {% endif %}
35
+ {% endfor %}
36
+ {% endif %}
37
+ {% endcapture %}
38
+ <div id="main-content-wrap" class="main-content-wrap" id="top">
39
+ {% include components/breadcrumbs.html %}
40
+ <div id="main-content" class="main-content" role="main">
41
+ {% if site.heading_anchors != false %}
42
+ {% 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" anchorAttrs="aria-labelledby=\"%html_id%\"" %}
43
+ {% else %}
44
+ {{ content }}
45
+ {% endif %}
46
+
47
+ {% if page.has_children == true and page.has_toc != false %}
48
+ {% include components/children_nav.html toc_list=toc_list %}
49
+ {% endif %}
50
+
51
+ {% include components/footer.html %}
52
+
53
+ </div>
54
+ </div>
55
+
56
+ {% if site.mermaid %}
57
+ {% include components/mermaid.html %}
58
+ {% endif %}
59
+ </body>
60
+ </html>
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: vendor/compress
3
+ ---
4
+
5
+ {% assign content_ = content | replace: '<table', '<div class="table-wrapper"><table' %}
6
+ {% assign content_ = content_ | replace: '</table>', '</table></div>' %}
7
+ {{ content_ }}
@@ -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 %}