github / github/pages-gem

Disable jekyll-github-metadata gem when building locally

Aperta
#417 8 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Ruby
Stelle
1.9k
Fork
360
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Before submitting an issue, please be sure to

- [x] Read [the contributing instructions](https://github.com/github/pages-gem/blob/master/CONTRIBUTING.md#contributing-to-the-github-pages-gem)
- [x] Update to the latest Gem version (either `gem update github-pages` or `bundle update github-pages`)

### This issue affects

- [ ] The site generated by GitHub Pages
- [x] Building sites locally

### What did you do (e.g., steps to reproduce)
Run `bundle exec jekyll serve` from a fresh github-pages repo.

### What did you expect to happen?
All build smoothly.

### What happened instead?
`GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data.`

### Additional information
The github-pages project I'm trying to setup does not need any metadata from my github repository. Is there a way to disable `jekyll-github-metadata` gem when building locally?

PS: I'm aware of the authentication configuration needed for `jekyll-github-metadata` gem, but since I'm not going to use any of those metadata, it will be awful if I have to do so.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo il problema con `bundle exec jekyll serve` da un repository github-pages appena creato e analizza come la build locale di Jekyll carica `jekyll-github-metadata`. Il lavoro è completo quando le build locali terminano senza richiedere l’autenticazione all’API GitHub se i metadati del repository non vengono utilizzati; l’issue non indica alcun file o test specifico.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
github, ruby
Ambito
build-system, tooling
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.