Skip to content

Commit ca22f43

Browse files
authored
Merge pull request #176 from untra/fix/dependency-upgrades
prep for 1.6.0 release
2 parents e06ae41 + 34d1004 commit ca22f43

File tree

236 files changed

+8507
-4583
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+8507
-4583
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,8 @@ Gemfile.lock
4747
_site/**
4848
vendor/bundle
4949

50+
# test output
51+
rspec.xml
52+
5053
# NOTE: this will need to be ungitignored to run publish
5154
# site/_site

CONTRIBUTING.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Welcome to Polyglot contributing guide
2+
Thank you for investing your time in contributing to our project! Any contribution you make will be reflected on https://polyglot.untra.io ✨.
3+
4+
This guide covers steps for interested contributors to polyglot source code, documentation or example website.
5+
6+
## Running tests
7+
8+
If you make any contributions to ruby source code, I will request you add a test to the spec.
9+
10+
In the spec/ directory there are a series of ruby spec files.
11+
12+
run tests with `bundle exec rspec`
13+

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ group :test do
1111
gem 'rubocop', '~>1.36.0'
1212
end
1313

14-
gem 'github-pages'
1514
gem 'jekyll'
1615
gem 'jekyll-paginate'
1716
gem "webrick", "~> 1.7"

Gemfile.lock

Lines changed: 16 additions & 205 deletions
Original file line numberDiff line numberDiff line change
@@ -1,210 +1,47 @@
11
PATH
22
remote: .
33
specs:
4-
jekyll-polyglot (1.5.1)
5-
jekyll (>= 3.0)
4+
jekyll-polyglot (1.6.0)
5+
jekyll (>= 4.0, >= 3.0)
66

77
GEM
88
remote: https://rubygems.org/
99
specs:
10-
activesupport (6.0.6.1)
11-
concurrent-ruby (~> 1.0, >= 1.0.2)
12-
i18n (>= 0.7, < 2)
13-
minitest (~> 5.1)
14-
tzinfo (~> 1.1)
15-
zeitwerk (~> 2.2, >= 2.2.2)
1610
addressable (2.8.1)
1711
public_suffix (>= 2.0.2, < 6.0)
1812
ast (2.4.2)
19-
coffee-script (2.4.1)
20-
coffee-script-source
21-
execjs
22-
coffee-script-source (1.11.1)
2313
colorator (1.1.0)
24-
commonmarker (0.23.7)
2514
concurrent-ruby (1.2.2)
2615
diff-lcs (1.5.0)
27-
dnsruby (1.61.9)
28-
simpleidn (~> 0.1)
2916
em-websocket (0.5.3)
3017
eventmachine (>= 0.12.9)
3118
http_parser.rb (~> 0)
32-
ethon (0.15.0)
33-
ffi (>= 1.15.0)
3419
eventmachine (1.2.7)
35-
execjs (2.8.1)
36-
faraday (2.5.2)
37-
faraday-net_http (>= 2.0, < 3.1)
38-
ruby2_keywords (>= 0.0.4)
39-
faraday-net_http (3.0.0)
4020
ffi (1.15.5)
4121
forwardable-extended (2.6.0)
42-
gemoji (3.0.1)
43-
github-pages (227)
44-
github-pages-health-check (= 1.17.9)
45-
jekyll (= 3.9.2)
46-
jekyll-avatar (= 0.7.0)
47-
jekyll-coffeescript (= 1.1.1)
48-
jekyll-commonmark-ghpages (= 0.2.0)
49-
jekyll-default-layout (= 0.1.4)
50-
jekyll-feed (= 0.15.1)
51-
jekyll-gist (= 1.5.0)
52-
jekyll-github-metadata (= 2.13.0)
53-
jekyll-include-cache (= 0.2.1)
54-
jekyll-mentions (= 1.6.0)
55-
jekyll-optional-front-matter (= 0.3.2)
56-
jekyll-paginate (= 1.1.0)
57-
jekyll-readme-index (= 0.3.0)
58-
jekyll-redirect-from (= 0.16.0)
59-
jekyll-relative-links (= 0.6.1)
60-
jekyll-remote-theme (= 0.4.3)
61-
jekyll-sass-converter (= 1.5.2)
62-
jekyll-seo-tag (= 2.8.0)
63-
jekyll-sitemap (= 1.4.0)
64-
jekyll-swiss (= 1.0.0)
65-
jekyll-theme-architect (= 0.2.0)
66-
jekyll-theme-cayman (= 0.2.0)
67-
jekyll-theme-dinky (= 0.2.0)
68-
jekyll-theme-hacker (= 0.2.0)
69-
jekyll-theme-leap-day (= 0.2.0)
70-
jekyll-theme-merlot (= 0.2.0)
71-
jekyll-theme-midnight (= 0.2.0)
72-
jekyll-theme-minimal (= 0.2.0)
73-
jekyll-theme-modernist (= 0.2.0)
74-
jekyll-theme-primer (= 0.6.0)
75-
jekyll-theme-slate (= 0.2.0)
76-
jekyll-theme-tactile (= 0.2.0)
77-
jekyll-theme-time-machine (= 0.2.0)
78-
jekyll-titles-from-headings (= 0.5.3)
79-
jemoji (= 0.12.0)
80-
kramdown (= 2.3.2)
81-
kramdown-parser-gfm (= 1.1.0)
82-
liquid (= 4.0.3)
83-
mercenary (~> 0.3)
84-
minima (= 2.5.1)
85-
nokogiri (>= 1.13.6, < 2.0)
86-
rouge (= 3.26.0)
87-
terminal-table (~> 1.4)
88-
github-pages-health-check (1.17.9)
89-
addressable (~> 2.3)
90-
dnsruby (~> 1.60)
91-
octokit (~> 4.0)
92-
public_suffix (>= 3.0, < 5.0)
93-
typhoeus (~> 1.3)
94-
html-pipeline (2.14.2)
95-
activesupport (>= 2)
96-
nokogiri (>= 1.4)
9722
http_parser.rb (0.8.0)
9823
i18n (0.9.5)
9924
concurrent-ruby (~> 1.0)
100-
jekyll (3.9.2)
25+
jekyll (4.0.1)
10126
addressable (~> 2.4)
10227
colorator (~> 1.0)
10328
em-websocket (~> 0.5)
104-
i18n (~> 0.7)
105-
jekyll-sass-converter (~> 1.0)
29+
i18n (>= 0.9.5, < 2)
30+
jekyll-sass-converter (~> 2.0)
10631
jekyll-watch (~> 2.0)
107-
kramdown (>= 1.17, < 3)
32+
kramdown (~> 2.1)
33+
kramdown-parser-gfm (~> 1.0)
10834
liquid (~> 4.0)
10935
mercenary (~> 0.3.3)
11036
pathutil (~> 0.9)
111-
rouge (>= 1.7, < 4)
37+
rouge (~> 3.0)
11238
safe_yaml (~> 1.0)
113-
jekyll-avatar (0.7.0)
114-
jekyll (>= 3.0, < 5.0)
115-
jekyll-coffeescript (1.1.1)
116-
coffee-script (~> 2.2)
117-
coffee-script-source (~> 1.11.1)
118-
jekyll-commonmark (1.4.0)
119-
commonmarker (~> 0.22)
120-
jekyll-commonmark-ghpages (0.2.0)
121-
commonmarker (~> 0.23.4)
122-
jekyll (~> 3.9.0)
123-
jekyll-commonmark (~> 1.4.0)
124-
rouge (>= 2.0, < 4.0)
125-
jekyll-default-layout (0.1.4)
126-
jekyll (~> 3.0)
127-
jekyll-feed (0.15.1)
128-
jekyll (>= 3.7, < 5.0)
129-
jekyll-gist (1.5.0)
130-
octokit (~> 4.2)
131-
jekyll-github-metadata (2.13.0)
132-
jekyll (>= 3.4, < 5.0)
133-
octokit (~> 4.0, != 4.4.0)
134-
jekyll-include-cache (0.2.1)
135-
jekyll (>= 3.7, < 5.0)
136-
jekyll-mentions (1.6.0)
137-
html-pipeline (~> 2.3)
138-
jekyll (>= 3.7, < 5.0)
139-
jekyll-optional-front-matter (0.3.2)
140-
jekyll (>= 3.0, < 5.0)
39+
terminal-table (~> 1.8)
14140
jekyll-paginate (1.1.0)
142-
jekyll-readme-index (0.3.0)
143-
jekyll (>= 3.0, < 5.0)
144-
jekyll-redirect-from (0.16.0)
145-
jekyll (>= 3.3, < 5.0)
146-
jekyll-relative-links (0.6.1)
147-
jekyll (>= 3.3, < 5.0)
148-
jekyll-remote-theme (0.4.3)
149-
addressable (~> 2.0)
150-
jekyll (>= 3.5, < 5.0)
151-
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
152-
rubyzip (>= 1.3.0, < 3.0)
153-
jekyll-sass-converter (1.5.2)
154-
sass (~> 3.4)
155-
jekyll-seo-tag (2.8.0)
156-
jekyll (>= 3.8, < 5.0)
157-
jekyll-sitemap (1.4.0)
158-
jekyll (>= 3.7, < 5.0)
159-
jekyll-swiss (1.0.0)
160-
jekyll-theme-architect (0.2.0)
161-
jekyll (> 3.5, < 5.0)
162-
jekyll-seo-tag (~> 2.0)
163-
jekyll-theme-cayman (0.2.0)
164-
jekyll (> 3.5, < 5.0)
165-
jekyll-seo-tag (~> 2.0)
166-
jekyll-theme-dinky (0.2.0)
167-
jekyll (> 3.5, < 5.0)
168-
jekyll-seo-tag (~> 2.0)
169-
jekyll-theme-hacker (0.2.0)
170-
jekyll (> 3.5, < 5.0)
171-
jekyll-seo-tag (~> 2.0)
172-
jekyll-theme-leap-day (0.2.0)
173-
jekyll (> 3.5, < 5.0)
174-
jekyll-seo-tag (~> 2.0)
175-
jekyll-theme-merlot (0.2.0)
176-
jekyll (> 3.5, < 5.0)
177-
jekyll-seo-tag (~> 2.0)
178-
jekyll-theme-midnight (0.2.0)
179-
jekyll (> 3.5, < 5.0)
180-
jekyll-seo-tag (~> 2.0)
181-
jekyll-theme-minimal (0.2.0)
182-
jekyll (> 3.5, < 5.0)
183-
jekyll-seo-tag (~> 2.0)
184-
jekyll-theme-modernist (0.2.0)
185-
jekyll (> 3.5, < 5.0)
186-
jekyll-seo-tag (~> 2.0)
187-
jekyll-theme-primer (0.6.0)
188-
jekyll (> 3.5, < 5.0)
189-
jekyll-github-metadata (~> 2.9)
190-
jekyll-seo-tag (~> 2.0)
191-
jekyll-theme-slate (0.2.0)
192-
jekyll (> 3.5, < 5.0)
193-
jekyll-seo-tag (~> 2.0)
194-
jekyll-theme-tactile (0.2.0)
195-
jekyll (> 3.5, < 5.0)
196-
jekyll-seo-tag (~> 2.0)
197-
jekyll-theme-time-machine (0.2.0)
198-
jekyll (> 3.5, < 5.0)
199-
jekyll-seo-tag (~> 2.0)
200-
jekyll-titles-from-headings (0.5.3)
201-
jekyll (>= 3.3, < 5.0)
41+
jekyll-sass-converter (2.2.0)
42+
sassc (> 2.0.1, < 3.0)
20243
jekyll-watch (2.2.1)
20344
listen (~> 3.0)
204-
jemoji (0.12.0)
205-
gemoji (~> 3.0)
206-
html-pipeline (~> 2.2)
207-
jekyll (>= 3.0, < 5.0)
20845
json (2.6.2)
20946
kramdown (2.3.2)
21047
rexml
@@ -216,19 +53,12 @@ GEM
21653
rb-inotify (~> 0.9, >= 0.9.10)
21754
mercenary (0.3.6)
21855
mini_portile2 (2.8.1)
219-
minima (2.5.1)
220-
jekyll (>= 3.5, < 5.0)
221-
jekyll-feed (~> 0.9)
222-
jekyll-seo-tag (~> 2.1)
22356
minitest (5.16.3)
22457
nokogiri (1.13.10)
22558
mini_portile2 (~> 2.8.0)
22659
racc (~> 1.4)
22760
nokogiri (1.13.10-x86_64-darwin)
22861
racc (~> 1.4)
229-
octokit (4.25.1)
230-
faraday (>= 1, < 3)
231-
sawyer (~> 0.9)
23262
parallel (1.22.1)
23363
parser (3.1.2.1)
23464
ast (~> 2.4.1)
@@ -272,38 +102,19 @@ GEM
272102
rubocop-ast (1.21.0)
273103
parser (>= 3.1.1.0)
274104
ruby-progressbar (1.11.0)
275-
ruby2_keywords (0.0.5)
276-
rubyzip (2.3.2)
277105
safe_yaml (1.0.5)
278-
sass (3.7.4)
279-
sass-listen (~> 4.0.0)
280-
sass-listen (4.0.0)
281-
rb-fsevent (~> 0.9, >= 0.9.4)
282-
rb-inotify (~> 0.9, >= 0.9.7)
283-
sawyer (0.9.2)
284-
addressable (>= 2.3.5)
285-
faraday (>= 0.17.3, < 3)
286-
simpleidn (0.2.1)
287-
unf (~> 0.1.4)
288-
terminal-table (1.6.0)
289-
thread_safe (0.3.6)
290-
typhoeus (1.4.0)
291-
ethon (>= 0.9.0)
292-
tzinfo (1.2.11)
293-
thread_safe (~> 0.1)
294-
unf (0.1.4)
295-
unf_ext
296-
unf_ext (0.0.8.2)
297-
unicode-display_width (2.3.0)
106+
sassc (2.4.0)
107+
ffi (~> 1.9)
108+
terminal-table (1.8.0)
109+
unicode-display_width (~> 1.1, >= 1.1.1)
110+
unicode-display_width (1.8.0)
298111
webrick (1.7.0)
299-
zeitwerk (2.6.7)
300112

301113
PLATFORMS
302114
ruby
303115
x86_64-darwin-21
304116

305117
DEPENDENCIES
306-
github-pages
307118
jekyll
308119
jekyll-paginate
309120
jekyll-polyglot!

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ or whatever appropriate [I18n language code](https://developer.chrome.com/websto
5050
the page should build for. And you're done. Ideally, when designing your site, you should
5151
organize files by their relative urls.
5252

53+
You can see how the live polyglot website [configures and supports multiple languages](https://github.com/untra/polyglot/blob/master/site/_config.yml#L28-L37), and examples of [community](https://github.com/untra/polyglot/pull/155) [language](https://github.com/untra/polyglot/pull/167) [contributions](https://github.com/untra/polyglot/pull/177).
54+
5355
Polyglot works by associating documents with similar permalinks to the `lang` specified in their frontmatter. Files that correspond to similar routes should have identical permalinks. If you don't provide a permalink for a post, ___make sure you are consistent___ with how you place and name corresponding files:
5456
```
5557
_posts/2010-03-01-salad-recipes-en.md
@@ -142,7 +144,7 @@ lang-exclusive: ['en', 'fr']
142144
#### Machine-aware site building
143145
_New in 1.5.0_
144146

145-
Polyglot will only start builds after it confirms there is a cpu core ready to accept the build thread. This ensures that jekyll will build large sites efficiently streamlining build processes instead of overloading machines with process thrash.
147+
Polyglot will only start builds after it confirms there is a cpu core ready to accept the build thread. This ensures that jekyll will build large sites efficiently, streamlining build processes instead of overloading machines with process thrash.
146148

147149
#### Localized site.data
148150

@@ -155,6 +157,13 @@ This plugin makes modifications to existing Jekyll classes and modules, namely `
155157

156158
`Jekyll::Site.process` is the entry point for the Jekyll build process. Take care whatever other plugins you use do not also attempt to overwrite this method. You may have problems.
157159

160+
161+
### Writing Tests and Debugging
162+
_:wave: I need assistance with modern ruby best practices for test maintenance with rake and rspec. If you got the advice I have the ears._
163+
164+
Tests are run with `bundle exec rake`. Tests are in the `/spec` directory, and test failure output detail can be examined in the `rspec.xml` file.
165+
166+
158167
## Features
159168
This plugin stands out from other I18n Jekyll plugins.
160169
- automatically corrects your relative links, keeping your *french* visitors on your *french* website, even when content has to fallback to the `default_lang`.
@@ -181,10 +190,10 @@ Feel free to open a PR and list your multilingual blog here you may want to shar
181190
* [Ubuntu MATE](https://ubuntu-mate.org)
182191
* [Leo3418 blog](https://leo3418.github.io/)
183192
* [Gaphor](https://gaphor.org)
193+
* [Yi Yunseok's personal blog website](https://Yi-Yunseok.GitHub.io)
184194

185195
## Compatibility
186196
Currently supports Jekyll 3.0 , and Jekyll 4.0
187-
188197
* Windows users will need to disable parallel_localization on their machines by setting `parallel_localization: false` in the `_config.yml`
189198
* In Jekyll 4.0 , SCSS source maps will generate improperly due to how Polyglot operates. The workaround is to disable the CSS sourcemaps. Adding the following to your `config.yml` will disable sourcemap generation:
190199
```yaml
@@ -195,18 +204,21 @@ sass:
195204
## Contributions
196205
Please! I need all the support I can get! 🙏
197206

198-
But for real I would appreciate any contributions and support. This started as an open-source side-project and has gotten bigger than I'd ever imagine!
207+
But for real I would appreciate any code contributions and support. This started as an open-source side-project and has gotten bigger than I'd ever imagine!
199208
If you have something you'd like to contribute to jekyll-polyglot, please open a PR!
200209

201210

202211
## 2.0 Roadmap
203-
* [ ] - **site language**: portuguese `pt_BR` `pt_PT`
212+
* [ ] - **site language**: portuguese Brazil `pt-BR` `pt-PT`
213+
* [ ] - **site language**: portuguese Portugal `pt-BR` `pt-PT`
204214
* [ ] - **site language**: arabic `ar`
205215
* [ ] - **site language**: japanese `ja`
206216
* [x] - **site language**: russian `ru`
207217
* [x] - **site language**: dutch `nl`
208218
* [x] - **site language**: korean `ko`
209219
* [x] - **site language**: hebrew `he`
220+
* [x] - **site language**: chinese China `zh-CN`
221+
* [ ] - **site language**: chinese Taiwan `zh_TW`
210222
* [ ] - get whitelisted as an official github-pages jekyll plugin
211223
* [x] - update CI provider
212224

0 commit comments

Comments
 (0)