Gem overrides stylesheet after regenerating site
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- ruby
- Área
- build-system
Línea de trabajo
Comienza con la entrada de Gemfile para github-pages y la reproducción de assets/css/style.css; después ejecuta bundle exec jekyll serve y activa la regeneración editando index.html. Está terminado cuando aparece el nuevo contenido de la landing page y la hoja de estilos del sitio sigue utilizándose en lugar de ser sobrescrita por una hoja de estilos de tema incluida en el bundle.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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:

- Lenguaje dominante
- Ruby
- Estrellas
- 1.9k
- Forks
- 361
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de github/pages-gem
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Error when building docker imageAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
-
Serving SQLite database files with sql.js-httpvfs broken due to gzip encoding on HEAD requestsAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 5/100
-
index.htmlAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 5/100
Todos los issues de github/pages-gem
Issues similares
-
security
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
OSCON 2016Abiertocontent
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
rubyevents/rubyevents#2148 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
we-promise/sure#3838 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Mend: dependency security vulnerability
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ManageIQ/manageiq-ui-classic#10341 ·
Los mantenedores suelen responder en 1 día
-
Obsolete link to RubyMine docsAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
rubocop/ruby-style-guide#984 ·