From c29f89c3c13c55cfc4aec49d58089a58c123e980 Mon Sep 17 00:00:00 2001 From: Yoann Chaudet Date: Tue, 13 Feb 2024 16:10:40 -0800 Subject: [PATCH 1/2] Revert jekyll-relative-links to 0.6.1 and add a test --- lib/github-pages/dependencies.rb | 2 +- lib/github-pages/version.rb | 2 +- spec/fixtures/jekyll-relative-links.md | 4 +++- spec/github-pages/integration_spec.rb | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/github-pages/dependencies.rb b/lib/github-pages/dependencies.rb index bf0d455d..5d3f948d 100644 --- a/lib/github-pages/dependencies.rb +++ b/lib/github-pages/dependencies.rb @@ -36,7 +36,7 @@ class Dependencies # Plugins to match GitHub.com Markdown "jemoji" => "0.13.0", "jekyll-mentions" => "1.6.0", - "jekyll-relative-links" => "0.7.0", + "jekyll-relative-links" => "0.6.1", "jekyll-optional-front-matter" => "0.3.2", "jekyll-readme-index" => "0.3.0", "jekyll-default-layout" => "0.1.5", diff --git a/lib/github-pages/version.rb b/lib/github-pages/version.rb index 1d4d3c97..c69e2cda 100644 --- a/lib/github-pages/version.rb +++ b/lib/github-pages/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module GitHubPages - VERSION = 230 + VERSION = 231 end diff --git a/spec/fixtures/jekyll-relative-links.md b/spec/fixtures/jekyll-relative-links.md index 889348d1..bebe8a23 100644 --- a/spec/fixtures/jekyll-relative-links.md +++ b/spec/fixtures/jekyll-relative-links.md @@ -1,5 +1,7 @@ --- +excerpt: Just a relative link --- - [Jekyll](jekyll.md) + +{{ page.excerpt }} \ No newline at end of file diff --git a/spec/github-pages/integration_spec.rb b/spec/github-pages/integration_spec.rb index 35740df2..5b3da4bf 100644 --- a/spec/github-pages/integration_spec.rb +++ b/spec/github-pages/integration_spec.rb @@ -224,6 +224,7 @@ def rm_destination context "jekyll-relative-links" do it "converts relative links" do expect(contents).to match('Jekyll') + expect(contents).to match('

Just a relative link

') # excerpt end end From dcd2f8ec6d56bbb314cf8fbe18bbe210baf703f1 Mon Sep 17 00:00:00 2001 From: Yoann Chaudet Date: Tue, 13 Feb 2024 16:13:35 -0800 Subject: [PATCH 2/2] =?UTF-8?q?Ok=20=F0=9F=A4=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/github-pages/integration_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/github-pages/integration_spec.rb b/spec/github-pages/integration_spec.rb index 5b3da4bf..d673a418 100644 --- a/spec/github-pages/integration_spec.rb +++ b/spec/github-pages/integration_spec.rb @@ -224,7 +224,7 @@ def rm_destination context "jekyll-relative-links" do it "converts relative links" do expect(contents).to match('Jekyll') - expect(contents).to match('

Just a relative link

') # excerpt + expect(contents).to match("

Just a relative link

") # excerpt end end