just-the-docs 0.6.0 → 0.6.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 +4 -4
- data/CHANGELOG.md +28 -0
- data/_includes/css/activation.scss.liquid +4 -5
- data/_sass/support/_variables.scss +1 -1
- data/assets/js/just-the-docs.js +5 -18
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c362693d611afbf87baeba763bc457fedd9dc2c0e61704c1c843969048f43a6
|
4
|
+
data.tar.gz: f3fa7e6c8ca7c926751d7221670c45457ad12e595dcccae5c2d8f025707b7630
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f751827832c8b1b958bd2c4d7f3b9812c3194a6a7e7bf023131e86cd4f408bad4037d09f99281e4212390265aa8a2dad709bd6f7005941433073e0d28bf545e
|
7
|
+
data.tar.gz: fd30ebd6d9b5b4af76e31b62b1ce1b9621fa2b26dc2b87972072a52d40c30f652003043a63e2b9cc8f13a882a3a8b3c9ac291c321e736dd4b499632f5193fe1b
|
data/CHANGELOG.md
CHANGED
@@ -19,6 +19,34 @@ 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
|
+
|
40
|
+
## Release v0.6.1
|
41
|
+
|
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.
|
43
|
+
|
44
|
+
### Bugfixes
|
45
|
+
|
46
|
+
- Fixed: JS error for pages excluded from navigation by [@pdmosses] in [#1332]
|
47
|
+
|
48
|
+
[#1332]: https://github.com/just-the-docs/just-the-docs/pull/1332
|
49
|
+
|
22
50
|
## Release v0.6.0
|
23
51
|
|
24
52
|
Hi all, this is a minor release that introduces performance improvements for build times on large sites, correctly sets the `color-scheme` property, and fixes invalid HTML. However, it introduces some potentially-breaking *internal* changes to undocumented features of the theme.
|
@@ -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:
|
141
|
-
> .nav-list-item:
|
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
|
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;
|
data/assets/js/just-the-docs.js
CHANGED
@@ -31,10 +31,7 @@ function initNav() {
|
|
31
31
|
}
|
32
32
|
if (target) {
|
33
33
|
e.preventDefault();
|
34
|
-
|
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
|
|
@@ -76,7 +73,9 @@ function initNav() {
|
|
76
73
|
// The page-specific stylesheet is assumed to have index 1 in the list of stylesheets.
|
77
74
|
|
78
75
|
function disableHeadStyleSheet() {
|
79
|
-
document.styleSheets[1]
|
76
|
+
if (document.styleSheets[1]) {
|
77
|
+
document.styleSheets[1].disabled = true;
|
78
|
+
}
|
80
79
|
}
|
81
80
|
|
82
81
|
{%- if site.search_enabled != false %}
|
@@ -496,8 +495,7 @@ function scrollNav() {
|
|
496
495
|
}
|
497
496
|
|
498
497
|
// Find the nav-list-link that refers to the current page
|
499
|
-
// then make it and all enclosing nav-list-item elements active
|
500
|
-
// and make all other folded collections passive
|
498
|
+
// then make it and all enclosing nav-list-item elements active.
|
501
499
|
|
502
500
|
function activateNav() {
|
503
501
|
var target = navLink();
|
@@ -513,17 +511,6 @@ function activateNav() {
|
|
513
511
|
target = target.parentNode;
|
514
512
|
}
|
515
513
|
}
|
516
|
-
const elements = document.getElementsByClassName("nav-category-list");
|
517
|
-
for (const element of elements) {
|
518
|
-
const item = element.children[0];
|
519
|
-
const active = item.classList.toggle('active');
|
520
|
-
if (active) {
|
521
|
-
item.classList.toggle('active', false);
|
522
|
-
item.classList.toggle('passive', true);
|
523
|
-
} else {
|
524
|
-
item.classList.toggle('active', true);
|
525
|
-
}
|
526
|
-
}
|
527
514
|
}
|
528
515
|
|
529
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.
|
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-
|
12
|
+
date: 2023-09-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -209,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
209
|
- !ruby/object:Gem::Version
|
210
210
|
version: '0'
|
211
211
|
requirements: []
|
212
|
-
rubygems_version: 3.
|
212
|
+
rubygems_version: 3.4.10
|
213
213
|
signing_key:
|
214
214
|
specification_version: 4
|
215
215
|
summary: A modern, highly customizable, and responsive Jekyll theme for documentation
|