Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ source "https://rubygems.org"

gem "jekyll"
gem "jekyll-watch"
gem "jekyll-mentions"
gem "kramdown"
gem "jekyll-multiple-languages-plugin"

Expand Down
20 changes: 18 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (6.0.3.4)
concurrent-ruby (>= 1.0.2, >= 1.0)
minitest (>= 5.1)
tzinfo (>= 1.1)
zeitwerk (>= 2.2.2, >= 2.2)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
colorator (1.1.0)
Expand All @@ -13,6 +18,9 @@ GEM
ffi (1.13.1)
ffi (1.13.1-x64-mingw32)
forwardable-extended (2.6.0)
html-pipeline (2.14.0)
activesupport (>= 2)
nokogiri (>= 1.4)
http_parser.rb (0.6.0)
i18n (1.8.5)
concurrent-ruby (~> 1.0)
Expand All @@ -31,7 +39,8 @@ GEM
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (~> 1.8)
jekyll-feed (0.15.0)
jekyll-mentions (1.6.0)
html-pipeline (~> 2.3)
jekyll (>= 3.7, < 5.0)
jekyll-multiple-languages-plugin (1.7.0)
jekyll (>= 2.0, < 5.0)
Expand All @@ -48,6 +57,12 @@ GEM
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
mini_portile2 (2.4.0)
minitest (5.14.2)
nokogiri (1.10.10)
mini_portile2 (~> 2.4.0)
nokogiri (1.10.10-x64-mingw32)
mini_portile2 (~> 2.4.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
Expand All @@ -70,14 +85,15 @@ GEM
tzinfo (>= 1.0.0)
unicode-display_width (1.7.0)
wdm (0.1.1)
zeitwerk (2.4.2)

PLATFORMS
ruby
x64-mingw32

DEPENDENCIES
jekyll
jekyll-feed (~> 0.12)
jekyll-mentions
jekyll-multiple-languages-plugin
jekyll-watch
kramdown
Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ markdown: kramdown

plugins:
- jekyll-multiple-languages-plugin
- jekyll-mentions

permalink: /:categories/:title

Expand Down
9 changes: 9 additions & 0 deletions _plugins/linkify-prs.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require "jekyll"

Jekyll::Hooks.register([:documents, :pages, :posts], :pre_render) do |doc|
if (doc.output_ext == ".html" || doc.permalink&.end_with?("/"))
doc.content = doc.content.gsub(%r!(?<\!&)#(\d+)!) do |word|
"[#{word}](https://github.com/AntennaPod/AntennaPod/issues/#{word.delete("#")})"
end
end
end