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
Gem overrides stylesheet after regenerating site #657
Comments
WorkaroundsDisclaimer: Both of the following are undocumented and may have side-effects
|
Hey, fresh installed the gem on MacOS 10.15.4 today. Jekyll was working great until I setup this gem. Exact same behavior happening here, so can confirm this is a thing. Generated assets folder does not contain any of the custom styles, only those from the fallback template. The issue seems to be intermittent, happening only about 25-50% of the time, but very noticeable when making many small changes. Extra detail, I'm using JetBrains IDEs, which I think write to disk on inactivity. |
I have the same issue. Who can help me? The _site/index.html built with The _site/index.html built with _config.yml_config.yml plugins:
- jekyll-remote-theme
remote_theme: just-the-docs/just-the-docs Gemfilesource "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
group :jekyll_plugins do
gem "github-pages", "= 228"
gem "jekyll-remote-theme"
gem "jekyll-include-cache"
gem "jekyll-sitemap"
gem "jekyll-feed"
end I also tried to put DockerfileI run building in docker container.
GH_PAGE_IMAGE=my_gh_page
# build gh-page image
docker build -f ./Dockerfile -t ${GH_PAGE_IMAGE} .
# jekyll serve
docker run -it --rm -p 4000:4000 -v "${PWD}:/src/site" ${GH_PAGE_IMAGE}
# jekyll build
docker run -it --rm -v "${PWD}:/src/site" ${GH_PAGE_IMAGE} build |
@adoyle-h Do you happen to have GitHub pages listed as a plugin in your _config.yml? |
I tried. But still same issue. plugins:
- github-pages
- jekyll-remote-theme
remote_theme: just-the-docs/just-the-docs |
@adoyle-h I think I ended up just removing remote theme from my plugins section in _config.yml, so in your example just nuke that whole section. I also had to make sure to list my remote theme as |
The deployment of the site using GitHub Pages is not rendered correctly as evidenced by pages without titles appearing in the site navigation and Liquid tags -- specifically output of variables -- appearing rather than the value of the variables. This behavior was confirmed locally when building the site with the github-pages gem. This change removes the github-pages gem from the `:jekyll_plugins` group as suggested in an open issue. References github/pages-gem#657
The deployment of the site using GitHub Pages is not rendered correctly as evidenced by pages without titles appearing in the site navigation and Liquid tags -- specifically output of variables -- appearing rather than the value of the variables. This behavior was confirmed locally when building the site with the github-pages gem. This change removes the github-pages gem from the `:jekyll_plugins` group as suggested in an open issue. References github/pages-gem#657
Summary
When
github-pages
is listed under thegroup :jekyll_plugins
in the Gemfile, then on regeneration, a site has itsassets/css/style.css
overridden by one bundled with one of the themes in the gem.This issue came to my notice while investigating
jekyll/jekyll#7854
.This issue affects
maybe.. maybe not..
Steps to reproduce
assets/css/style.css
with the following:index.html
that uses the above stylesheet. (either via a layout or directly)http://localhost:4000/
<h1>Hello World</h1> + <p>Lorem ipsum dolor sit amet</p>
What did you expect to happen?
Expected the landing page to be rendered with the new content.
What happened instead?
The following would illustrate better:
Before regeneration:
After regeneration:
The text was updated successfully, but these errors were encountered: