Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Commit e4f2955

Browse files
authored
Fix cleanpath undefined, upgrade Jekyll / Bundler / deps (#600)
* Workaround for Ruby 2.5 issue https://bugs.ruby-lang.org/issues/10011 * Update to Jekyll 4.2.0, Bundler 2.2.2 and update deps * Update Bundler & htmltest in Docker container * Exclude redirects.json from deployments The jekyll-redirect-from plugin 0.13+ creates this file
1 parent 25732c5 commit e4f2955

File tree

7 files changed

+33
-28
lines changed

7 files changed

+33
-28
lines changed

Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ RUN apt-get update && \
44
apt-get install -y ruby-full build-essential zlib1g-dev wget python2.7 libpython2.7
55

66
RUN cd /tmp && \
7-
wget https://github.com/wjdp/htmltest/releases/download/v0.12.1/htmltest_0.12.1_linux_amd64.tar.gz && \
8-
tar xvzf htmltest_0.12.1_linux_amd64.tar.gz && \
7+
wget https://github.com/wjdp/htmltest/releases/download/v0.13.0/htmltest_0.13.0_linux_amd64.tar.gz && \
8+
tar xvzf htmltest_0.13.0_linux_amd64.tar.gz && \
99
mv htmltest /usr/local/bin
1010

1111
RUN mkdir /root/gems
@@ -15,7 +15,7 @@ ENV PATH="/root/gems/bin:${PATH}"
1515
# python md script needs that :S
1616
ENV LC_ALL=C.UTF-8
1717

18-
RUN gem install bundler:2.1.4 jekyll
18+
RUN gem install bundler:2.2.2 jekyll
1919

2020
VOLUME /docs
2121
WORKDIR /docs
@@ -26,4 +26,4 @@ RUN bundler install
2626

2727
EXPOSE 4000
2828

29-
CMD ["bundler", "exec", "jekyll", "serve", "-H", "0.0.0.0", "--incremental", "--trace"]
29+
CMD ["bundler", "exec", "jekyll", "serve", "-H", "0.0.0.0", "--incremental", "--trace"]

Gemfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ source "https://rubygems.org"
88
#
99
# This will help ensure the proper Jekyll version is running.
1010
# Happy Jekylling!
11-
gem "jekyll", "~> 4.1.1"
11+
gem "jekyll", "~> 4.2.0"
1212

1313
# This is the default theme for new Jekyll sites. You may change this to anything you like.
1414
#gem "minima", "~> 2.0"
@@ -27,6 +27,6 @@ end
2727
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
2828

2929
# Performance-booster for watching directories on Windows
30-
gem "wdm", "~> 0.1.0" if Gem.win_platform?
31-
#gem 'jekyll-sitemap', "~> 1.3.1"
32-
gem "jekyll-redirect-from", "~> 0.12"
30+
gem "wdm", "~> 0.1.1" if Gem.win_platform?
31+
#gem 'jekyll-sitemap', "~> 1.4.0"
32+
gem "jekyll-redirect-from", "~> 0.16"

Gemfile.lock

+17-16
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ GEM
66
algolia_html_extractor (2.6.2)
77
json (~> 2.0)
88
nokogiri (~> 1.10.4)
9-
algoliasearch (1.27.3)
9+
algoliasearch (1.27.5)
1010
httpclient (~> 2.8, >= 2.8.3)
1111
json (>= 1.5.1)
1212
colorator (1.1.0)
1313
concurrent-ruby (1.1.7)
14-
em-websocket (0.5.1)
14+
em-websocket (0.5.2)
1515
eventmachine (>= 0.12.9)
1616
http_parser.rb (~> 0.6.0)
1717
eventmachine (1.2.7)
@@ -24,21 +24,21 @@ GEM
2424
httpclient (2.8.3)
2525
i18n (1.8.5)
2626
concurrent-ruby (~> 1.0)
27-
jekyll (4.1.1)
27+
jekyll (4.2.0)
2828
addressable (~> 2.4)
2929
colorator (~> 1.0)
3030
em-websocket (~> 0.5)
3131
i18n (~> 1.0)
3232
jekyll-sass-converter (~> 2.0)
3333
jekyll-watch (~> 2.0)
34-
kramdown (~> 2.1)
34+
kramdown (~> 2.3)
3535
kramdown-parser-gfm (~> 1.0)
3636
liquid (~> 4.0)
3737
mercenary (~> 0.4.0)
3838
pathutil (~> 0.9)
3939
rouge (~> 3.0)
4040
safe_yaml (~> 1.0)
41-
terminal-table (~> 1.8)
41+
terminal-table (~> 2.0)
4242
jekyll-algolia (1.6.0)
4343
algolia_html_extractor (~> 2.6)
4444
algoliasearch (~> 1.26)
@@ -54,13 +54,13 @@ GEM
5454
sassc (> 2.0.1, < 3.0)
5555
jekyll-watch (2.2.1)
5656
listen (~> 3.0)
57-
json (2.3.1)
57+
json (2.4.1)
5858
kramdown (2.3.0)
5959
rexml
6060
kramdown-parser-gfm (1.1.0)
6161
kramdown (~> 2.0)
6262
liquid (4.0.3)
63-
listen (3.2.1)
63+
listen (3.3.3)
6464
rb-fsevent (~> 0.10, >= 0.10.3)
6565
rb-inotify (~> 0.9, >= 0.9.10)
6666
mercenary (0.4.0)
@@ -72,22 +72,22 @@ GEM
7272
pathutil (0.16.2)
7373
forwardable-extended (~> 2.6)
7474
progressbar (1.10.1)
75-
public_suffix (4.0.5)
75+
public_suffix (4.0.6)
7676
rb-fsevent (0.10.4)
7777
rb-inotify (0.10.1)
7878
ffi (~> 1.0)
7979
rexml (3.2.4)
80-
rouge (3.21.0)
80+
rouge (3.26.0)
8181
safe_yaml (1.0.5)
8282
sassc (2.4.0)
8383
ffi (~> 1.9)
8484
sassc (2.4.0-x64-mingw32)
8585
ffi (~> 1.9)
86-
terminal-table (1.8.0)
86+
terminal-table (2.0.0)
8787
unicode-display_width (~> 1.1, >= 1.1.1)
88-
tzinfo (2.0.2)
88+
tzinfo (2.0.4)
8989
concurrent-ruby (~> 1.0)
90-
tzinfo-data (1.2020.1)
90+
tzinfo-data (1.2020.4)
9191
tzinfo (>= 1.0.0)
9292
unicode-display_width (1.7.0)
9393
verbal_expressions (0.1.5)
@@ -96,13 +96,14 @@ GEM
9696
PLATFORMS
9797
ruby
9898
x64-mingw32
99+
x86_64-linux
99100

100101
DEPENDENCIES
101-
jekyll (~> 4.1.1)
102+
jekyll (~> 4.2.0)
102103
jekyll-algolia (~> 1.0)
103-
jekyll-redirect-from (~> 0.12)
104+
jekyll-redirect-from (~> 0.16)
104105
tzinfo-data
105-
wdm (~> 0.1.0)
106+
wdm (~> 0.1.1)
106107

107108
BUNDLED WITH
108-
2.1.4
109+
2.2.2

TODO.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@
2121
This should then feed a new thing that generates the examples via the CI
2222

2323
- Rethink the {% tag %}{% include %} thing... namely first one thing that parses something and then outputs variables that then include a template. Feels wrong...
24+
25+
- Add AQL highlighter

_plugins/ExtraFilters.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def join_natural(arr)
6262
def resolve_symlink(path)
6363
site = @context.registers[:site]
6464
source = site.source # base path
65-
Pathname.new(File.realpath(path)).relative_path_from(source).to_s
65+
Pathname.new(File.realpath(path)).relative_path_from(Pathname.new(source)).to_s
6666
end
6767
end
6868
end

build.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ mkdir -p htmltest
1010
# our baseUrl is /docs so we need to create that structure for htmltest
1111
# otherwise it would fail to find absolute links like /docs/3.5
1212
cp -a _site htmltest/docs
13+
# do not deploy file generated by jekyll-redirect-from v0.13.0+ plugin
14+
rm -f htmltest/docs/redirects.json
1315
htmltest -s
14-
(cd htmltest && tar cvzf docs.tar.gz docs)
16+
(cd htmltest && tar cvzf docs.tar.gz docs)

netlify.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ cp -a _site htmltest/docs
1212
cp _redirects htmltest
1313

1414
(cd /tmp && \
15-
wget -nv https://github.com/wjdp/htmltest/releases/download/v0.10.1/htmltest_0.10.1_linux_amd64.tar.gz && \
16-
tar xvzf htmltest_0.10.1_linux_amd64.tar.gz
15+
wget -nv https://github.com/wjdp/htmltest/releases/download/v0.13.0/htmltest_0.13.0_linux_amd64.tar.gz && \
16+
tar xvzf htmltest_0.13.0_linux_amd64.tar.gz
1717
)
1818

1919
/tmp/htmltest -s

0 commit comments

Comments
 (0)