Skip to content

Commit b402ce7

Browse files
authored
Merge branch 'just-the-docs:main' into main
2 parents 9b07956 + 883d7e5 commit b402ce7

File tree

20 files changed

+571
-421
lines changed

20 files changed

+571
-421
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
matrix:
1717
jekyll-version: [3.9, 4.3]
1818
os: [ubuntu-latest, macos-latest, windows-latest]
19-
ruby-version: ["3.1", "3.2", "3.3"]
19+
ruby-version: ["3.1", "3.2", "3.3", "3.4"]
2020
runs-on: ${{ matrix.os }}
2121
steps:
2222
- uses: actions/checkout@v4
@@ -46,7 +46,7 @@ jobs:
4646
- name: Setup Ruby
4747
uses: ruby/setup-ruby@v1
4848
with:
49-
ruby-version: "3.3"
49+
ruby-version: "3.4"
5050
bundler-cache: false
5151
- name: Bundle Install
5252
run: bundle install
@@ -62,7 +62,7 @@ jobs:
6262
strategy:
6363
fail-fast: false
6464
matrix:
65-
ruby-version: ["3.3"]
65+
ruby-version: ["3.4"]
6666
runs-on: ubuntu-latest
6767

6868
steps:
@@ -86,7 +86,7 @@ jobs:
8686
with:
8787
config: fixtures/html5validator-config.yml
8888
- name: Test with html-proofer
89-
run: bundle exec htmlproofer _site --ignore-urls "/github.com/,/web.archive.org/"
89+
run: bundle exec htmlproofer _site --ignore-urls "/github.com/,/web.archive.org/,/flickr.com/"
9090
env:
9191
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
9292

@@ -96,7 +96,7 @@ jobs:
9696

9797
strategy:
9898
matrix:
99-
node-version: [20.x]
99+
node-version: [22.x]
100100

101101
steps:
102102
- uses: actions/checkout@v4

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Setup Ruby
3535
uses: ruby/setup-ruby@v1
3636
with:
37-
ruby-version: "3.3"
37+
ruby-version: "3.4"
3838
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
3939
cache-version: 0 # Increment this number if you need to re-download cached gems
4040
- name: Setup Pages

.github/workflows/publish-gem.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
11
name: Publish Ruby Gem
22

3-
on:
4-
workflow_dispatch
3+
on: workflow_dispatch
54

65
jobs:
76
build:
87
name: Publish
98
runs-on: ubuntu-latest
109

1110
steps:
12-
- uses: actions/checkout@v4
13-
- name: Setup Ruby 3.3
14-
uses: ruby/setup-ruby@v1
15-
with:
16-
ruby-version: "3.3"
11+
- uses: actions/checkout@v4
12+
- name: Setup Ruby 3.4
13+
uses: ruby/setup-ruby@v1
14+
with:
15+
ruby-version: "3.4"
1716

18-
- name: Publish to GPR
19-
run: |
20-
mkdir -p $HOME/.gem
21-
touch $HOME/.gem/credentials
22-
chmod 0600 $HOME/.gem/credentials
23-
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
24-
gem build *.gemspec
25-
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
26-
env:
27-
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
28-
OWNER: ${{ github.repository_owner }}
17+
- name: Publish to GPR
18+
run: |
19+
mkdir -p $HOME/.gem
20+
touch $HOME/.gem/credentials
21+
chmod 0600 $HOME/.gem/credentials
22+
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
23+
gem build *.gemspec
24+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
25+
env:
26+
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
27+
OWNER: ${{ github.repository_owner }}
2928

3029
# Disabled as this does not handle 2FA
3130
# - name: Publish to RubyGems

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,35 @@ Docs changes made since the latest release:
2323

2424
- N/A
2525

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+
2655
## Release v0.10.0
2756

2857
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!

Dockerfile

Lines changed: 0 additions & 12 deletions
This file was deleted.

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
source "https://rubygems.org"
22
gemspec
33

4+
gem "base64"
5+
gem "csv"
6+
47
gem "jekyll-github-metadata", ">= 2.15"
58

69
gem "jekyll-include-cache", group: :jekyll_plugins

Gemfile.lock

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
just-the-docs (0.10.0)
4+
just-the-docs (0.10.1)
55
jekyll (>= 3.8.5)
66
jekyll-include-cache
77
jekyll-seo-tag (>= 2.0)
@@ -19,13 +19,15 @@ GEM
1919
fiber-annotation
2020
io-event (~> 1.5, >= 1.5.1)
2121
timers (~> 4.1)
22+
base64 (0.2.0)
2223
bigdecimal (3.1.8)
2324
colorator (1.1.0)
2425
concurrent-ruby (1.3.4)
2526
console (1.25.2)
2627
fiber-annotation
2728
fiber-local (~> 1.1)
2829
json
30+
csv (3.3.2)
2931
em-websocket (0.5.3)
3032
eventmachine (>= 0.12.9)
3133
http_parser.rb (~> 0)
@@ -36,17 +38,17 @@ GEM
3638
faraday-net_http (>= 2.0, < 3.2)
3739
faraday-net_http (3.1.0)
3840
net-http
39-
ffi (1.17.0-arm64-darwin)
40-
ffi (1.17.0-x86_64-linux-gnu)
41+
ffi (1.17.1-arm64-darwin)
42+
ffi (1.17.1-x86_64-linux-gnu)
4143
fiber-annotation (0.2.0)
4244
fiber-local (1.1.0)
4345
fiber-storage
4446
fiber-storage (0.1.0)
4547
forwardable-extended (2.6.0)
46-
google-protobuf (4.28.2-arm64-darwin)
48+
google-protobuf (4.29.3-arm64-darwin)
4749
bigdecimal
4850
rake (>= 13)
49-
google-protobuf (4.28.2-x86_64-linux)
51+
google-protobuf (4.29.3-x86_64-linux)
5052
bigdecimal
5153
rake (>= 13)
5254
hashery (2.1.2)
@@ -104,9 +106,9 @@ GEM
104106
mercenary (0.4.0)
105107
net-http (0.4.1)
106108
uri
107-
nokogiri (1.16.5-arm64-darwin)
109+
nokogiri (1.18.1-arm64-darwin)
108110
racc (~> 1.4)
109-
nokogiri (1.16.5-x86_64-linux)
111+
nokogiri (1.18.1-x86_64-linux-gnu)
110112
racc (~> 1.4)
111113
octokit (6.1.1)
112114
faraday (>= 1, < 3)
@@ -126,7 +128,7 @@ GEM
126128
rb-fsevent (0.11.2)
127129
rb-inotify (0.11.1)
128130
ffi (~> 1.0)
129-
rexml (3.3.7)
131+
rexml (3.3.9)
130132
rouge (4.4.0)
131133
ruby-rc4 (0.1.5)
132134
safe_yaml (1.0.5)
@@ -146,7 +148,7 @@ GEM
146148
ethon (>= 0.9.0)
147149
unicode-display_width (2.6.0)
148150
uri (0.13.0)
149-
webrick (1.8.1)
151+
webrick (1.8.2)
150152
yell (2.2.2)
151153
zeitwerk (2.6.13)
152154

@@ -155,7 +157,9 @@ PLATFORMS
155157
x86_64-linux-gnu
156158

157159
DEPENDENCIES
160+
base64
158161
bundler (>= 2.3.5)
162+
csv
159163
html-proofer (~> 5.0)
160164
jekyll-github-metadata (>= 2.15)
161165
jekyll-include-cache

README.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ More specifically, the created site:
3232

3333
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.
3434

35-
### Use RubyGems
35+
### Use as a Ruby Gem
3636

3737
Alternatively, you can install the theme as a Ruby Gem, without creating a new site.
3838

@@ -48,17 +48,11 @@ And add this line to your Jekyll site's `_config.yml`:
4848
theme: just-the-docs
4949
```
5050
51-
And then execute:
51+
And then install all relevant dependencies:
5252
53-
$ bundle
54-
55-
Or install it yourself as:
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+
```
6256

6357
## Usage
6458

_includes/components/breadcrumbs.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
{%- if page.url != "/" and page.parent and page.title -%}
1313

14-
{%- capture nav_list_link -%}
15-
<a href="{{ page.url | relative_url }}" class="nav-list-link">
16-
{%- endcapture -%}
17-
1814
{%- capture site_nav -%}
1915
{%- include_cached components/site_nav.html all=true -%}
2016
{%- endcapture -%}
2117

18+
{%- capture nav_list_link -%}
19+
<a href="{{ page.url | relative_url }}" class="nav-list-link">
20+
{%- endcapture -%}
21+
2222
{%- capture nav_list_simple -%}
2323
<ul class="nav-list">
2424
{%- endcapture -%}

_includes/components/children_nav.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,24 @@
1111
{%- comment -%}
1212
Whether a page has any children is checked efficiently by inspecting the cached
1313
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.)
1516
{%- endcomment -%}
1617

1718
{%- if page.has_children == false -%}
1819
{%- assign nav_children = "" | split: "" -%}
1920
{%- else -%}
2021

22+
{%- capture site_nav -%}
23+
{%- include_cached components/site_nav.html all=true -%}
24+
{%- endcapture -%}
25+
2126
{%- assign nav_children = nil -%}
2227

2328
{%- capture nav_list_link -%}
2429
<a href="{{ page.url | relative_url }}" class="nav-list-link">
2530
{%- endcapture -%}
2631

27-
{%- capture site_nav -%}
28-
{%- include_cached components/site_nav.html all=true -%}
29-
{%- endcapture -%}
30-
3132
{%- capture nav_list_simple -%}
3233
<ul class="nav-list">
3334
{%- endcapture -%}

0 commit comments

Comments
 (0)