From 17e0f7155829d5ecd4750c1478b781bd6e6b91e9 Mon Sep 17 00:00:00 2001 From: Sanket Verma Date: Thu, 26 Oct 2023 05:02:34 +0530 Subject: [PATCH] Fix RTD build --- .readthedocs.yml | 13 ++++++++----- Gemfile | 2 ++ Gemfile.lock | 3 +++ _config.yml | 1 + 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 3c0771a..821592f 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -9,8 +9,11 @@ version: 2 build: os: ubuntu-22.04 commands: - - gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 409b6b1796c275462a1703113804bb82d39dc0e3 7d2baf1cf37b13e2069d6956105bd0e739499bdb && curl -sSL https://get.rvm.io | bash -s stable - - ~/.rvm/bin/rvm autolibs disable && ~/.rvm/bin/rvm install ruby 3.1.2 - - PATH="$HOME/.rvm/rubies/ruby-3.1.2/bin:$PATH" gem install bundler - - PATH="$HOME/.rvm/rubies/ruby-3.1.2/bin:$PATH" bundle install - - 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-) + - asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git + - asdf install ruby 3.1.2 + - asdf global ruby 3.1.2 + - gem install bundler + - bundle install + - > + bundle exec jekyll build --destination _readthedocs/html --baseurl $(echo + -n "$READTHEDOCS_CANONICAL_URL" | cut -d '/' -f 4-) diff --git a/Gemfile b/Gemfile index 5f7437e..ca34edc 100644 --- a/Gemfile +++ b/Gemfile @@ -37,3 +37,5 @@ gem "webrick", "~> 1.7" gem "jekyll-remote-theme", "~> 0.4.3" gem 'jekyll-redirect-from' + +gem 'jekyll-include-cache' diff --git a/Gemfile.lock b/Gemfile.lock index e001d81..f0783aa 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -31,6 +31,8 @@ GEM terminal-table (~> 2.0) jekyll-feed (0.16.0) jekyll (>= 3.7, < 5.0) + jekyll-include-cache (0.2.1) + jekyll (>= 3.7, < 5.0) jekyll-redirect-from (0.16.0) jekyll (>= 3.3, < 5.0) jekyll-remote-theme (0.4.3) @@ -83,6 +85,7 @@ DEPENDENCIES http_parser.rb (~> 0.6.0) jekyll (~> 4.2.2) jekyll-feed (~> 0.12) + jekyll-include-cache jekyll-redirect-from jekyll-remote-theme (~> 0.4.3) just-the-docs diff --git a/_config.yml b/_config.yml index 5d2e9c9..186dee3 100644 --- a/_config.yml +++ b/_config.yml @@ -51,6 +51,7 @@ plugins: - jekyll-feed - jekyll-remote-theme - jekyll-redirect-from + - jekyll-include-cache # Exclude from processing. # The following items will not be processed, by default.