Skip to content

Commit 17e0f71

Browse files
Fix RTD build
1 parent 990063f commit 17e0f71

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

.readthedocs.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ version: 2
99
build:
1010
os: ubuntu-22.04
1111
commands:
12-
- gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 409b6b1796c275462a1703113804bb82d39dc0e3 7d2baf1cf37b13e2069d6956105bd0e739499bdb && curl -sSL https://get.rvm.io | bash -s stable
13-
- ~/.rvm/bin/rvm autolibs disable && ~/.rvm/bin/rvm install ruby 3.1.2
14-
- PATH="$HOME/.rvm/rubies/ruby-3.1.2/bin:$PATH" gem install bundler
15-
- PATH="$HOME/.rvm/rubies/ruby-3.1.2/bin:$PATH" bundle install
16-
- PATH="$HOME/.rvm/rubies/ruby-3.1.2/bin:$PATH" bundle exec jekyll build --destination _readthedocs/html --baseurl $(echo -n "$READTHEDOCS_CANONICAL_URL" | cut -d '/' -f 4-)
12+
- asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
13+
- asdf install ruby 3.1.2
14+
- asdf global ruby 3.1.2
15+
- gem install bundler
16+
- bundle install
17+
- >
18+
bundle exec jekyll build --destination _readthedocs/html --baseurl $(echo
19+
-n "$READTHEDOCS_CANONICAL_URL" | cut -d '/' -f 4-)

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@ gem "webrick", "~> 1.7"
3737
gem "jekyll-remote-theme", "~> 0.4.3"
3838

3939
gem 'jekyll-redirect-from'
40+
41+
gem 'jekyll-include-cache'

Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ GEM
3131
terminal-table (~> 2.0)
3232
jekyll-feed (0.16.0)
3333
jekyll (>= 3.7, < 5.0)
34+
jekyll-include-cache (0.2.1)
35+
jekyll (>= 3.7, < 5.0)
3436
jekyll-redirect-from (0.16.0)
3537
jekyll (>= 3.3, < 5.0)
3638
jekyll-remote-theme (0.4.3)
@@ -83,6 +85,7 @@ DEPENDENCIES
8385
http_parser.rb (~> 0.6.0)
8486
jekyll (~> 4.2.2)
8587
jekyll-feed (~> 0.12)
88+
jekyll-include-cache
8689
jekyll-redirect-from
8790
jekyll-remote-theme (~> 0.4.3)
8891
just-the-docs

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ plugins:
5151
- jekyll-feed
5252
- jekyll-remote-theme
5353
- jekyll-redirect-from
54+
- jekyll-include-cache
5455

5556
# Exclude from processing.
5657
# The following items will not be processed, by default.

0 commit comments

Comments
 (0)