Skip to content

Commit ba9f00d

Browse files
authored
Prep for v1.8.0 release (#193)
* Sun Oct 29 17:52:29 MDT 2023 * readme updates and sitemap generation. More word prep. * added raw tags help with rendering * Mon Mar 4 08:57:59 MST 2024 * updates to subprocess testing, obfusk site additions * v1.8.0 prep * posts for v1.8.0 * update lockfile * commit updated website
1 parent 3d9562b commit ba9f00d

File tree

418 files changed

+51969
-6102
lines changed

Some content is hidden

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

418 files changed

+51969
-6102
lines changed

Gemfile.lock

Lines changed: 50 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,35 @@
11
PATH
22
remote: .
33
specs:
4-
jekyll-polyglot (1.7.0)
4+
jekyll-polyglot (1.8.0)
55
jekyll (>= 4.0, >= 3.0)
66

77
GEM
88
remote: https://rubygems.org/
99
specs:
10-
addressable (2.8.5)
10+
addressable (2.8.6)
1111
public_suffix (>= 2.0.2, < 6.0)
1212
ast (2.4.2)
1313
colorator (1.1.0)
14-
concurrent-ruby (1.2.2)
15-
diff-lcs (1.5.0)
14+
concurrent-ruby (1.2.3)
15+
diff-lcs (1.5.1)
1616
em-websocket (0.5.3)
1717
eventmachine (>= 0.12.9)
1818
http_parser.rb (~> 0)
1919
eventmachine (1.2.7)
2020
ffi (1.16.3)
2121
ffi (1.16.3-x64-mingw-ucrt)
2222
forwardable-extended (2.6.0)
23-
google-protobuf (3.24.4)
24-
google-protobuf (3.24.4-x64-mingw-ucrt)
25-
google-protobuf (3.24.4-x86_64-darwin)
23+
google-protobuf (4.26.0)
24+
rake (>= 13)
25+
google-protobuf (4.26.0-x64-mingw-ucrt)
26+
rake (>= 13)
27+
google-protobuf (4.26.0-x86_64-darwin)
28+
rake (>= 13)
2629
http_parser.rb (0.8.0)
27-
i18n (1.14.1)
30+
i18n (1.14.4)
2831
concurrent-ruby (~> 1.0)
29-
jekyll (4.3.2)
32+
jekyll (4.3.3)
3033
addressable (~> 2.4)
3134
colorator (~> 1.0)
3235
em-websocket (~> 0.5)
@@ -49,77 +52,79 @@ GEM
4952
sass-embedded (~> 1.54)
5053
jekyll-watch (2.2.1)
5154
listen (~> 3.0)
52-
json (2.6.3)
55+
json (2.7.1)
5356
kramdown (2.4.0)
5457
rexml
5558
kramdown-parser-gfm (1.1.0)
5659
kramdown (~> 2.0)
60+
language_server-protocol (3.17.0.3)
5761
liquid (4.0.4)
58-
listen (3.8.0)
62+
listen (3.9.0)
5963
rb-fsevent (~> 0.10, >= 0.10.3)
6064
rb-inotify (~> 0.9, >= 0.9.10)
6165
mercenary (0.4.0)
6266
mini_portile2 (2.8.5)
63-
minitest (5.16.3)
64-
nokogiri (1.15.4)
67+
minitest (5.22.3)
68+
nokogiri (1.16.3)
6569
mini_portile2 (~> 2.8.2)
6670
racc (~> 1.4)
67-
nokogiri (1.15.4-x64-mingw-ucrt)
71+
nokogiri (1.16.3-x64-mingw-ucrt)
6872
racc (~> 1.4)
69-
nokogiri (1.15.4-x86_64-darwin)
73+
nokogiri (1.16.3-x86_64-darwin)
7074
racc (~> 1.4)
71-
parallel (1.23.0)
72-
parser (3.2.2.4)
75+
parallel (1.24.0)
76+
parser (3.3.0.5)
7377
ast (~> 2.4.1)
7478
racc
7579
pathutil (0.16.2)
7680
forwardable-extended (~> 2.6)
77-
public_suffix (5.0.3)
78-
racc (1.7.1)
81+
public_suffix (5.0.4)
82+
racc (1.7.3)
7983
rainbow (3.1.1)
80-
rake (13.0.6)
84+
rake (13.1.0)
8185
rb-fsevent (0.11.2)
8286
rb-inotify (0.10.1)
8387
ffi (~> 1.0)
84-
regexp_parser (2.8.1)
88+
regexp_parser (2.9.0)
8589
rexml (3.2.6)
86-
rouge (4.1.3)
87-
rspec (3.11.0)
88-
rspec-core (~> 3.11.0)
89-
rspec-expectations (~> 3.11.0)
90-
rspec-mocks (~> 3.11.0)
91-
rspec-core (3.11.0)
92-
rspec-support (~> 3.11.0)
93-
rspec-expectations (3.11.1)
90+
rouge (4.2.0)
91+
rspec (3.13.0)
92+
rspec-core (~> 3.13.0)
93+
rspec-expectations (~> 3.13.0)
94+
rspec-mocks (~> 3.13.0)
95+
rspec-core (3.13.0)
96+
rspec-support (~> 3.13.0)
97+
rspec-expectations (3.13.0)
9498
diff-lcs (>= 1.2.0, < 2.0)
95-
rspec-support (~> 3.11.0)
96-
rspec-mocks (3.11.2)
99+
rspec-support (~> 3.13.0)
100+
rspec-mocks (3.13.0)
97101
diff-lcs (>= 1.2.0, < 2.0)
98-
rspec-support (~> 3.11.0)
99-
rspec-support (3.11.1)
102+
rspec-support (~> 3.13.0)
103+
rspec-support (3.13.1)
100104
rspec_junit_formatter (0.6.0)
101105
rspec-core (>= 2, < 4, != 2.12.0)
102-
rubocop (1.36.0)
106+
rubocop (1.62.1)
103107
json (~> 2.3)
108+
language_server-protocol (>= 3.17.0)
104109
parallel (~> 1.10)
105-
parser (>= 3.1.2.1)
110+
parser (>= 3.3.0.2)
106111
rainbow (>= 2.2.2, < 4.0)
107112
regexp_parser (>= 1.8, < 3.0)
108113
rexml (>= 3.2.5, < 4.0)
109-
rubocop-ast (>= 1.20.1, < 2.0)
114+
rubocop-ast (>= 1.31.1, < 2.0)
110115
ruby-progressbar (~> 1.7)
111-
unicode-display_width (>= 1.4.0, < 3.0)
112-
rubocop-ast (1.29.0)
113-
parser (>= 3.2.1.0)
116+
unicode-display_width (>= 2.4.0, < 3.0)
117+
rubocop-ast (1.31.2)
118+
parser (>= 3.3.0.4)
114119
ruby-progressbar (1.13.0)
115120
safe_yaml (1.0.5)
116-
sass-embedded (1.68.0)
117-
google-protobuf (~> 3.23)
121+
sass-embedded (1.72.0)
122+
google-protobuf (>= 3.25, < 5.0)
118123
rake (>= 13.0.0)
119-
sass-embedded (1.68.0-x64-mingw-ucrt)
120-
google-protobuf (~> 3.23)
121-
sass-embedded (1.68.0-x86_64-darwin)
122-
google-protobuf (~> 3.23)
124+
sass-embedded (1.72.0-x64-mingw-ucrt)
125+
google-protobuf (>= 3.25, < 5.0)
126+
sass-embedded (1.72.0-x86_64-darwin)
127+
google-protobuf (>= 3.25, < 5.0)
123128
terminal-table (3.0.2)
124129
unicode-display_width (>= 1.1.1, < 3)
125130
unicode-display_width (2.5.0)

README.md

Lines changed: 44 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ In short:
6969

7070

7171
### Translation permalink information in page
72-
_New in 1.7.1_
72+
_New in 1.8.0_
7373

7474
Whenever `page_id` frontmatter properties are used to identify translations, permalink information for the available languages is available in `permalink_lang`.
75-
This is useful in order to generate language menus and even localization meta information without redirections!
75+
This is useful in order to generate language menus and even localization meta information without redirects!
7676

7777
Sample code for meta link generation:
7878
```
@@ -177,8 +177,7 @@ Combine with a [html minifier](https://github.com/digitalsparky/jekyll-minifier)
177177
### Exclusive site language generation
178178
_New in 1.4.0_
179179

180-
If you want to control which languages a document can be generated for, you can specify `lang-exclusive: [ ]` frontmatter.
181-
If you include this frontmatter in your post, it will only generate for the specified site languages.
180+
If you want to control which languages a document can be generated for, you can specify `lang-exclusive: [ ]` frontmatter. If you include this frontmatter in your post, it will only generate for the specified site languages.
182181

183182
For Example, the following frontmatter will only generate in the `en` and `fr` site language builds:
184183
```
@@ -234,6 +233,16 @@ This plugin makes modifications to existing Jekyll classes and modules, namely `
234233

235234
`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.
236235

236+
### (:polyglot, :post_write) hook
237+
_New in 1.8.0_
238+
Polyglot issues a `:polyglot, :post_write` hook event once all languages have been built for the site. This hook runs exactly once, after all site languages been processed:
239+
240+
```rb
241+
Jekyll::Hooks.register :polyglot, :post_write do |site|
242+
# do something custom and cool here!
243+
end
244+
```
245+
237246
### Machine-aware site building
238247
_New in 1.5.0_
239248

@@ -244,7 +253,6 @@ _:wave: I need assistance with modern ruby best practices for test maintenance w
244253

245254
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.
246255

247-
248256
## Features
249257
This plugin stands out from other I18n Jekyll plugins.
250258
- automatically corrects your relative links, keeping your *french* visitors on your *french* website, even when content has to fallback to the `default_lang`.
@@ -260,19 +268,9 @@ This plugin stands out from other I18n Jekyll plugins.
260268
## SEO Recipes
261269
Jekyll-polyglot has a few spectacular [Search Engine Optimization techniques](https://untra.github.io/polyglot/seo) to ensure your Jekyll blog gets the most out of its multilingual audience. Check them out!
262270

263-
### Other Websites Built with Polyglot
264-
Feel free to open a PR and list your multilingual blog here you may want to share:
271+
### Sitemap generation
265272

266-
* [Polyglot project website](https://polyglot.untra.io)
267-
* [LogRhythm Corporate Website](https://logrhythm.com)
268-
* [All Over Earth](https://allover.earth/)
269-
* [Hanare Cafe in Toshijima, Japan](https://hanarecafe.com)
270-
* [F-Droid](https://f-droid.org)
271-
* [Ubuntu MATE](https://ubuntu-mate.org)
272-
* [Leo3418 blog](https://leo3418.github.io/)
273-
* [Gaphor](https://gaphor.org)
274-
* [Yi Yunseok's personal blog website](https://Yi-Yunseok.GitHub.io)
275-
* [A beautiful, simple, clean, and responsive Jekyll theme for academics](https://github.com/george-gca/multi-language-al-folio)
273+
See the example [sitemap.xml](/site/sitemap.xml) and [robots.txt](/site/robots.txt) for how to automatically generate a multi-language sitemap for your page and turn it in for the SEO i18n credit.
276274

277275
## Compatibility
278276
Currently supports Jekyll 3.0 , and Jekyll 4.0
@@ -289,6 +287,34 @@ Please! I need all the support I can get! 🙏
289287
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!
290288
If you have something you'd like to contribute to jekyll-polyglot, please open a PR!
291289

290+
### Contributors
291+
These are talented and considerate software developers across the world that have lent their support to this project.
292+
**Thank You! ¡Gracias! Merci! Danke! 감사합니다! תודה רבה! Спасибо! Dankjewel! 谢谢!Obrigado!**
293+
294+
* [@jerturowetz](https://github.com/jerturowetz) 1.7.1
295+
* [@antoniovazquezblanco](https://github.com/antoniovazquezblanco) [1.7.0](https://polyglot.untra.io/2023/10/29/polyglot-1.7.0/)
296+
* [@salinatedcoffee](https://github.com/SalinatedCoffee) [ko support](https://polyglot.untra.io/2023/02/27/korean-support/)
297+
* [@aturret](https://github.com/aturret) [zh-CN support](https://polyglot.untra.io/2023/06/08/polyglot-1.6.0-chinese-support/)
298+
* [@dougieh](https://github.com/dougieh) [1.5.1](https://polyglot.untra.io/2022/10/01/polyglot-1.5.1/)
299+
* [@pandermusubi](https://github.com/PanderMusubi) [nl support](https://polyglot.untra.io/2022/01/15/dutch-site-support/)
300+
* [@obfusk](https://github.com/obfusk) [1.5.0](https://polyglot.untra.io/2021/07/17/polyglot-1.5.0/)
301+
* [@eighthave](https://github.com/eighthave) [1.5.0](https://polyglot.untra.io/2021/07/17/polyglot-1.5.0/)
302+
* [@george-gca](https://github.com/george-gca) [Localized Variables](https://polyglot.untra.io/2024/02/29/localized-variables.md)
303+
304+
### Other Websites Built with Polyglot
305+
Feel free to open a PR and list your multilingual blog here you may want to share:
306+
307+
* [**Polyglot project website**](https://polyglot.untra.io)
308+
* [LogRhythm Corporate Website](https://logrhythm.com)
309+
* [All Over Earth](https://allover.earth/)
310+
* [Hanare Cafe in Toshijima, Japan](https://hanarecafe.com)
311+
* [F-Droid](https://f-droid.org)
312+
* [Ubuntu MATE](https://ubuntu-mate.org)
313+
* [Leo3418 blog](https://leo3418.github.io/)
314+
* [Gaphor](https://gaphor.org)
315+
* [Yi Yunseok's personal blog website](https://Yi-Yunseok.GitHub.io)
316+
* [Tarlogic Cybersecurity](https://www.tarlogic.com/)
317+
* [A beautiful, simple, clean, and responsive Jekyll theme for academics](https://github.com/george-gca/multi-language-al-folio)
292318

293319
## 2.0 Roadmap
294320
* [x] - **site language**: portuguese Brazil `pt-BR`
@@ -300,7 +326,7 @@ If you have something you'd like to contribute to jekyll-polyglot, please open a
300326
* [x] - **site language**: korean `ko`
301327
* [x] - **site language**: hebrew `he`
302328
* [x] - **site language**: chinese China `zh-CN`
303-
* [ ] - **site language**: chinese Taiwan `zh_TW`
329+
* [ ] - **site language**: chinese Taiwan `zh-TW`
304330
* [ ] - get whitelisted as an official github-pages jekyll plugin
305331
* [x] - update CI provider
306332

jekyll-polyglot.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gem::Specification.new do |s|
22
s.name = 'jekyll-polyglot'
3-
s.version = '1.7.0'
4-
s.date = '2023-10-29'
3+
s.version = '1.8.0'
4+
s.date = '2024-03-17'
55
s.summary = 'I18n plugin for Jekyll Blogs'
66
s.description = 'Fast open source i18n plugin for Jekyll blogs.'
77
s.authors = ['Samuel Volin']

lib/jekyll/polyglot/patches/jekyll/site.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ def process
4343
while pids.length >= (lang == all_langs[-1] ? 1 : nproc)
4444
sleep 0.1
4545
pids.map do |lang, pid|
46-
pids.delete lang if waitpid pid, Process::WNOHANG
46+
next unless waitpid pid, Process::WNOHANG
47+
48+
pids.delete lang
49+
raise "Polyglot subprocess #{pid} (#{lang}) failed (#{$?.exitstatus})" unless $?.success?
4750
end
4851
end
4952
end
@@ -60,6 +63,7 @@ def process
6063
process_language lang
6164
end
6265
end
66+
Jekyll::Hooks.trigger :polyglot, :post_write
6367
end
6468

6569
alias site_payload_orig site_payload

make.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@echo off
2-
set VERSION="1.7.0"
2+
set VERSION="1.8.0"
33
REM this is running tests
44
CALL gem build jekyll-polyglot.gemspec
55
CALL gem install jekyll-polyglot-%VERSION%.gem

make.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
VERSION="1.7.0"
2+
VERSION="1.8.0"
33
# this is running tests
44
gem build jekyll-polyglot.gemspec
55
gem install jekyll-polyglot-$VERSION.gem

site/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ url: https://polyglot.untra.io
6262

6363
paginate: 5
6464
# Custom vars
65-
version: 1.7.0
65+
version: 1.8.0
6666
# practical values langsep are "|", "•", "·", "-", "–"
6767
langsep: ""
6868

site/_layouts/content.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{content}}

site/_posts/2023-10-29-polyglot-1.7.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: post
3-
title: Polyglot 1.7.0 and `page_id` front-matter for different permalinks by language
3+
title: Polyglot 1.7.0 and page_id front-matter for different permalinks by language
44
lang: en
55
---
66

0 commit comments

Comments
 (0)