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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow disabling import of theme configuration #8131
Conversation
Can you explain how you see a theme config play with a site config? I would expect the theme to have his own config, my site to have its config, and my site's config to override the theme's config if I want to override some theme's config. |
Yes, that was exactly the intended workflow.
And their site config includes the following pair:
The user would expect Another unforeseen issue is that the resulting config (after overriding theme-config with user-end config) is a Ruby The easiest route out I saw was to remove the feature entirely since it is just one-version old. But I guess SemVer principles expects us to carry the baggage until a v5.0. So the next route would be to either provide an option to disable this non-essential feature or add more technical debt (to buoy a non-essential feature) by patching the bugs as they are reported. |
When there's no overlap between the theme and the site's config, do we get a |
We get a Lines 434 to 436 in 18f04c6
The argument config to the above private method is always an Jekyll::Configuration instance.Line 441 in 18f04c6
The result from SafeYAML.load_file is always a Hash Line 450 in 18f04c6
And finally Hash is returned by the utility methodLines 28 to 30 in 18f04c6
Lines 41 to 47 in 18f04c6
|
Users can *opt-in* by setting `import_theme_config: true` in their config file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used the docs as the authoritative version of what we want for this feature and made suggestions to the code based on that. That would also mean the title of the PR also doesn't match. 馃槃
Opt out is the least surprising from my point of view, as the feature was already enabled. We don't have numbers but I imagine the number of people that run into this is low enough that we can just point them to the docs when they bring it up and that's good enough for now. we can always revisit the default in 5.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opt out 馃憣
@jekyllbot: merge +minor |
Summary
So that related bugs are not activated out-of-the-box..
Context
Resolves #8114