just-the-docs 0.10.2 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6af67b1731acefa0c5c649b333b15d0e570c8e7e369d0b211a9be581a4669316
4
- data.tar.gz: '08ca00287ee526bcd6dc974dba9bd645964d52188f9bb90929774a7c6e7c2e0a'
3
+ metadata.gz: 147f77407afd5dfb821b06e557e7cde686b1069a73c6b84d641e175630e71ac4
4
+ data.tar.gz: 03db96ba647f58169f56dfafe2e1794e6b2ae83080acc4ecd75fd1a192f60bb6
5
5
  SHA512:
6
- metadata.gz: b94be55dc8646ee840ff09a72ff8fc46f4f8f3a66f405d959dd13523356237ba5b382a38710f7831ccc7dab9f1637da914db9a4799743ff9764ed9ee506a2d2b
7
- data.tar.gz: 875b2a10bba410a7157e4cc74d2a4f9613cd1c34510f87504d4b8464f5eaf6a41c62ace4f18c1c0ff6326e79adb6fbf1e7f1581be94a94b805a69076d109e4f6
6
+ metadata.gz: 369f9472d750b4aaf81adbac120338a55afe344ad46241fa81b5c187e9208ee9ee1243caf379b09bd7de896b0090d4162168cf44616e0e766539985984b78cb9
7
+ data.tar.gz: fff61dc85ca000f11019610ef9735b95dc9f9380e2445c5b141e3991349cc4ae418995035318f0034e148751831960d14db6f2c616c650dd0d296b902536c2d1
data/CHANGELOG.md CHANGED
@@ -24,6 +24,24 @@ Docs changes made since the latest release:
24
24
 
25
25
  - N/A
26
26
 
27
+ ## v0.11.0 - 2026-01-01
28
+
29
+ ### Theme
30
+
31
+ - Fixed: low-contrast syntax highlighting via `accessible-pygments` and harsher backgrounds by [@mattxwang](https://github.com/mattxwang) in [#1749](https://github.com/just-the-docs/just-the-docs/pull/1749)
32
+ - Fixed: callout body text color contrast by [@mattxwang](https://github.com/mattxwang) in [#1748](https://github.com/just-the-docs/just-the-docs/pull/1748)
33
+ - Fixed: button and label color contrast by [@mattxwang](https://github.com/mattxwang) in [#1750](https://github.com/just-the-docs/just-the-docs/pull/1750)
34
+ - Fixed: inability to focus on scrollable code blocks via keyboard navigation by [@mattxwang](https://github.com/mattxwang) in [#1533](https://github.com/just-the-docs/just-the-docs/pull/1533)
35
+ - Fixed: `.site-footer` focus order on `sm` (mobile) viewport by [@mattxwang](https://github.com/mattxwang) in [#1751](https://github.com/just-the-docs/just-the-docs/pull/1751)
36
+ - Fixed: color contrast between dark mode background and `$link-color` by [@mattxwang](https://github.com/mattxwang) in [#1752](https://github.com/just-the-docs/just-the-docs/pull/1752)
37
+ - Fixed: color contrast for selected `.nav-list-link` in light mode by [@mattxwang](https://github.com/mattxwang) in [#1753](https://github.com/just-the-docs/just-the-docs/pull/1753)
38
+ - Fixed: sidebar ARIA role (by including navigation) by [@mattxwang](https://github.com/mattxwang) in [#1754](https://github.com/just-the-docs/just-the-docs/pull/1754)
39
+ - Fixed: `footer_content`/`footer_custom` color contrast by [@mattxwang](https://github.com/mattxwang) in [#1755](https://github.com/just-the-docs/just-the-docs/pull/1755)
40
+
41
+ ### Documentation
42
+
43
+ - Added: aXe accessibility tests by [@cycomachead](https://github.com/cycomachead) in [#1756](https://github.com/just-the-docs/just-the-docs/pull/1756)
44
+
27
45
  ## v0.10.2 - 2025-12-31
28
46
 
29
47
  ### Theme
@@ -1,34 +1,49 @@
1
1
  {% capture footer_custom %}
2
2
  {%- include footer_custom.html -%}
3
3
  {% endcapture %}
4
- {% if footer_custom != "" or site.last_edit_timestamp or site.gh_edit_link or site.back_to_top %}
5
- <hr>
6
- <footer>
7
- {% if site.back_to_top %}
8
- <p><a href="#top" id="back-to-top">{{ site.back_to_top_text }}</a></p>
9
- {% endif %}
4
+ <hr>
5
+ <footer>
6
+ {% if site.back_to_top %}
7
+ <p><a href="#top" id="back-to-top">{{ site.back_to_top_text }}</a></p>
8
+ {% endif %}
9
+
10
+ {{ footer_custom }}
11
+
12
+ {% if site.last_edit_timestamp or site.gh_edit_link %}
13
+ <div class="d-flex mt-2">
14
+ {% if site.last_edit_timestamp and site.last_edit_time_format and page.last_modified_date %}
15
+ <p class="text-small mb-0 mr-2">
16
+ Page last modified: <span class="d-inline-block">{{ page.last_modified_date | date: site.last_edit_time_format }}</span>.
17
+ </p>
18
+ {% endif %}
19
+ {% if
20
+ site.gh_edit_link and
21
+ site.gh_edit_link_text and
22
+ site.gh_edit_repository and
23
+ site.gh_edit_branch and
24
+ site.gh_edit_view_mode
25
+ %}
26
+ <p class="text-small mb-0">
27
+ <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>
28
+ </p>
29
+ {% endif %}
30
+ </div>
31
+ {% endif %}
10
32
 
11
- {{ footer_custom }}
33
+ {%- comment -%}
34
+ note: nav_footer_custom and/or this "site footer" appear in components/sidebar.html for the desktop view.
35
+ {%- endcomment -%}
12
36
 
13
- {% if site.last_edit_timestamp or site.gh_edit_link %}
14
- <div class="d-flex mt-2">
15
- {% if site.last_edit_timestamp and site.last_edit_time_format and page.last_modified_date %}
16
- <p class="text-small text-grey-dk-000 mb-0 mr-2">
17
- Page last modified: <span class="d-inline-block">{{ page.last_modified_date | date: site.last_edit_time_format }}</span>.
18
- </p>
19
- {% endif %}
20
- {% if
21
- site.gh_edit_link and
22
- site.gh_edit_link_text and
23
- site.gh_edit_repository and
24
- site.gh_edit_branch and
25
- site.gh_edit_view_mode
26
- %}
27
- <p class="text-small text-grey-dk-000 mb-0">
28
- <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>
29
- </p>
30
- {% endif %}
37
+ <div class="d-sm-block d-md-none">
38
+ {% capture nav_footer_custom %}
39
+ {%- include nav_footer_custom.html -%}
40
+ {% endcapture %}
41
+ {% if nav_footer_custom != "" %}
42
+ {{ nav_footer_custom }}
43
+ {% else %}
44
+ <div class="mt-4 fs-2">
45
+ This site uses <a href="https://github.com/just-the-docs/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll.
31
46
  </div>
32
47
  {% endif %}
33
- </footer>
34
- {% endif %}
48
+ </div>
49
+ </footer>
@@ -9,8 +9,8 @@
9
9
  Should not be cached, because nav_footer_custom.html might depend on page.
10
10
  {%- endcomment -%}
11
11
 
12
- <div class="side-bar">
13
- <div class="site-header" role="banner">
12
+ <header class="side-bar">
13
+ <div class="site-header">
14
14
  <a href="{{ '/' | relative_url }}" class="site-title lh-tight">{% include title.html %}</a>
15
15
  <button id="menu-button" class="site-button btn-reset" aria-label="Menu" aria-expanded="false">
16
16
  <svg viewBox="0 0 24 24" class="icon" aria-hidden="true"><use xlink:href="#svg-menu"></use></svg>
@@ -19,14 +19,20 @@
19
19
 
20
20
  {% include_cached components/site_nav.html %}
21
21
 
22
+ {%- comment -%}
23
+ note: nav_footer_custom and/or this "site footer" appear in components/footer.html for the mobile view.
24
+ {%- endcomment -%}
25
+
26
+ <div class="d-md-block d-sm-none">
22
27
  {% capture nav_footer_custom %}
23
28
  {%- include nav_footer_custom.html -%}
24
29
  {% endcapture %}
25
30
  {% if nav_footer_custom != "" %}
26
31
  {{ nav_footer_custom }}
27
32
  {% else %}
28
- <footer class="site-footer">
33
+ <div class="site-footer">
29
34
  This site uses <a href="https://github.com/just-the-docs/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll.
30
- </footer>
35
+ </div>
31
36
  {% endif %}
32
- </div>
37
+ </div>
38
+ </header>
@@ -8,7 +8,7 @@
8
8
  {%- assign callout_color_hue = "300" -%}
9
9
  {%- if site.callouts_level == "loud" or include.color_scheme == "dark" and site.callouts_level != "quiet" -%}
10
10
  {%- assign callout_background_hue = "300" -%}
11
- {%- assign callout_color_hue = "000" -%}
11
+ {%- assign callout_color_hue = "300" -%}
12
12
  {%- endif -%}
13
13
 
14
14
  div.opaque {
@@ -17,10 +17,8 @@ div.opaque {
17
17
 
18
18
  {%- for callout in site.callouts %}
19
19
 
20
- {%- assign callout_opacity = callout[1].opacity | default: site.callouts_opacity | default: 0.2 -%}
21
-
22
20
  p.{{ callout[0] }}, blockquote.{{ callout[0] }} {
23
- background: rgba(${{ callout[1].color }}-{{ callout_background_hue }}, {{ callout_opacity }});
21
+ border: 1px ${{ callout[1].color }}-{{ callout_background_hue }} solid;
24
22
  border-left: $border-radius solid ${{ callout[1].color }}-{{ callout_color_hue }};
25
23
  border-radius: $border-radius;
26
24
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
@@ -47,7 +45,7 @@ p.{{ callout[0] }}, blockquote.{{ callout[0] }} {
47
45
  }
48
46
 
49
47
  p.{{ callout[0] }}-title, blockquote.{{ callout[0] }}-title {
50
- background: rgba(${{ callout[1].color }}-{{ callout_background_hue }}, {{ callout_opacity }});
48
+ border: 1px ${{ callout[1].color }}-{{ callout_background_hue }} solid;
51
49
  border-left: $border-radius solid ${{ callout[1].color }}-{{ callout_color_hue }};
52
50
  border-radius: $border-radius;
53
51
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
@@ -67,11 +65,11 @@ p.{{ callout[0] }}-title, blockquote.{{ callout[0] }}-title {
67
65
  blockquote.{{ callout[0] }} {
68
66
  margin-left: 0;
69
67
  margin-right: 0;
70
-
68
+
71
69
  > p:first-child {
72
70
  margin-top: 0;
73
71
  }
74
-
72
+
75
73
  > p:last-child {
76
74
  margin-bottom: 0;
77
75
  }
@@ -80,11 +78,11 @@ blockquote.{{ callout[0] }} {
80
78
  blockquote.{{ callout[0] }}-title {
81
79
  margin-left: 0;
82
80
  margin-right: 0;
83
-
81
+
84
82
  > p:nth-child(2) {
85
83
  margin-top: 0;
86
84
  }
87
-
85
+
88
86
  > p:last-child {
89
87
  margin-bottom: 0;
90
88
  }
@@ -1,3 +1,3 @@
1
1
  {%- if site.footer_content -%}
2
- <p class="text-small text-grey-dk-100 mb-0">{{ site.footer_content }}</p>
2
+ <p class="text-small mb-0">{{ site.footer_content }}</p>
3
3
  {%- endif -%}
data/_sass/buttons.scss CHANGED
@@ -109,11 +109,11 @@
109
109
  }
110
110
 
111
111
  .btn-blue {
112
- @include btn-color($white, $blue-000);
112
+ @include btn-color($white, $blue-200);
113
113
  }
114
114
 
115
115
  .btn-green {
116
- @include btn-color($white, $green-100);
116
+ @include btn-color($white, $green-300);
117
117
  }
118
118
 
119
119
  .btn-reset {
data/_sass/code.scss CHANGED
@@ -87,8 +87,9 @@ figure.highlight {
87
87
  position: absolute;
88
88
  top: 0;
89
89
  right: 0;
90
- border: $sp-3 solid $code-background-color;
91
- background-color: $code-background-color;
90
+ padding: $sp-3;
91
+ border: none;
92
+ background: none;
92
93
  color: $body-text-color;
93
94
  box-sizing: content-box;
94
95
 
@@ -104,6 +105,7 @@ figure.highlight {
104
105
 
105
106
  &:focus {
106
107
  opacity: 1;
108
+ outline: 2px solid $link-color;
107
109
  }
108
110
  }
109
111
 
@@ -124,7 +126,8 @@ figure.highlight {
124
126
  overflow-x: auto;
125
127
  padding: $sp-3;
126
128
  margin: 0;
127
- border: 0;
129
+ border: 1px solid $body-text-color;
130
+ border-radius: $border-radius;
128
131
  }
129
132
 
130
133
  #{$pre-select},
@@ -160,7 +163,8 @@ figure.highlight {
160
163
  overflow-x: auto;
161
164
  padding: $sp-3;
162
165
  margin: 0;
163
- border: 0;
166
+ border: 1px solid $body-text-color;
167
+ border-radius: $border-radius;
164
168
  }
165
169
  }
166
170
 
@@ -2,17 +2,17 @@ $color-scheme: dark;
2
2
  $body-background-color: $grey-dk-300;
3
3
  $body-heading-color: $grey-lt-000;
4
4
  $body-text-color: $grey-lt-300;
5
- $link-color: $blue-000;
5
+ $link-color: lighten($blue-000, 10%);
6
6
  $nav-child-link-color: $grey-dk-000;
7
7
  $sidebar-color: $grey-dk-300;
8
8
  $base-button-color: $grey-dk-250;
9
9
  $btn-primary-color: $blue-200;
10
- $code-background-color: #31343f; // OneDarkJekyll default for syntax-one-dark-vivid
11
- $code-linenumber-color: #dee2f7; // OneDarkJekyll .nf for syntax-one-dark-vivid
10
+ $code-background-color: #0d1117; // github-dark bg color
11
+ $code-linenumber-color: #e6edf3; // github-dark line number color
12
12
  $feedback-color: darken($sidebar-color, 3%);
13
13
  $table-background-color: $grey-dk-250;
14
14
  $search-background-color: $grey-dk-250;
15
15
  $search-result-preview-color: $grey-lt-300;
16
16
  $border-color: $grey-dk-200;
17
17
 
18
- @import "./vendor/OneDarkJekyll/syntax"; // this is the one-dark-vivid atom syntax theme
18
+ @import "./vendor/accessible-pygments/github-dark";
@@ -7,10 +7,10 @@ $nav-child-link-color: $grey-dk-100 !default;
7
7
  $sidebar-color: $grey-lt-000 !default;
8
8
  $base-button-color: #f7f7f7 !default;
9
9
  $btn-primary-color: $purple-100 !default;
10
- $code-background-color: $grey-lt-000 !default;
10
+ $code-background-color: $white !default;
11
11
  $feedback-color: darken($sidebar-color, 3%) !default;
12
12
  $table-background-color: $white !default;
13
13
  $search-background-color: $white !default;
14
14
  $search-result-preview-color: $grey-dk-100 !default;
15
15
 
16
- @import "./vendor/OneLightJekyll/syntax";
16
+ @import "./vendor/accessible-pygments/github-light";
data/_sass/labels.scss CHANGED
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  .label-green:not(g) {
23
- background-color: $green-200;
23
+ background-color: $green-300;
24
24
  }
25
25
 
26
26
  .label-purple:not(g) {
@@ -28,7 +28,7 @@
28
28
  }
29
29
 
30
30
  .label-red:not(g) {
31
- background-color: $red-200;
31
+ background-color: $red-300;
32
32
  }
33
33
 
34
34
  .label-yellow:not(g) {
data/_sass/layout.scss CHANGED
@@ -185,21 +185,6 @@
185
185
  );
186
186
  }
187
187
 
188
- // stylelint-disable selector-max-type
189
-
190
- body {
191
- position: relative;
192
- padding-bottom: $sp-10;
193
- overflow-y: scroll;
194
-
195
- @include mq(md) {
196
- position: static;
197
- padding-bottom: 0;
198
- }
199
- }
200
-
201
- // stylelint-enable selector-max-type
202
-
203
188
  .site-footer {
204
189
  position: absolute;
205
190
  bottom: 0;
@@ -56,6 +56,7 @@
56
56
 
57
57
  &:hover,
58
58
  &.active {
59
+ color: darken($link-color, 5%);
59
60
  background-image: linear-gradient(
60
61
  -90deg,
61
62
  rgba($feedback-color, 1) 0%,
@@ -0,0 +1,59 @@
1
+ # accessible-pygments
2
+
3
+ BSD 3-Clause License
4
+
5
+ Copyright (c) 2022, Quansight Labs
6
+ All rights reserved.
7
+
8
+ Redistribution and use in source and binary forms, with or without
9
+ modification, are permitted provided that the following conditions are met:
10
+
11
+ 1. Redistributions of source code must retain the above copyright notice, this
12
+ list of conditions and the following disclaimer.
13
+
14
+ 2. Redistributions in binary form must reproduce the above copyright notice,
15
+ this list of conditions and the following disclaimer in the documentation
16
+ and/or other materials provided with the distribution.
17
+
18
+ 3. Neither the name of the copyright holder nor the names of its
19
+ contributors may be used to endorse or promote products derived from
20
+ this software without specific prior written permission.
21
+
22
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
26
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
+
33
+ # pygments
34
+
35
+ Copyright (c) 2006-2022 by the respective authors (see AUTHORS file).
36
+ All rights reserved.
37
+
38
+ Redistribution and use in source and binary forms, with or without
39
+ modification, are permitted provided that the following conditions are
40
+ met:
41
+
42
+ * Redistributions of source code must retain the above copyright
43
+ notice, this list of conditions and the following disclaimer.
44
+
45
+ * Redistributions in binary form must reproduce the above copyright
46
+ notice, this list of conditions and the following disclaimer in the
47
+ documentation and/or other materials provided with the distribution.
48
+
49
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
50
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
51
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
52
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
53
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
54
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
55
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
56
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
57
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
58
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
59
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,7 @@
1
+ # accessible-pygments
2
+
3
+ [`accessible-pygments`](https://github.com/Quansight-Labs/accessible-pygments/tree/main) is a project that implements accessible syntax highlighting themes for pygments. Just the Docs packages two (S)CSS versions of their themes: github-light and github-dark.
4
+
5
+ The project is released under the BSD 3-Clause, which is both enclosed in this directory and available in [the original accessible-pygments repository](https://github.com/Quansight-Labs/accessible-pygments/blob/main/LICENSE).
6
+
7
+ Note that accessible-pygments is generated with [pygments](https://github.com/pygments/pygments), which is licensed under the BSD 2-Clause License. That license is also enclosed in this directory and available in [the original pygments repository](https://github.com/pygments/pygments/blob/master/LICENSE).
@@ -0,0 +1,91 @@
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: #6e7681 }
12
+ .highlight { background: #0d1117; color: #E6EDF3 }
13
+ .highlight .c { color: #8B949E; font-style: italic } /* Comment */
14
+ .highlight .err { color: #F85149 } /* Error */
15
+ .highlight .esc { color: #E6EDF3 } /* Escape */
16
+ .highlight .g { color: #E6EDF3 } /* Generic */
17
+ .highlight .k { color: #FF7B72 } /* Keyword */
18
+ .highlight .l { color: #A5D6FF } /* Literal */
19
+ .highlight .n { color: #E6EDF3 } /* Name */
20
+ .highlight .o { color: #FF7B72; font-weight: bold } /* Operator */
21
+ .highlight .x { color: #E6EDF3 } /* Other */
22
+ .highlight .p { color: #E6EDF3 } /* Punctuation */
23
+ .highlight .ch { color: #8B949E; font-style: italic } /* Comment.Hashbang */
24
+ .highlight .cm { color: #8B949E; font-style: italic } /* Comment.Multiline */
25
+ .highlight .cp { color: #8B949E; font-weight: bold; font-style: italic } /* Comment.Preproc */
26
+ .highlight .cpf { color: #8B949E; font-style: italic } /* Comment.PreprocFile */
27
+ .highlight .c1 { color: #8B949E; font-style: italic } /* Comment.Single */
28
+ .highlight .cs { color: #8B949E; font-weight: bold; font-style: italic } /* Comment.Special */
29
+ .highlight .gd { color: #FFA198; background-color: #490202 } /* Generic.Deleted */
30
+ .highlight .ge { color: #E6EDF3; font-style: italic } /* Generic.Emph */
31
+ .highlight .ges { color: #E6EDF3; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
32
+ .highlight .gr { color: #FFA198 } /* Generic.Error */
33
+ .highlight .gh { color: #79C0FF; font-weight: bold } /* Generic.Heading */
34
+ .highlight .gi { color: #56D364; background-color: #0F5323 } /* Generic.Inserted */
35
+ .highlight .go { color: #8B949E } /* Generic.Output */
36
+ .highlight .gp { color: #8B949E } /* Generic.Prompt */
37
+ .highlight .gs { color: #E6EDF3; font-weight: bold } /* Generic.Strong */
38
+ .highlight .gu { color: #79C0FF } /* Generic.Subheading */
39
+ .highlight .gt { color: #FF7B72 } /* Generic.Traceback */
40
+ .highlight .g-Underline { color: #E6EDF3; text-decoration: underline } /* Generic.Underline */
41
+ .highlight .kc { color: #79C0FF } /* Keyword.Constant */
42
+ .highlight .kd { color: #FF7B72 } /* Keyword.Declaration */
43
+ .highlight .kn { color: #FF7B72 } /* Keyword.Namespace */
44
+ .highlight .kp { color: #79C0FF } /* Keyword.Pseudo */
45
+ .highlight .kr { color: #FF7B72 } /* Keyword.Reserved */
46
+ .highlight .kt { color: #FF7B72 } /* Keyword.Type */
47
+ .highlight .ld { color: #79C0FF } /* Literal.Date */
48
+ .highlight .m { color: #A5D6FF } /* Literal.Number */
49
+ .highlight .s { color: #A5D6FF } /* Literal.String */
50
+ .highlight .na { color: #E6EDF3 } /* Name.Attribute */
51
+ .highlight .nb { color: #E6EDF3 } /* Name.Builtin */
52
+ .highlight .nc { color: #F0883E; font-weight: bold } /* Name.Class */
53
+ .highlight .no { color: #79C0FF; font-weight: bold } /* Name.Constant */
54
+ .highlight .nd { color: #D2A8FF; font-weight: bold } /* Name.Decorator */
55
+ .highlight .ni { color: #FFA657 } /* Name.Entity */
56
+ .highlight .ne { color: #F0883E; font-weight: bold } /* Name.Exception */
57
+ .highlight .nf { color: #D2A8FF; font-weight: bold } /* Name.Function */
58
+ .highlight .nl { color: #79C0FF; font-weight: bold } /* Name.Label */
59
+ .highlight .nn { color: #FF7B72 } /* Name.Namespace */
60
+ .highlight .nx { color: #E6EDF3 } /* Name.Other */
61
+ .highlight .py { color: #79C0FF } /* Name.Property */
62
+ .highlight .nt { color: #7EE787 } /* Name.Tag */
63
+ .highlight .nv { color: #79C0FF } /* Name.Variable */
64
+ .highlight .ow { color: #FF7B72; font-weight: bold } /* Operator.Word */
65
+ .highlight .pm { color: #E6EDF3 } /* Punctuation.Marker */
66
+ .highlight .w { color: #6E7681 } /* Text.Whitespace */
67
+ .highlight .mb { color: #A5D6FF } /* Literal.Number.Bin */
68
+ .highlight .mf { color: #A5D6FF } /* Literal.Number.Float */
69
+ .highlight .mh { color: #A5D6FF } /* Literal.Number.Hex */
70
+ .highlight .mi { color: #A5D6FF } /* Literal.Number.Integer */
71
+ .highlight .mo { color: #A5D6FF } /* Literal.Number.Oct */
72
+ .highlight .sa { color: #79C0FF } /* Literal.String.Affix */
73
+ .highlight .sb { color: #A5D6FF } /* Literal.String.Backtick */
74
+ .highlight .sc { color: #A5D6FF } /* Literal.String.Char */
75
+ .highlight .dl { color: #79C0FF } /* Literal.String.Delimiter */
76
+ .highlight .sd { color: #A5D6FF } /* Literal.String.Doc */
77
+ .highlight .s2 { color: #A5D6FF } /* Literal.String.Double */
78
+ .highlight .se { color: #79C0FF } /* Literal.String.Escape */
79
+ .highlight .sh { color: #79C0FF } /* Literal.String.Heredoc */
80
+ .highlight .si { color: #A5D6FF } /* Literal.String.Interpol */
81
+ .highlight .sx { color: #A5D6FF } /* Literal.String.Other */
82
+ .highlight .sr { color: #79C0FF } /* Literal.String.Regex */
83
+ .highlight .s1 { color: #A5D6FF } /* Literal.String.Single */
84
+ .highlight .ss { color: #A5D6FF } /* Literal.String.Symbol */
85
+ .highlight .bp { color: #E6EDF3 } /* Name.Builtin.Pseudo */
86
+ .highlight .fm { color: #D2A8FF; font-weight: bold } /* Name.Function.Magic */
87
+ .highlight .vc { color: #79C0FF } /* Name.Variable.Class */
88
+ .highlight .vg { color: #79C0FF } /* Name.Variable.Global */
89
+ .highlight .vi { color: #79C0FF } /* Name.Variable.Instance */
90
+ .highlight .vm { color: #79C0FF } /* Name.Variable.Magic */
91
+ .highlight .il { color: #A5D6FF } /* Literal.Number.Integer.Long */
@@ -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 */
@@ -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.2
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Marsceill
@@ -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