Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
External styles are being added when no theme is declared in _config.yml #613
Comments
|
Just ran into this rogue CSS file as well. pages-gem/lib/github-pages/configuration.rb Line 104 in e0063ba |
See github/pages-gem#613 for more info.
See github/pages-gem#613 for more info.
该项目使用的是 gem github-pages . 其在有文件修改后自动刷新时会错误的拉取一个文件 到 _site/asset/css/style.css 如果原本的文件叫这个名字,则会被错误的文件所覆盖,出现样式错误问题 github/pages-gem#613
Before submitting an issue, please be sure to
bundle update github-pages)This issue affects
The GitHub Pages Gem is intended to help users replicate the GitHub Pages build environment locally. If your issue affects both the hosted version and the version previewed locally, you may be better suited reporting seeking support in other forums.
What did you do (e.g., steps to reproduce)
git clone git@github.com:bryanbraun/bryanbraun.github.io.gitbundle install.scss(for good measure)jekyll build._site/assets/style.cssWhat did you expect to happen?
No CSS files should be generated.
What happened instead?
A CSS file is generated containing
normalize.cssand other styles fromjekyll-theme-primer. It looks like my site is falling back to usingjekyll-theme-primeras its theme, even though I have no themes defined in_config.yml(and I don't want to use any external theme).Possible workaround: If I set
theme: nullit seems like the stylesheet doesn't get added. I'm not sure if this is good to rely on, since it isn't documented anywhere.Additional information
This issue was previously reported in jekyll/jekyll but it appears to be an issue with
pages-gem.