Skip to content

Commit d38e116

Browse files
authored
Merge pull request #1829 from marquiz/devel/docs-theme
docs: use jekyll-rtd-theme from a ruby gem
2 parents 8ffe9f9 + b2bc18f commit d38e116

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,11 @@ poll-images:
246246

247247
site-build:
248248
@mkdir -p docs/vendor/bundle
249-
$(SITE_BUILD_CMD) sh -c "bundle install && jekyll build $(JEKYLL_OPTS)"
249+
$(SITE_BUILD_CMD) sh -c "bundle plugin install bundler-override && bundle install && jekyll build $(JEKYLL_OPTS)"
250250

251251
site-serve:
252252
@mkdir -p docs/vendor/bundle
253-
$(SITE_BUILD_CMD) sh -c "bundle install && jekyll serve $(JEKYLL_OPTS) -H 127.0.0.1"
253+
$(SITE_BUILD_CMD) sh -c "bundle plugin install bundler-override && bundle install && jekyll serve $(JEKYLL_OPTS) -H 127.0.0.1"
254254

255255
benchmark:
256256
go test -bench=./pkg/nfd-master -run=^# ./pkg/nfd-master

docs/Gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
source "https://rubygems.org"
22

3+
# Use override plugin to drop incorrect dependency of jekyll-rtd-them on github-pages (~> 209)
4+
# The original dep would allow github-pages v209.x but not v210 or later.
5+
plugin 'bundler-override'
6+
require File.join(Bundler::Plugin.index.load_paths("bundler-override")[0], "bundler-override") rescue nil
7+
override 'jekyll-rtd-theme', :drop => "github-pages"
8+
39
# Hello! This is where you manage which Jekyll version is used to run.
410
# When you want to use a different version, change it below, save the
511
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
@@ -29,3 +35,5 @@ gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?
2935
#gem "kramdown-parser-gfm"
3036

3137
gem "webrick", "~> 1.8"
38+
39+
gem 'jekyll-rtd-theme', '~> 2.0', '>= 2.0.10'

docs/Gemfile.lock

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ GEM
152152
jekyll (>= 3.5, < 5.0)
153153
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
154154
rubyzip (>= 1.3.0, < 3.0)
155+
jekyll-rtd-theme (2.0.10)
155156
jekyll-sass-converter (1.5.2)
156157
sass (~> 3.4)
157158
jekyll-seo-tag (2.8.0)
@@ -274,10 +275,11 @@ PLATFORMS
274275
DEPENDENCIES
275276
github-pages (~> 228)
276277
jekyll (~> 3.9.0)
278+
jekyll-rtd-theme (~> 2.0, >= 2.0.10)
277279
tzinfo (~> 2.0)
278280
tzinfo-data
279281
wdm (~> 0.1.1)
280282
webrick (~> 1.8)
281283

282284
BUNDLED WITH
283-
2.0.2
285+
2.3.27

docs/_config.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ markdown: kramdown
2626
kramdown:
2727
toc_levels: 1..3
2828

29-
remote_theme: rundocs/[email protected]
30-
plugins:
31-
- jekyll-remote-theme
29+
theme: jekyll-rtd-theme
3230

3331
# Exclude from processing.
3432
# The following items will not be processed, by default. Create a custom list

netlify.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Netlify settings
22
[build]
3-
command = "cd docs/ && bundle install && jekyll build"
4-
publish = "docs/_site/"
3+
command = "cd docs/ && source /opt/buildhome/.rvm/scripts/rvm && rvm install ruby-3.1.6 && bundle plugin install bundler-override && bundle install && jekyll build"
4+
publish = "docs/_site/"

0 commit comments

Comments
 (0)