Skip to content

Commit 5c522c5

Browse files
authored
Merge pull request #453 from bangseongbeom/jekyll-redirect-from
Replace alias_generator.rb with jekyll-redirect-from
2 parents c226f94 + 2e77115 commit 5c522c5

10 files changed

Lines changed: 15 additions & 114 deletions

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
source "https://rubygems.org"
44

55
gem "jekyll", "~> 4.2"
6+
gem "jekyll-redirect-from", "~> 0.16"
67
gem "mdl", "~> 0.11.0"
78
gem "rake", "~> 13.0"
89
gem "rdoc", "~> 6.4"

Gemfile.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ GEM
9191
safe_yaml (~> 1.0)
9292
terminal-table (>= 1.8, < 4.0)
9393
webrick (~> 1.7)
94+
jekyll-redirect-from (0.16.0)
95+
jekyll (>= 3.3, < 5.0)
9496
jekyll-sass-converter (3.1.0)
9597
sass-embedded (~> 1.75)
9698
jekyll-watch (2.2.1)
@@ -206,6 +208,7 @@ DEPENDENCIES
206208
base64 (~> 0.3)
207209
csv (~> 3.3)
208210
jekyll (~> 4.2)
211+
jekyll-redirect-from (~> 0.16)
209212
logger (~> 1.7)
210213
mdl (~> 0.11.0)
211214
rake (~> 13.0)
@@ -256,6 +259,7 @@ CHECKSUMS
256259
i18n (1.14.8) sha256=285778639134865c5e0f6269e0b818256017e8cde89993fdfcbfb64d088824a5
257260
jar-dependencies (0.5.5) sha256=2972b9fcba4b014e6446a84b5c09674a3e8648b95b71768e729f0e8e40568059
258261
jekyll (4.4.1) sha256=4c1144d857a5b2b80d45b8cf5138289579a9f8136aadfa6dd684b31fe2bc18c1
262+
jekyll-redirect-from (0.16.0) sha256=6635cae569ef9b0f90ffb71ec014ba977177fafb44d32a2b0526288d4d9be6db
259263
jekyll-sass-converter (3.1.0) sha256=83925d84f1d134410c11d0c6643b0093e82e3a3cf127e90757a85294a3862443
260264
jekyll-watch (2.2.1) sha256=bc44ed43f5e0a552836245a54dbff3ea7421ecc2856707e8a1ee203a8387a7e1
261265
json (2.19.2) sha256=e7e1bd318b2c37c4ceee2444841c86539bc462e81f40d134cf97826cb14e83cf

_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@ exclude:
44
- CNAME
55
- vendor
66
permalink: "pretty"
7+
plugins:
8+
- jekyll-redirect-from
79
safe: true
10+
whitelist:
11+
- jekyll-redirect-from
812
markdown: kramdown

_plugins/alias_generator.rb

Lines changed: 0 additions & 108 deletions
This file was deleted.

dependency_management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: How to manage dependencies with Bundler
44
url: /dependency_management
55
previous: /groups
66
next: /rubygems_tls_ssl_troubleshooting_guide
7-
alias:
7+
redirect_from:
88
- /bundler_sharing
99
- /rationale
1010
---

faqs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Frequently Asked Questions
44
url: /faqs
55
previous: /contributing
66
next: /plugins
7-
alias: /faq
7+
redirect_from: /faq
88
---
99

1010
<em class="t-gray">More of the "why" and "wtf" than "how".</em>

gems-with-extensions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Gems with Extensions
44
url: /gems-with-extensions
55
previous: /make-your-own-gem
66
next: /name-your-gem
7-
alias: /c-extensions
7+
redirect_from: /c-extensions
88
---
99

1010
<em class="t-gray">Creating a gem that includes an extension that is built at install time.</em>

make-your-own-gem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
title: Make your own gem
44
url: /make-your-own-gem/
5-
alias: /creating_gem
5+
redirect_from: /creating_gem
66
previous: /what-is-a-gem/
77
next: /gems-with-extensions/
88
---

trusted-publishing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Trusted Publishing
44
url: /trusted-publishing
55
previous: /cve
66
next: /organizations
7-
alias:
7+
redirect_from:
88
- /trusted-publishing/adding-a-publisher
99
- /trusted-publishing/pushing-a-new-gem
1010
- /trusted-publishing/releasing-gems

using-mfa-in-command-line.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Using multi-factor authentication in command line
44
url: /using-mfa-in-command-line
55
previous: /setting-up-otp-mfa
66
next: /mfa-requirement-opt-in
7-
alias:
7+
redirect_from:
88
- /using-webauthn-mfa-in-command-line
99
- /using-otp-mfa-in-command-line
1010
---

0 commit comments

Comments
 (0)