just-the-docs 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6507efc104163887d74adfed2b3c3330bcce570098f47e4707f894df0a15d664
4
- data.tar.gz: 193492b735c919ae4c34e3c3eb121f3f20f1a58047a7bc647f2be59e48afb01d
3
+ metadata.gz: 3c362693d611afbf87baeba763bc457fedd9dc2c0e61704c1c843969048f43a6
4
+ data.tar.gz: f3fa7e6c8ca7c926751d7221670c45457ad12e595dcccae5c2d8f025707b7630
5
5
  SHA512:
6
- metadata.gz: 346c16ca05900cf3dc22a14e0168df56ae5ff613f7cf8bb3504eec4923e9c6c7a1676302f843f72d39e8279fefbb74d505b46de0d1b28af0798b47280df1ab55
7
- data.tar.gz: 2deebd301d3a0f303dd8c9836da460011fe590d5995bd422b1c443954e74502bb44ecc5c0f31cb9f373904e3b41fb70e1f7173dae5c26e61a26143128ccf384f
6
+ metadata.gz: 9f751827832c8b1b958bd2c4d7f3b9812c3194a6a7e7bf023131e86cd4f408bad4037d09f99281e4212390265aa8a2dad709bd6f7005941433073e0d28bf545e
7
+ data.tar.gz: fd30ebd6d9b5b4af76e31b62b1ce1b9621fa2b26dc2b87972072a52d40c30f652003043a63e2b9cc8f13a882a3a8b3c9ac291c321e736dd4b499632f5193fe1b
data/CHANGELOG.md CHANGED
@@ -19,6 +19,24 @@ Code changes to `main` that are *not* in the latest release:
19
19
 
20
20
  - N/A
21
21
 
22
+ ## Release v0.6.2
23
+
24
+ Hi all, this is a small patch release that includes two changes: adding a missing Windows emoji font fallback, and removing some (now-unused) code introduced in 0.6.
25
+
26
+ ### Bugfixes
27
+
28
+ - Fixed: Windows emoji font fallback by [@flanakin] in [#1337]
29
+ - Removed: unused `.passive` toggle in navigation by [@pdmosses] in [#1335]
30
+
31
+ [#1335]: https://github.com/just-the-docs/just-the-docs/pull/1335
32
+ [#1337]: https://github.com/just-the-docs/just-the-docs/pull/1337
33
+
34
+ ### New Contributors
35
+
36
+ - [@flanakin] made their first contribution in [#1337]
37
+
38
+ [@flanakin]: https://github.com/flanakin
39
+
22
40
  ## Release v0.6.1
23
41
 
24
42
  Hi all, this is a small patch release that only includes one change: resolving a bug introduced in 0.6.0 that causes a JS error for pages excluded from navigation.
@@ -27,7 +45,7 @@ Hi all, this is a small patch release that only includes one change: resolving a
27
45
 
28
46
  - Fixed: JS error for pages excluded from navigation by [@pdmosses] in [#1332]
29
47
 
30
- [#332]: https://github.com/just-the-docs/just-the-docs/pull/1332
48
+ [#1332]: https://github.com/just-the-docs/just-the-docs/pull/1332
31
49
 
32
50
  ## Release v0.6.0
33
51
 
@@ -134,11 +134,10 @@
134
134
  }
135
135
  }
136
136
 
137
- // Styling for nav-list-expanders at first and second levels,
138
- // suppressed when a click has deactivated the expander (making the nav-list-item .passive):
137
+ // Styling for nav-list-expanders at first and second levels:
139
138
  {{ activation_collection_prefix }} {
140
- > .nav-list-item:not(.passive):nth-child({{ activation_first_level_index }}){%- if activation_second_level_index %},
141
- > .nav-list-item:not(.passive):nth-child({{ activation_first_level_index }}) > .nav-list > .nav-list-item:not(.passive):nth-child({{ activation_second_level_index }}){% endif %} {
139
+ > .nav-list-item:nth-child({{ activation_first_level_index }}){%- if activation_second_level_index %},
140
+ > .nav-list-item:nth-child({{ activation_first_level_index }}) > .nav-list > .nav-list-item:nth-child({{ activation_second_level_index }}){% endif %} {
142
141
  > .nav-list-expander svg {
143
142
  @if $nav-list-expander-right {
144
143
  transform: rotate(-90deg);
@@ -154,7 +153,7 @@
154
153
  }
155
154
 
156
155
  // Styling for nav-list-expander for categories:
157
- .site-nav > .nav-category-list > .nav-list-item:not(.passive) {
156
+ .site-nav > .nav-category-list > .nav-list-item {
158
157
  > .nav-list-expander svg {
159
158
  @if $nav-list-expander-right {
160
159
  transform: rotate(-90deg);
@@ -2,7 +2,7 @@
2
2
 
3
3
  // prettier-ignore
4
4
  $body-font-family: system-ui, -apple-system, blinkmacsystemfont, "Segoe UI",
5
- roboto, "Helvetica Neue", arial, sans-serif !default;
5
+ roboto, "Helvetica Neue", arial, sans-serif, "Segoe UI Emoji" !default;
6
6
  $mono-font-family: "SFMono-Regular", menlo, consolas, monospace !default;
7
7
  $root-font-size: 16px !default; // DEPRECATED: previously base font-size for rems
8
8
  $body-line-height: 1.4 !default;
@@ -31,10 +31,7 @@ function initNav() {
31
31
  }
32
32
  if (target) {
33
33
  e.preventDefault();
34
- const active = target.parentNode.classList.toggle('active');
35
- const passive = target.parentNode.classList.toggle('passive');
36
- if (active && passive) target.parentNode.classList.toggle('passive');
37
- target.ariaPressed = active;
34
+ target.ariaPressed = target.parentNode.classList.toggle('active');
38
35
  }
39
36
  });
40
37
 
@@ -498,8 +495,7 @@ function scrollNav() {
498
495
  }
499
496
 
500
497
  // Find the nav-list-link that refers to the current page
501
- // then make it and all enclosing nav-list-item elements active,
502
- // and make all other folded collections passive
498
+ // then make it and all enclosing nav-list-item elements active.
503
499
 
504
500
  function activateNav() {
505
501
  var target = navLink();
@@ -515,17 +511,6 @@ function activateNav() {
515
511
  target = target.parentNode;
516
512
  }
517
513
  }
518
- const elements = document.getElementsByClassName("nav-category-list");
519
- for (const element of elements) {
520
- const item = element.children[0];
521
- const active = item.classList.toggle('active');
522
- if (active) {
523
- item.classList.toggle('active', false);
524
- item.classList.toggle('passive', true);
525
- } else {
526
- item.classList.toggle('active', true);
527
- }
528
- }
529
514
  }
530
515
 
531
516
  // Document ready
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.6.1
4
+ version: 0.6.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: 2023-08-26 00:00:00.000000000 Z
12
+ date: 2023-09-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler