just-the-docs 0.10.1 → 0.11.0

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.
@@ -0,0 +1,81 @@
1
+ /*
2
+ generated by accessible-pygments <https://github.com/Quansight-Labs/accessible-pygments>
3
+ Copyright (c) 2022, Quansight Labs
4
+ Licensed under the BSD license, see LICENSE for details.
5
+ --
6
+ generated by Pygments <https://pygments.org/>
7
+ Copyright 2006-2025 by the Pygments team.
8
+ Licensed under the BSD license, see LICENSE for details.
9
+ */
10
+
11
+ .highlight .hll { background-color: #0969da4a }
12
+ .highlight .c { color: #6E7781 } /* Comment */
13
+ .highlight .err { color: #CF222E } /* Error */
14
+ .highlight .k { color: #CF222E } /* Keyword */
15
+ .highlight .l { color: #953800 } /* Literal */
16
+ .highlight .n { color: #8250DF } /* Name */
17
+ .highlight .o { color: #116329 } /* Operator */
18
+ .highlight .p { color: #24292F } /* Punctuation */
19
+ .highlight .ch { color: #6E7781 } /* Comment.Hashbang */
20
+ .highlight .cm { color: #6E7781 } /* Comment.Multiline */
21
+ .highlight .cp { color: #6E7781 } /* Comment.Preproc */
22
+ .highlight .cpf { color: #6E7781 } /* Comment.PreprocFile */
23
+ .highlight .c1 { color: #6E7781 } /* Comment.Single */
24
+ .highlight .cs { color: #6E7781 } /* Comment.Special */
25
+ .highlight .gd { color: #0550AE } /* Generic.Deleted */
26
+ .highlight .ge { font-style: italic } /* Generic.Emph */
27
+ .highlight .gr { color: #CF222E } /* Generic.Error */
28
+ .highlight .gh { color: #0550AE } /* Generic.Heading */
29
+ .highlight .gs { font-weight: bold } /* Generic.Strong */
30
+ .highlight .gu { color: #0550AE } /* Generic.Subheading */
31
+ .highlight .kc { color: #0550AE } /* Keyword.Constant */
32
+ .highlight .kd { color: #CF222E } /* Keyword.Declaration */
33
+ .highlight .kn { color: #CF222E } /* Keyword.Namespace */
34
+ .highlight .kp { color: #CF222E } /* Keyword.Pseudo */
35
+ .highlight .kr { color: #CF222E } /* Keyword.Reserved */
36
+ .highlight .kt { color: #CF222E } /* Keyword.Type */
37
+ .highlight .ld { color: #953800 } /* Literal.Date */
38
+ .highlight .m { color: #953800 } /* Literal.Number */
39
+ .highlight .s { color: #0550AE } /* Literal.String */
40
+ .highlight .na { color: #953800 } /* Name.Attribute */
41
+ .highlight .nb { color: #953800 } /* Name.Builtin */
42
+ .highlight .nc { color: #0550AE } /* Name.Class */
43
+ .highlight .no { color: #0550AE } /* Name.Constant */
44
+ .highlight .nd { color: #953800 } /* Name.Decorator */
45
+ .highlight .ni { color: #116329 } /* Name.Entity */
46
+ .highlight .ne { color: #8250DF } /* Name.Exception */
47
+ .highlight .nf { color: #0550AE } /* Name.Function */
48
+ .highlight .nl { color: #953800 } /* Name.Label */
49
+ .highlight .nn { color: #24292F } /* Name.Namespace */
50
+ .highlight .nx { color: #8250DF } /* Name.Other */
51
+ .highlight .py { color: #0550AE } /* Name.Property */
52
+ .highlight .nt { color: #116329 } /* Name.Tag */
53
+ .highlight .nv { color: #953800 } /* Name.Variable */
54
+ .highlight .ow { color: #8250DF } /* Operator.Word */
55
+ .highlight .pm { color: #24292F } /* Punctuation.Marker */
56
+ .highlight .w { color: #24292F } /* Text.Whitespace */
57
+ .highlight .mb { color: #953800 } /* Literal.Number.Bin */
58
+ .highlight .mf { color: #953800 } /* Literal.Number.Float */
59
+ .highlight .mh { color: #953800 } /* Literal.Number.Hex */
60
+ .highlight .mi { color: #953800 } /* Literal.Number.Integer */
61
+ .highlight .mo { color: #953800 } /* Literal.Number.Oct */
62
+ .highlight .sa { color: #0550AE } /* Literal.String.Affix */
63
+ .highlight .sb { color: #0550AE } /* Literal.String.Backtick */
64
+ .highlight .sc { color: #0550AE } /* Literal.String.Char */
65
+ .highlight .dl { color: #0550AE } /* Literal.String.Delimiter */
66
+ .highlight .sd { color: #0550AE } /* Literal.String.Doc */
67
+ .highlight .s2 { color: #0550AE } /* Literal.String.Double */
68
+ .highlight .se { color: #0550AE } /* Literal.String.Escape */
69
+ .highlight .sh { color: #0550AE } /* Literal.String.Heredoc */
70
+ .highlight .si { color: #0550AE } /* Literal.String.Interpol */
71
+ .highlight .sx { color: #0550AE } /* Literal.String.Other */
72
+ .highlight .sr { color: #0550AE } /* Literal.String.Regex */
73
+ .highlight .s1 { color: #0550AE } /* Literal.String.Single */
74
+ .highlight .ss { color: #0550AE } /* Literal.String.Symbol */
75
+ .highlight .bp { color: #953800 } /* Name.Builtin.Pseudo */
76
+ .highlight .fm { color: #0550AE } /* Name.Function.Magic */
77
+ .highlight .vc { color: #953800 } /* Name.Variable.Class */
78
+ .highlight .vg { color: #953800 } /* Name.Variable.Global */
79
+ .highlight .vi { color: #953800 } /* Name.Variable.Instance */
80
+ .highlight .vm { color: #953800 } /* Name.Variable.Magic */
81
+ .highlight .il { color: #953800 } /* Literal.Number.Integer.Long */
@@ -32,7 +32,7 @@ function initNav() {
32
32
  }
33
33
  if (target) {
34
34
  e.preventDefault();
35
- target.ariaPressed = target.parentNode.classList.toggle('active');
35
+ target.ariaExpanded = target.parentNode.classList.toggle('active');
36
36
  }
37
37
  });
38
38
 
@@ -48,11 +48,11 @@ function initNav() {
48
48
  if (menuButton.classList.toggle('nav-open')) {
49
49
  siteNav.classList.add('nav-open');
50
50
  mainHeader.classList.add('nav-open');
51
- menuButton.ariaPressed = true;
51
+ menuButton.ariaExpanded = true;
52
52
  } else {
53
53
  siteNav.classList.remove('nav-open');
54
54
  mainHeader.classList.remove('nav-open');
55
- menuButton.ariaPressed = false;
55
+ menuButton.ariaExpanded = false;
56
56
  }
57
57
  });
58
58
 
@@ -258,7 +258,7 @@ function searchLoaded(index, docs) {
258
258
  // note: the SVG svg-doc is only loaded as a Jekyll include if site.search_enabled is true; see _includes/icons/icons.html
259
259
  var resultDoc = document.createElement('div');
260
260
  resultDoc.classList.add('search-result-doc');
261
- resultDoc.innerHTML = '<svg viewBox="0 0 24 24" class="search-result-icon"><use xlink:href="#svg-doc"></use></svg>';
261
+ resultDoc.innerHTML = '<svg viewBox="0 0 24 24" class="search-result-icon" aria-hidden="true"><use xlink:href="#svg-doc"></use></svg>';
262
262
  resultTitle.appendChild(resultDoc);
263
263
 
264
264
  var resultDocTitle = document.createElement('div');
@@ -566,8 +566,17 @@ jtd.onReady(function(){
566
566
  {%- endif %}
567
567
  });
568
568
 
569
- // Copy button on code
569
+ // Accessibility: set tabindex=0 on each code highlight block, so screenreaders
570
+ // can focus over (particularly important if there's horizontal scroll)
571
+ // see: https://dequeuniversity.com/rules/axe/4.9/scrollable-region-focusable?application=axeAPI
572
+
573
+ jtd.onReady(() => {
574
+ document
575
+ .querySelectorAll("div.highlight")
576
+ .forEach(codeBlock => codeBlock.setAttribute("tabindex", "0"));
577
+ });
570
578
 
579
+ // Copy button on code
571
580
 
572
581
  {%- if site.enable_copy_code_button != false %}
573
582
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: just-the-docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Marsceill
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-01-06 00:00:00.000000000 Z
12
+ date: 2026-01-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -147,7 +147,6 @@ files:
147
147
  - _sass/buttons.scss
148
148
  - _sass/code.scss
149
149
  - _sass/color_schemes/dark.scss
150
- - _sass/color_schemes/legacy_light.scss
151
150
  - _sass/color_schemes/light.scss
152
151
  - _sass/content.scss
153
152
  - _sass/custom/custom.scss
@@ -173,10 +172,10 @@ files:
173
172
  - _sass/utilities/_spacing.scss
174
173
  - _sass/utilities/_typography.scss
175
174
  - _sass/utilities/utilities.scss
176
- - _sass/vendor/OneDarkJekyll/LICENSE
177
- - _sass/vendor/OneDarkJekyll/syntax.scss
178
- - _sass/vendor/OneLightJekyll/LICENSE
179
- - _sass/vendor/OneLightJekyll/syntax.scss
175
+ - _sass/vendor/accessible-pygments/LICENSE
176
+ - _sass/vendor/accessible-pygments/README.md
177
+ - _sass/vendor/accessible-pygments/github-dark.scss
178
+ - _sass/vendor/accessible-pygments/github-light.scss
180
179
  - _sass/vendor/normalize.scss/README.md
181
180
  - _sass/vendor/normalize.scss/normalize.scss
182
181
  - assets/css/just-the-docs-dark.scss
@@ -212,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
211
  - !ruby/object:Gem::Version
213
212
  version: '0'
214
213
  requirements: []
215
- rubygems_version: 3.5.11
214
+ rubygems_version: 3.5.22
216
215
  signing_key:
217
216
  specification_version: 4
218
217
  summary: A modern, highly customizable, and responsive Jekyll theme for documentation
@@ -1,208 +0,0 @@
1
- // Moved from _sass/code.scss
2
-
3
- .highlight .c {
4
- color: #586e75;
5
- } // comment //
6
- .highlight .err {
7
- color: #93a1a1;
8
- } // error //
9
- .highlight .g {
10
- color: #93a1a1;
11
- } // generic //
12
- .highlight .k {
13
- color: #859900;
14
- } // keyword //
15
- .highlight .l {
16
- color: #93a1a1;
17
- } // literal //
18
- .highlight .n {
19
- color: #93a1a1;
20
- } // name //
21
- .highlight .o {
22
- color: #859900;
23
- } // operator //
24
- .highlight .x {
25
- color: #cb4b16;
26
- } // other //
27
- .highlight .p {
28
- color: #93a1a1;
29
- } // punctuation //
30
- .highlight .cm {
31
- color: #586e75;
32
- } // comment.multiline //
33
- .highlight .cp {
34
- color: #859900;
35
- } // comment.preproc //
36
- .highlight .c1 {
37
- color: #586e75;
38
- } // comment.single //
39
- .highlight .cs {
40
- color: #859900;
41
- } // comment.special //
42
- .highlight .gd {
43
- color: #2aa198;
44
- } // generic.deleted //
45
- .highlight .ge {
46
- font-style: italic;
47
- color: #93a1a1;
48
- } // generic.emph //
49
- .highlight .gr {
50
- color: #dc322f;
51
- } // generic.error //
52
- .highlight .gh {
53
- color: #cb4b16;
54
- } // generic.heading //
55
- .highlight .gi {
56
- color: #859900;
57
- } // generic.inserted //
58
- .highlight .go {
59
- color: #93a1a1;
60
- } // generic.output //
61
- .highlight .gp {
62
- color: #93a1a1;
63
- } // generic.prompt //
64
- .highlight .gs {
65
- font-weight: bold;
66
- color: #93a1a1;
67
- } // generic.strong //
68
- .highlight .gu {
69
- color: #cb4b16;
70
- } // generic.subheading //
71
- .highlight .gt {
72
- color: #93a1a1;
73
- } // generic.traceback //
74
- .highlight .kc {
75
- color: #cb4b16;
76
- } // keyword.constant //
77
- .highlight .kd {
78
- color: #268bd2;
79
- } // keyword.declaration //
80
- .highlight .kn {
81
- color: #859900;
82
- } // keyword.namespace //
83
- .highlight .kp {
84
- color: #859900;
85
- } // keyword.pseudo //
86
- .highlight .kr {
87
- color: #268bd2;
88
- } // keyword.reserved //
89
- .highlight .kt {
90
- color: #dc322f;
91
- } // keyword.type //
92
- .highlight .ld {
93
- color: #93a1a1;
94
- } // literal.date //
95
- .highlight .m {
96
- color: #2aa198;
97
- } // literal.number //
98
- .highlight .s {
99
- color: #2aa198;
100
- } // literal.string //
101
- .highlight .na {
102
- color: #555;
103
- } // name.attribute //
104
- .highlight .nb {
105
- color: #b58900;
106
- } // name.builtin //
107
- .highlight .nc {
108
- color: #268bd2;
109
- } // name.class //
110
- .highlight .no {
111
- color: #cb4b16;
112
- } // name.constant //
113
- .highlight .nd {
114
- color: #268bd2;
115
- } // name.decorator //
116
- .highlight .ni {
117
- color: #cb4b16;
118
- } // name.entity //
119
- .highlight .ne {
120
- color: #cb4b16;
121
- } // name.exception //
122
- .highlight .nf {
123
- color: #268bd2;
124
- } // name.function //
125
- .highlight .nl {
126
- color: #555;
127
- } // name.label //
128
- .highlight .nn {
129
- color: #93a1a1;
130
- } // name.namespace //
131
- .highlight .nx {
132
- color: #555;
133
- } // name.other //
134
- .highlight .py {
135
- color: #93a1a1;
136
- } // name.property //
137
- .highlight .nt {
138
- color: #268bd2;
139
- } // name.tag //
140
- .highlight .nv {
141
- color: #268bd2;
142
- } // name.variable //
143
- .highlight .ow {
144
- color: #859900;
145
- } // operator.word //
146
- .highlight .w {
147
- color: #93a1a1;
148
- } // text.whitespace //
149
- .highlight .mf {
150
- color: #2aa198;
151
- } // literal.number.float //
152
- .highlight .mh {
153
- color: #2aa198;
154
- } // literal.number.hex //
155
- .highlight .mi {
156
- color: #2aa198;
157
- } // literal.number.integer //
158
- .highlight .mo {
159
- color: #2aa198;
160
- } // literal.number.oct //
161
- .highlight .sb {
162
- color: #586e75;
163
- } // literal.string.backtick //
164
- .highlight .sc {
165
- color: #2aa198;
166
- } // literal.string.char //
167
- .highlight .sd {
168
- color: #93a1a1;
169
- } // literal.string.doc //
170
- .highlight .s2 {
171
- color: #2aa198;
172
- } // literal.string.double //
173
- .highlight .se {
174
- color: #cb4b16;
175
- } // literal.string.escape //
176
- .highlight .sh {
177
- color: #93a1a1;
178
- } // literal.string.heredoc //
179
- .highlight .si {
180
- color: #2aa198;
181
- } // literal.string.interpol //
182
- .highlight .sx {
183
- color: #2aa198;
184
- } // literal.string.other //
185
- .highlight .sr {
186
- color: #dc322f;
187
- } // literal.string.regex //
188
- .highlight .s1 {
189
- color: #2aa198;
190
- } // literal.string.single //
191
- .highlight .ss {
192
- color: #2aa198;
193
- } // literal.string.symbol //
194
- .highlight .bp {
195
- color: #268bd2;
196
- } // name.builtin.pseudo //
197
- .highlight .vc {
198
- color: #268bd2;
199
- } // name.variable.class //
200
- .highlight .vg {
201
- color: #268bd2;
202
- } // name.variable.global //
203
- .highlight .vi {
204
- color: #268bd2;
205
- } // name.variable.instance //
206
- .highlight .il {
207
- color: #2aa198;
208
- } // literal.number.integer.long //
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2016 Mihály Gyöngyösi
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,265 +0,0 @@
1
- // Generated with OneDarkJekyll applied to Atom's One Dark Vivid theme
2
-
3
- .highlight,
4
- pre.highlight {
5
- background: #31343f;
6
- color: #dee2f7;
7
- }
8
-
9
- .highlight pre {
10
- background: #31343f;
11
- }
12
-
13
- .highlight .hll {
14
- background: #31343f;
15
- }
16
-
17
- .highlight .c {
18
- color: #63677e;
19
- font-style: italic;
20
- }
21
-
22
- .highlight .err {
23
- color: #960050;
24
- background-color: #1e0010;
25
- }
26
-
27
- .highlight .k {
28
- color: #e19ef5;
29
- }
30
-
31
- .highlight .l {
32
- color: #a3eea0;
33
- }
34
-
35
- .highlight .n {
36
- color: #dee2f7;
37
- }
38
-
39
- .highlight .o {
40
- color: #dee2f7;
41
- }
42
-
43
- .highlight .p {
44
- color: #dee2f7;
45
- }
46
-
47
- .highlight .cm {
48
- color: #63677e;
49
- font-style: italic;
50
- }
51
-
52
- .highlight .cp {
53
- color: #63677e;
54
- font-style: italic;
55
- }
56
-
57
- .highlight .c1 {
58
- color: #63677e;
59
- font-style: italic;
60
- }
61
-
62
- .highlight .cs {
63
- color: #63677e;
64
- font-style: italic;
65
- }
66
-
67
- .highlight .ge {
68
- font-style: italic;
69
- }
70
-
71
- .highlight .gs {
72
- font-weight: 700;
73
- }
74
-
75
- .highlight .kc {
76
- color: #e19ef5;
77
- }
78
-
79
- .highlight .kd {
80
- color: #e19ef5;
81
- }
82
-
83
- .highlight .kn {
84
- color: #e19ef5;
85
- }
86
-
87
- .highlight .kp {
88
- color: #e19ef5;
89
- }
90
-
91
- .highlight .kr {
92
- color: #e19ef5;
93
- }
94
-
95
- .highlight .kt {
96
- color: #e19ef5;
97
- }
98
-
99
- .highlight .ld {
100
- color: #a3eea0;
101
- }
102
-
103
- .highlight .m {
104
- color: #eddc96;
105
- }
106
-
107
- .highlight .s {
108
- color: #a3eea0;
109
- }
110
-
111
- .highlight .na {
112
- color: #eddc96;
113
- }
114
-
115
- .highlight .nb {
116
- color: #fdce68;
117
- }
118
-
119
- .highlight .nc {
120
- color: #fdce68;
121
- }
122
-
123
- .highlight .no {
124
- color: #fdce68;
125
- }
126
-
127
- .highlight .nd {
128
- color: #fdce68;
129
- }
130
-
131
- .highlight .ni {
132
- color: #fdce68;
133
- }
134
-
135
- .highlight .ne {
136
- color: #fdce68;
137
- }
138
-
139
- .highlight .nf {
140
- color: #dee2f7;
141
- }
142
-
143
- .highlight .nl {
144
- color: #fdce68;
145
- }
146
-
147
- .highlight .nn {
148
- color: #dee2f7;
149
- }
150
-
151
- .highlight .nx {
152
- color: #dee2f7;
153
- }
154
-
155
- .highlight .py {
156
- color: #fdce68;
157
- }
158
-
159
- .highlight .nt {
160
- color: #f9867b;
161
- }
162
-
163
- .highlight .nv {
164
- color: #fdce68;
165
- }
166
-
167
- .highlight .ow {
168
- font-weight: 700;
169
- }
170
-
171
- .highlight .w {
172
- color: #f8f8f2;
173
- }
174
-
175
- .highlight .mf {
176
- color: #eddc96;
177
- }
178
-
179
- .highlight .mh {
180
- color: #eddc96;
181
- }
182
-
183
- .highlight .mi {
184
- color: #eddc96;
185
- }
186
-
187
- .highlight .mo {
188
- color: #eddc96;
189
- }
190
-
191
- .highlight .sb {
192
- color: #a3eea0;
193
- }
194
-
195
- .highlight .sc {
196
- color: #a3eea0;
197
- }
198
-
199
- .highlight .sd {
200
- color: #a3eea0;
201
- }
202
-
203
- .highlight .s2 {
204
- color: #a3eea0;
205
- }
206
-
207
- .highlight .se {
208
- color: #a3eea0;
209
- }
210
-
211
- .highlight .sh {
212
- color: #a3eea0;
213
- }
214
-
215
- .highlight .si {
216
- color: #a3eea0;
217
- }
218
-
219
- .highlight .sx {
220
- color: #a3eea0;
221
- }
222
-
223
- .highlight .sr {
224
- color: #7be2f9;
225
- }
226
-
227
- .highlight .s1 {
228
- color: #a3eea0;
229
- }
230
-
231
- .highlight .ss {
232
- color: #7be2f9;
233
- }
234
-
235
- .highlight .bp {
236
- color: #fdce68;
237
- }
238
-
239
- .highlight .vc {
240
- color: #fdce68;
241
- }
242
-
243
- .highlight .vg {
244
- color: #fdce68;
245
- }
246
-
247
- .highlight .vi {
248
- color: #f9867b;
249
- }
250
-
251
- .highlight .il {
252
- color: #eddc96;
253
- }
254
-
255
- .highlight .gu {
256
- color: #75715e;
257
- }
258
-
259
- .highlight .gd {
260
- color: #f92672;
261
- }
262
-
263
- .highlight .gi {
264
- color: #a6e22e;
265
- }