Skip to content

Disable incremental regen when Archives enabled for 3.0 compatibility #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 2, 2015

Conversation

alfredxing
Copy link
Member

Incremental regen messes up the content of generated archives (they show raw content instead of generated content), so we need to disable it if jekyll-archives is included as a gem.

Should fix the failing test(s) from #47.

For jekyll/jekyll#3945

@parkr @pathawks

@alfredxing
Copy link
Member Author

Oops. Applying @pathawks' commit from his PR.

@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
s.licenses = ["MIT"]
s.files = ["lib/jekyll-archives.rb", "lib/jekyll-archives/archive.rb"]

s.add_dependency "jekyll", '>= 2.4'
s.add_dependency "jekyll", '~> 3.0.0.pre.beta8'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this version of jekyll-archives won't be compatible with jekyll 2. is that intended?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this won't be compatible, will Ruby/Bundler be smart about it and install an older version of the gem if the user is using Jekyll 2?

Otherwise I can wrap the addition of the hook with a conditional to still make it compatible...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, would you wrap all 3.0-specific pieces?

@mattr-
Copy link
Member

mattr- commented Sep 2, 2015

no incremental regen makes me sad. 😭 😉

@pathawks
Copy link
Member

pathawks commented Sep 2, 2015

Cool! ⛄

@alfredxing
Copy link
Member Author

OK, all tests passed this time, with Jekyll 2 compatibility kept.

@pathawks pathawks mentioned this pull request Sep 2, 2015
parkr added a commit that referenced this pull request Sep 2, 2015
@parkr parkr merged commit c162d72 into master Sep 2, 2015
@parkr parkr deleted the 3.0-compatibility branch September 2, 2015 17:05
parkr added a commit that referenced this pull request Sep 2, 2015
@parkr
Copy link
Member

parkr commented Sep 2, 2015

Thanks, Alfred!!!!!!

@pathawks
Copy link
Member

pathawks commented Sep 2, 2015

Perhaps a note re: incremental regen being disabled should be added to the Readme?

@parkr
Copy link
Member

parkr commented Sep 2, 2015

Great idea!

@pathawks
Copy link
Member

pathawks commented Sep 2, 2015

Cool. I’ll write some words when I get a chance.

@alfredxing
Copy link
Member Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants