Gem overrides stylesheet after regenerating site
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- ruby
- 領域
- build-system
調査の方向性
github-pages の Gemfile エントリと assets/css/style.css の再現から始め、次に bundle exec jekyll serve を実行して、index.html を編集して再生成を発生させます。サイトのスタイルシートが引き続き使用され、バンドルされたテーマのスタイルシートによって上書きされずに、新しいランディングページのコンテンツが表示されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
When github-pages is listed under the group :jekyll_plugins in the Gemfile, then on regeneration, a site has its assets/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
- The site generated by GitHub Pages
maybe.. maybe not.. - Building sites locally
Steps to reproduce
- Set up a Jekyll site with at least the following:
- Gemfile
source 'https://rubygems.org' gem 'github-pages', group: :jekyll_plugins assets/css/style.csswith the following:h1 { color: red }- An
index.htmlthat uses the above stylesheet. (either via a layout or directly)<!DOCTYPE html> <html> <head> <meta charset="UTF-8"/> <title>Test Site</title> <link rel="stylesheet" href="/assets/css/style.css" /> </head> <body> <h1>Hello World</h1> </body> </html>
- Gemfile
- Serve the site locally and preview at
http://localhost:4000/bundle exec jekyll serve - Trigger a regeneration by just adding content to the landing page.
<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:

- 主要言語
- Ruby
- スター
- 1.9k
- フォーク
- 361
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/pages-gem のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 5/100
-
index.htmlオープン
難易度 5/5 1週間以上 初心者へのやさしさ 5/100
github/pages-gem の issue をすべて見る
似ている issue
-
security
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
OSCON 2016オープンcontent
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
rubyevents/rubyevents#2148 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
we-promise/sure#3838 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Mend: dependency security vulnerability
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ManageIQ/manageiq-ui-classic#10341 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
rubocop/ruby-style-guide#984 ·