just-the-docs 0.4.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +51 -3
- data/_includes/components/mermaid.html +40 -0
- data/_includes/css/just-the-docs.scss.liquid +1 -1
- data/_includes/head.html +0 -8
- data/_sass/base.scss +0 -5
- data/_sass/vendor/OneLightJekyll/syntax.scss +0 -3
- metadata +2 -3
- data/assets/images/search.svg +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af9c235c19d5813f931f4b79f784998e7dd4e350c037855708444595164ae073
|
4
|
+
data.tar.gz: 7ce738453ea1a39b96ebaab90ff33ea8e0c73461075c07e6619bcbd60e134936
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac7f41cab3ead8c6a15b0a3b66b709d3ba77b035c9ce5bbe1b6b5544604b1417937cafe198355f2f5a1d6aba6f7ed07cf76a73d877a917d6372bb4094f00221b
|
7
|
+
data.tar.gz: cb86ce993ad345da4612a21b94dd50189acbb43f70114e2d72627fc3a287e86691b09df085cc545d1516d4b158f3e217143bb0b57f4adf2f06846b55a467197b
|
data/CHANGELOG.md
CHANGED
@@ -16,15 +16,63 @@ The project underwent a major maintenance shift in March 2022.
|
|
16
16
|
This website is built from the `HEAD` of the `main` branch of the theme repository.
|
17
17
|
|
18
18
|
{: .warning }
|
19
|
-
This website includes docs for some new features that are not available in `v0.
|
19
|
+
This website includes docs for some new features that are not available in `v0.5.0`!
|
20
20
|
|
21
21
|
Code changes to `main` that are *not* in the latest release:
|
22
22
|
|
23
|
-
-
|
23
|
+
- n/a
|
24
24
|
|
25
25
|
Docs changes in `main` that are *not* in the latest release:
|
26
26
|
|
27
|
-
-
|
27
|
+
- n/a
|
28
|
+
|
29
|
+
## Release v0.5.0
|
30
|
+
|
31
|
+
Hope your April is going well! This new release of Just the Docs is relatively minor. It has one **breaking change**: we've reverted the import order of `setup.scss` to be *before* color schemes. In addition, we include two requested fixes: color contrast issues with `::selection` and using Just the Docs with mermaid versions `>=10`.
|
32
|
+
|
33
|
+
We've marked this as a minor version bump due to the breaking change. In the next section, we briefly outline what migration steps should be. Users who did not migrate to `v0.4.2` or who do not have a custom `setup.scss` are guaranteed no breaking changes.
|
34
|
+
|
35
|
+
As always, we'd love your feedback. [Open an issue](https://github.com/just-the-docs/just-the-docs/issues) or [start a discussion](https://github.com/just-the-docs/just-the-docs/discussions) for bug reports, feature requests, and any other feedback. Thanks for continuing to use Just the Docs!
|
36
|
+
|
37
|
+
### Migrating to `v0.5.0`
|
38
|
+
|
39
|
+
**Migration**: users with a custom `setup.scss` cannot rely on variables or functions defined in `color_scheme`. This reverts to the behaviour in `v0.4.1`. Users should instead move those variables or functions to the `color_scheme` files themselves.
|
40
|
+
|
41
|
+
For more, refer to the [migration guide](https://just-the-docs.github.io/just-the-docs/MIGRATION/).
|
42
|
+
|
43
|
+
### Using Release `v0.5.0`
|
44
|
+
|
45
|
+
Users who have not pinned the theme version will be **automatically upgraded to `v0.5.0` the next time they build their site**.
|
46
|
+
|
47
|
+
To use this release explicitly as a remote theme:
|
48
|
+
|
49
|
+
```yml
|
50
|
+
remote_theme: just-the-docs/just-the-docs@v0.5.0
|
51
|
+
```
|
52
|
+
|
53
|
+
To use this version explicitly as a gem-based theme, pin the version in your `Gemfile` and re-run `bundle install` or `bundle update just-the-docs`:
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
gem "just-the-docs", "0.5.0"
|
57
|
+
```
|
58
|
+
|
59
|
+
To use and pin a previous version of the theme, replace the `0.5.0` with the desired release tag.
|
60
|
+
|
61
|
+
### Bugfixes
|
62
|
+
|
63
|
+
- **Reverted (breaking)**: "Fix import order for `setup.scss` (#1184)" by [@mattxwang] in [#1209]
|
64
|
+
- Fixed: color contrast issues with `::selection` (reverting to browser defaults) [@mattxwang] in [#1208]
|
65
|
+
- Fixed: mermaid `v10`, bundle all mermaid code in component by [@mattxwang] in [#1190]
|
66
|
+
- Removed: unused images (`just-the-docs.png`, `search.svg`) by [@mattxwang] in [#1107]
|
67
|
+
- Removed: `CODE_OF_CONDUCT`, `docker-compose`, and `Dockerfile` files from site by [@mattxwang] in [#1187]
|
68
|
+
|
69
|
+
**Full Changelog**: [https://github.com/just-the-docs/just-the-docs/compare/v0.4.2...v0.5.0](https://github.com/just-the-docs/just-the-docs/compare/v0.4.2...v0.5.0)
|
70
|
+
|
71
|
+
[#1107]: https://github.com/just-the-docs/just-the-docs/pull/1107
|
72
|
+
[#1187]: https://github.com/just-the-docs/just-the-docs/pull/1187
|
73
|
+
[#1190]: https://github.com/just-the-docs/just-the-docs/pull/1190
|
74
|
+
[#1208]: https://github.com/just-the-docs/just-the-docs/pull/1208
|
75
|
+
[#1209]: https://github.com/just-the-docs/just-the-docs/pull/1209
|
28
76
|
|
29
77
|
## Release v0.4.2
|
30
78
|
|
@@ -1,5 +1,45 @@
|
|
1
|
+
{% comment %}
|
2
|
+
The complexity of this file comes from a breaking change in Mermaid v10; mermaid.init has been deprecated (and supposedly, didn't work earlier?).
|
3
|
+
|
4
|
+
So, we check whether the user's Mermaid version is >= 10; if not, we fall back to the previous init syntax.
|
5
|
+
|
6
|
+
If a user is using a custom mermaid file and doesn't specify a version, we default to the < v10 behaviour. Users who use version v10 or above should specify this in the version key.
|
7
|
+
{% endcomment %}
|
8
|
+
|
9
|
+
{% if site.mermaid.version %}
|
10
|
+
{% assign mermaid_major_version = site.mermaid.version | split: "." | first | plus: 0 %}
|
11
|
+
{% else %}
|
12
|
+
{% assign mermaid_major_version = 9 %}
|
13
|
+
{% endif %}
|
14
|
+
|
15
|
+
{% if mermaid_major_version > 9 %}
|
16
|
+
|
17
|
+
<script type="module">
|
18
|
+
{% if site.mermaid.path %}
|
19
|
+
import mermaid from '{{ site.mermaid.path | relative_url }}';
|
20
|
+
{% else %}
|
21
|
+
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@{{ site.mermaid.version }}/dist/mermaid.esm.min.mjs';
|
22
|
+
{% endif %}
|
23
|
+
|
24
|
+
var config = {% include mermaid_config.js %};
|
25
|
+
mermaid.initialize(config);
|
26
|
+
mermaid.run({
|
27
|
+
querySelector: '.language-mermaid',
|
28
|
+
});
|
29
|
+
</script>
|
30
|
+
|
31
|
+
{% else %}
|
32
|
+
|
33
|
+
{% if site.mermaid.path %}
|
34
|
+
<script src="{{ site.mermaid.path | relative_url }}"></script>
|
35
|
+
{% else %}
|
36
|
+
<script src="https://cdn.jsdelivr.net/npm/mermaid@{{ site.mermaid.version }}/dist/mermaid.min.js"></script>
|
37
|
+
{% endif %}
|
38
|
+
|
1
39
|
<script>
|
2
40
|
var config = {% include mermaid_config.js %};
|
3
41
|
mermaid.initialize(config);
|
4
42
|
window.mermaid.init(undefined, document.querySelectorAll('.language-mermaid'));
|
5
43
|
</script>
|
44
|
+
|
45
|
+
{% endif %}
|
@@ -2,11 +2,11 @@
|
|
2
2
|
$logo: "{{ site.logo | relative_url }}";
|
3
3
|
{% endif %}
|
4
4
|
@import "./support/support";
|
5
|
+
@import "./custom/setup";
|
5
6
|
@import "./color_schemes/light";
|
6
7
|
{% unless include.color_scheme == "light" %}
|
7
8
|
@import "./color_schemes/{{ include.color_scheme }}";
|
8
9
|
{% endunless %}
|
9
|
-
@import "./custom/setup";
|
10
10
|
@import "./modules";
|
11
11
|
{% include css/callouts.scss.liquid color_scheme = include.color_scheme %}
|
12
12
|
{% include css/custom.scss.liquid %}
|
data/_includes/head.html
CHANGED
@@ -22,14 +22,6 @@
|
|
22
22
|
<script src="{{ '/assets/js/vendor/lunr.min.js' | relative_url }}"></script>
|
23
23
|
{% endif %}
|
24
24
|
|
25
|
-
{% if site.mermaid %}
|
26
|
-
{% if site.mermaid.path %}
|
27
|
-
<script src="{{ site.mermaid.path | relative_url }}"></script>
|
28
|
-
{% else %}
|
29
|
-
<script src="https://cdn.jsdelivr.net/npm/mermaid@{{ site.mermaid.version }}/dist/mermaid.min.js"></script>
|
30
|
-
{% endif %}
|
31
|
-
{% endif %}
|
32
|
-
|
33
25
|
<script src="{{ '/assets/js/just-the-docs.js' | relative_url }}"></script>
|
34
26
|
|
35
27
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
data/_sass/base.scss
CHANGED
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.
|
4
|
+
version: 0.5.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: 2023-
|
12
|
+
date: 2023-04-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -163,7 +163,6 @@ files:
|
|
163
163
|
- assets/css/just-the-docs-dark.scss
|
164
164
|
- assets/css/just-the-docs-default.scss
|
165
165
|
- assets/css/just-the-docs-light.scss
|
166
|
-
- assets/images/search.svg
|
167
166
|
- assets/js/just-the-docs.js
|
168
167
|
- assets/js/vendor/lunr.min.js
|
169
168
|
- assets/js/zzzz-search-data.json
|
data/assets/images/search.svg
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
<svg width="28" height="28" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg"><title>Search</title><g fill-rule="nonzero" fill="#959396"><path d="M17.332 20.735c-5.537 0-10-4.6-10-10.247 0-5.646 4.463-10.247 10-10.247 5.536 0 10 4.601 10 10.247s-4.464 10.247-10 10.247zm0-4c3.3 0 6-2.783 6-6.247 0-3.463-2.7-6.247-6-6.247s-6 2.784-6 6.247c0 3.464 2.7 6.247 6 6.247z"/><path d="M11.672 13.791L.192 25.271 3.02 28.1 14.5 16.62z"/></g></svg>
|