just-the-docs 0.11.1 → 0.11.2

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: b296b656da46282854bd74aaffe42ff320dc7ff2c1743f7d6f27620be411f699
4
- data.tar.gz: 63da1a282c3a864faa479764191f12397916b035b8f09fe486e2d3c437924882
3
+ metadata.gz: 61e4056b5ae32ff59dc3bba0a6b8cb172f16ab2c4ea24edac2c8461bbea57e80
4
+ data.tar.gz: b3ec9e9c999d87c65a66709625a1921b983d495f90f95ceff0fbbdb4e6e9b799
5
5
  SHA512:
6
- metadata.gz: d718cd6771f1d60d277f3f9e28988f15e3243756641e78248ac7afadb0ce8c5a2d6fae8466f2a8bf8c5ff17fd68b28a8a7c780fa3acd200d548e1cf35ed44dfd
7
- data.tar.gz: 693ce50e3aa198b32a2677aeb39bcbe686722a6ab8a69df33b44ad982bc90f929ac9f86d066c95dfc18b91fefb05d9379a728b57917b1057ef00ad61b552c21c
6
+ metadata.gz: 5f4c1d66792b00c3499df1f3643c31f6de5a140a04867b519d20c236ec717e56468df6de3bc26444b259177c7c37057dbd232517b617d3b2bb76fe9102a6918e
7
+ data.tar.gz: 0babdc149600cd7a1d3e22f94030436105cac9b8902b37a507df7ad9bcba881d6c14cdb012ab6003807941d1a4723aca9473988b89386e8496cdb097094b5b73
data/CHANGELOG.md CHANGED
@@ -24,11 +24,22 @@ Docs changes made since the latest release:
24
24
 
25
25
  - N/A
26
26
 
27
+ ## v0.11.2 - 2026-01-23
28
+
29
+ ### Theme
30
+
31
+ - Fixed: incorrect behaviour of `nav_footer` *below* `xs` viewport by [@mattxwang](https://github.com/mattxwang) in [#1760](https://github.com/just-the-docs/just-the-docs/pull/1760)
32
+ - Fixed: usage of deprecated css properties (`word-wrap`, `clip`) and values (`appearance: button`) by [@mattxwang](https://github.com/mattxwang) in [#1761](https://github.com/just-the-docs/just-the-docs/pull/1761)
33
+ - Fixed: incorrect main content spacing in print styles by [@mattxwang](https://github.com/mattxwang) in [#1765](https://github.com/just-the-docs/just-the-docs/pull/1765)
34
+ - Fixed: focus indicator clipping and consistency for sidebar and top nav elements by [@mattxwang](https://github.com/mattxwang) in [#1769](https://github.com/just-the-docs/just-the-docs/pull/1769)
35
+ - Fixed: search bar focus trap and search result focus outline clipping by [@mattxwang](https://github.com/mattxwang) in [#1770](https://github.com/just-the-docs/just-the-docs/pull/1770)
36
+
37
+
27
38
  ## v0.11.1 - 2026-01-02
28
39
 
29
40
  ### Theme
30
41
 
31
- - Fixed: incorrect behaviour of `nav_footer` on `xs` viewport
42
+ - Fixed: incorrect behaviour of `nav_footer` on `xs` viewport by [@mattxwang](https://github.com/mattxwang) in [#1759](https://github.com/just-the-docs/just-the-docs/pull/1759)
32
43
 
33
44
  ## v0.11.0 - 2026-01-01
34
45
 
@@ -34,7 +34,7 @@
34
34
  note: nav_footer_custom and/or this "site footer" appear in components/sidebar.html for the desktop view.
35
35
  {%- endcomment -%}
36
36
 
37
- <div class="d-xs-block d-md-none">
37
+ <div class="d-md-none">
38
38
  {% capture nav_footer_custom %}
39
39
  {%- include nav_footer_custom.html -%}
40
40
  {% endcapture %}
@@ -23,7 +23,7 @@
23
23
  note: nav_footer_custom and/or this "site footer" appear in components/footer.html for the mobile view.
24
24
  {%- endcomment -%}
25
25
 
26
- <div class="d-md-block d-xs-none">
26
+ <div class="d-md-block d-none">
27
27
  {% capture nav_footer_custom %}
28
28
  {%- include nav_footer_custom.html -%}
29
29
  {% endcapture %}
data/_sass/layout.scss CHANGED
@@ -133,6 +133,7 @@
133
133
  padding-top: $sp-3;
134
134
  padding-bottom: $sp-3;
135
135
  color: $body-heading-color;
136
+ outline-offset: -1px; // Fixes outline clipping on both desktop/mobile "views"
136
137
 
137
138
  @include container;
138
139
 
@@ -160,6 +161,7 @@
160
161
  height: 100%;
161
162
  padding: $gutter-spacing-sm;
162
163
  align-items: center;
164
+ outline-offset: -1px; // Fixes outline clipping on both desktop/mobile "views"
163
165
  }
164
166
 
165
167
  @include mq(md) {
@@ -23,6 +23,8 @@
23
23
  padding-top: $sp-1;
24
24
  padding-bottom: $sp-1;
25
25
  line-height: #{$nav-list-item-height-sm - 2 * $sp-1};
26
+ outline-offset: -1px; // Fixes outline clipping on both desktop/mobile "views"
27
+
26
28
  @if $nav-list-expander-right {
27
29
  padding-right: $nav-list-item-height-sm;
28
30
  padding-left: $gutter-spacing-sm;
@@ -76,6 +78,7 @@
76
78
  height: $nav-list-item-height-sm;
77
79
  padding: #{$nav-list-item-height-sm * 0.25};
78
80
  color: $link-color;
81
+ outline-offset: -1px; // Fixes outline clipping on both desktop/mobile "views"
79
82
 
80
83
  @include mq(md) {
81
84
  width: $nav-list-item-height;
data/_sass/print.scss CHANGED
@@ -19,6 +19,10 @@
19
19
  width: 100%;
20
20
  height: auto;
21
21
  border-right: 0 !important;
22
+
23
+ /* Disable display: flex and position: fixed from non-print styles */
24
+ position: static;
25
+ display: block;
22
26
  }
23
27
 
24
28
  .site-header {
@@ -40,6 +44,6 @@
40
44
 
41
45
  .main {
42
46
  max-width: none;
43
- margin-left: 0;
47
+ margin-left: 0 !important; /* Necessary to override .side-bar + .main specificity */
44
48
  }
45
49
  }
data/_sass/search.scss CHANGED
@@ -61,8 +61,7 @@
61
61
  }
62
62
 
63
63
  &:focus {
64
- outline: 2px solid $link-color;
65
- outline-offset: -2px;
64
+ outline-offset: -1px;
66
65
 
67
66
  + .search-label .search-icon {
68
67
  color: $link-color;
@@ -129,6 +128,7 @@
129
128
  .search-result {
130
129
  display: block;
131
130
  padding: $sp-1 $sp-3;
131
+ outline-offset: -1px;
132
132
 
133
133
  &:hover,
134
134
  &.active {
@@ -152,7 +152,7 @@
152
152
  .search-result-doc {
153
153
  display: flex;
154
154
  align-items: center;
155
- word-wrap: break-word;
155
+ overflow-wrap: break-word;
156
156
 
157
157
  &.search-result-doc-parent {
158
158
  opacity: 0.5;
@@ -178,7 +178,7 @@
178
178
 
179
179
  .search-result-section {
180
180
  margin-left: #{$sp-4 + $sp-2};
181
- word-wrap: break-word;
181
+ overflow-wrap: break-word;
182
182
  }
183
183
 
184
184
  .search-result-rel-url {
@@ -198,7 +198,7 @@
198
198
  padding-left: $sp-4;
199
199
  margin-left: $sp-2;
200
200
  color: $search-result-preview-color;
201
- word-wrap: break-word;
201
+ overflow-wrap: break-word;
202
202
  border-left: $border;
203
203
  border-left-color: $border-color;
204
204
  @include fs-2;
@@ -1,3 +1,8 @@
1
+ // TODO: would be good to consider refactoring these mixins in a way that
2
+ // the & { } selector is not necessary. Note that removing the & { }
3
+ // will trip a SCSS deprecation warning -
4
+ // see https://sass-lang.com/documentation/breaking-changes/mixed-decls/
5
+ // stylelint-disable block-no-redundant-nested-style-rules
1
6
  @mixin fs-1 {
2
7
  & {
3
8
  font-size: $font-size-1 !important;
@@ -31,7 +31,7 @@
31
31
  padding: 0;
32
32
  margin: -1px;
33
33
  overflow: hidden;
34
- clip: rect(0, 0, 0, 0);
34
+ clip-path: inset(50%);
35
35
  white-space: nowrap;
36
36
  border-width: 0;
37
37
  }
@@ -198,7 +198,7 @@ button,
198
198
  [type="button"],
199
199
  [type="reset"],
200
200
  [type="submit"] {
201
- appearance: button;
201
+ appearance: auto;
202
202
  }
203
203
 
204
204
  /**
@@ -308,7 +308,7 @@ textarea {
308
308
  */
309
309
 
310
310
  ::-webkit-file-upload-button {
311
- appearance: button; /* 1 */
311
+ appearance: auto; /* 1 */
312
312
  font: inherit; /* 2 */
313
313
  }
314
314
 
@@ -418,6 +418,25 @@ function searchLoaded(index, docs) {
418
418
  setTimeout(update, 0);
419
419
  });
420
420
 
421
+ // When the search bar is *not* focused, it should be hidden. This code
422
+ // manages that - which is a bit tricky given that we can't just rely on
423
+ // focusout, since we could be re-focusing within the search itself.
424
+ const updateSearchFocus = function(evt) {
425
+ const nextFocusedElement = evt.relatedTarget;
426
+
427
+ // Re-focusing on search bar - "keep focus"
428
+ if (nextFocusedElement.id === 'search-input') return;
429
+
430
+ // Re-focusing on the next search result element - "keep focus"
431
+ if (nextFocusedElement.classList.contains('search-result')) return;
432
+
433
+ // Otherwise, we're not focused on the search bar anymore. Hide!
434
+ hideSearch();
435
+ }
436
+
437
+ searchInput.addEventListener('focusout', updateSearchFocus);
438
+ searchResults.addEventListener('focusout', updateSearchFocus);
439
+
421
440
  jtd.addEvent(searchInput, 'keyup', function(e){
422
441
  switch (e.keyCode) {
423
442
  case 27: // When esc key is pressed, hide the results and clear the field
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.11.1
4
+ version: 0.11.2
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: 2026-01-03 00:00:00.000000000 Z
12
+ date: 2026-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  - !ruby/object:Gem::Version
212
212
  version: '0'
213
213
  requirements: []
214
- rubygems_version: 3.5.22
214
+ rubygems_version: 3.5.11
215
215
  signing_key:
216
216
  specification_version: 4
217
217
  summary: A modern, highly customizable, and responsive Jekyll theme for documentation