just-the-docs 0.10.0 → 0.10.1
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 +29 -0
- data/README.md +5 -11
- data/_includes/components/breadcrumbs.html +4 -4
- data/_includes/components/children_nav.html +6 -5
- data/_includes/components/footer.html +1 -1
- data/_includes/css/activation.scss.liquid +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 699cb64eadf9b3149580ea5751976d46c49a461437731e59b8e38ee65805c745
|
4
|
+
data.tar.gz: e797cc9bea526d75c794feb3b392e4721f5d3de5b6f33ea86dc6a4ac1e068a60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fcba642e7b774f78fdd8a68427a74161ecebbbf6b89cd3c0c38f2dd98c8a3c11c099bfb8d1012dbdc4b80ec4845d65704f8046ec05994e061ff708ccc9f4d03
|
7
|
+
data.tar.gz: c8381ca89fcbcf87f47495db27d9a35574d1643678888d6c52cfc412a6a2e186f712378185beb08846b3a46b94a114ea1542131630dcc35b88aa1e2398e61a7c
|
data/CHANGELOG.md
CHANGED
@@ -23,6 +23,35 @@ Docs changes made since the latest release:
|
|
23
23
|
|
24
24
|
- N/A
|
25
25
|
|
26
|
+
## Release v0.10.1
|
27
|
+
|
28
|
+
Hi folks! This patch fixes two bugs related to generated navigation elements and improves our docs.
|
29
|
+
|
30
|
+
This release should be a straightforward upgrade for all users of Just the Docs. Thank you for your continued support!
|
31
|
+
|
32
|
+
### Bugfixes
|
33
|
+
|
34
|
+
- Fixed: `back_to_top` not displaying when no other footer variables are set by [@mattxwang] in [#1461]
|
35
|
+
- Fixed: auto-generated child navigation (TOC) by [@pdmosses] in [#1590]
|
36
|
+
|
37
|
+
### Documentation
|
38
|
+
|
39
|
+
- Fixed: incorrect docs for example with minimal layout parent, default layout child by [@janbrasna] in [#1540]
|
40
|
+
- Fixed: unclear docs on using in-page table of contents by [@sebjameswml] in [#1551]
|
41
|
+
|
42
|
+
### New Contributors
|
43
|
+
|
44
|
+
- [@janbrasna] made their first contribution in [#1540]
|
45
|
+
- [@sebjameswml] made their first contribution in [#1551]
|
46
|
+
|
47
|
+
[@janbrasna]: https://github.com/janbrasna
|
48
|
+
[@sebjameswml]: https://github.com/sebjameswml
|
49
|
+
|
50
|
+
[#1461]: https://github.com/just-the-docs/just-the-docs/pull/1461
|
51
|
+
[#1540]: https://github.com/just-the-docs/just-the-docs/pull/1540
|
52
|
+
[#1551]: https://github.com/just-the-docs/just-the-docs/pull/1551
|
53
|
+
[#1590]: https://github.com/just-the-docs/just-the-docs/pull/1590
|
54
|
+
|
26
55
|
## Release v0.10.0
|
27
56
|
|
28
57
|
Hi folks! This minor release adds one of our most-requested features: unlimited multi-level navigation (also known as recursive navigation). Huge thanks to [@pdmosses] for his wonderful work in implementing this feature!
|
data/README.md
CHANGED
@@ -32,7 +32,7 @@ More specifically, the created site:
|
|
32
32
|
|
33
33
|
Other than that, you're free to customize sites that you create with the template, however you like. You can easily change the versions of `just-the-docs` and Jekyll it uses, as well as adding further plugins.
|
34
34
|
|
35
|
-
### Use
|
35
|
+
### Use as a Ruby Gem
|
36
36
|
|
37
37
|
Alternatively, you can install the theme as a Ruby Gem, without creating a new site.
|
38
38
|
|
@@ -48,17 +48,11 @@ And add this line to your Jekyll site's `_config.yml`:
|
|
48
48
|
theme: just-the-docs
|
49
49
|
```
|
50
50
|
|
51
|
-
And then
|
51
|
+
And then install all relevant dependencies:
|
52
52
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
$ gem install just-the-docs
|
58
|
-
|
59
|
-
Alternatively, you can run it inside Docker while developing your site
|
60
|
-
|
61
|
-
$ docker-compose up
|
53
|
+
```shell
|
54
|
+
$ bundle
|
55
|
+
```
|
62
56
|
|
63
57
|
## Usage
|
64
58
|
|
@@ -11,14 +11,14 @@
|
|
11
11
|
|
12
12
|
{%- if page.url != "/" and page.parent and page.title -%}
|
13
13
|
|
14
|
-
{%- capture nav_list_link -%}
|
15
|
-
<a href="{{ page.url | relative_url }}" class="nav-list-link">
|
16
|
-
{%- endcapture -%}
|
17
|
-
|
18
14
|
{%- capture site_nav -%}
|
19
15
|
{%- include_cached components/site_nav.html all=true -%}
|
20
16
|
{%- endcapture -%}
|
21
17
|
|
18
|
+
{%- capture nav_list_link -%}
|
19
|
+
<a href="{{ page.url | relative_url }}" class="nav-list-link">
|
20
|
+
{%- endcapture -%}
|
21
|
+
|
22
22
|
{%- capture nav_list_simple -%}
|
23
23
|
<ul class="nav-list">
|
24
24
|
{%- endcapture -%}
|
@@ -11,23 +11,24 @@
|
|
11
11
|
{%- comment -%}
|
12
12
|
Whether a page has any children is checked efficiently by inspecting the cached
|
13
13
|
site_nav. If the page has no children, nav_children is set to an empty array;
|
14
|
-
otherwise nav_children is left unset.
|
14
|
+
otherwise nav_children is left unset. (The site_nav is rendered the first time
|
15
|
+
it is included, and that may overwrite various variables.)
|
15
16
|
{%- endcomment -%}
|
16
17
|
|
17
18
|
{%- if page.has_children == false -%}
|
18
19
|
{%- assign nav_children = "" | split: "" -%}
|
19
20
|
{%- else -%}
|
20
21
|
|
22
|
+
{%- capture site_nav -%}
|
23
|
+
{%- include_cached components/site_nav.html all=true -%}
|
24
|
+
{%- endcapture -%}
|
25
|
+
|
21
26
|
{%- assign nav_children = nil -%}
|
22
27
|
|
23
28
|
{%- capture nav_list_link -%}
|
24
29
|
<a href="{{ page.url | relative_url }}" class="nav-list-link">
|
25
30
|
{%- endcapture -%}
|
26
31
|
|
27
|
-
{%- capture site_nav -%}
|
28
|
-
{%- include_cached components/site_nav.html all=true -%}
|
29
|
-
{%- endcapture -%}
|
30
|
-
|
31
32
|
{%- capture nav_list_simple -%}
|
32
33
|
<ul class="nav-list">
|
33
34
|
{%- endcapture -%}
|
@@ -1,7 +1,7 @@
|
|
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 %}
|
4
|
+
{% if footer_custom != "" or site.last_edit_timestamp or site.gh_edit_link or site.back_to_top %}
|
5
5
|
<hr>
|
6
6
|
<footer>
|
7
7
|
{% if site.back_to_top %}
|
@@ -20,6 +20,10 @@
|
|
20
20
|
- The other two rules ensure that all folding collections are expanded.
|
21
21
|
{%- endcomment -%}
|
22
22
|
|
23
|
+
{%- capture site_nav -%}
|
24
|
+
{%- include_cached components/site_nav.html -%}
|
25
|
+
{%- endcapture -%}
|
26
|
+
|
23
27
|
{%- capture activation_no_nav_link %}
|
24
28
|
.site-nav ul li a {
|
25
29
|
background-image: none;
|
@@ -39,10 +43,6 @@
|
|
39
43
|
<a href="{{ page.url | relative_url }}" class="nav-list-link">
|
40
44
|
{%- endcapture -%}
|
41
45
|
|
42
|
-
{%- capture site_nav -%}
|
43
|
-
{%- include_cached components/site_nav.html -%}
|
44
|
-
{%- endcapture -%}
|
45
|
-
|
46
46
|
{%- if site_nav contains nav_list_link -%}
|
47
47
|
|
48
48
|
{%- capture nav_list -%}
|
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.
|
4
|
+
version: 0.10.1
|
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:
|
12
|
+
date: 2025-01-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|