Display README.lhs if there is no README.md

Aperta
#1,436 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
haskell
Ambito
documentation

Direzione di ricerca

Inizia tracciando la selezione del pacchetto e il comportamento di rendering per README.md in hackage-server, quindi confrontali con i dettagli di packaging di README.lhs e Cabal descritti qui. Il lavoro è completo quando un README.lhs incluso nel pacchetto viene renderizzato come Markdown se README.md è assente, senza richiedere una voce aggiuntiva in extra-files; verifica il comportamento con la suite di test esistente pertinente.

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

Descrizione

markdown-unlit treats Markdown files as Literate Haskell, and it recommends using a README.lhs file symlinked from README.md. The README.lhs will already be included in the package due to it being used in a test suite, while the README.md would need to additionally be added via an extra-files entry in the Cabal file.

It would be nice if Hackage rendered the README.lhs as Markdown if no README.md file is included in the package.

The one issue with this is if the README.lhs is in LaTeX or some other format. However, GitHub doesn’t support LaTeX as a README format (and I think the same is true of other software forges), so I think this pattern is unlikely.

This is different from other README requests like #574 and #890 in that it doesn’t require any new rendering, just falling back to a different file name.

Unfortunately, Hackage doesn’t track test-suite dependencies, so it’s hard to tell how widespread this pattern is, but I know at least one package that has a README.lhs without a README.md in the Cabal package that would benefit from this (and I would like to do the same with my own packages).

Lingua principale
Haskell
Stelle
471
Fork
228
Merge medio
5g 6h
PR unite (30g)
3

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di haskell/hackage-server

Tutte le issue di haskell/hackage-server

Issue simili

Altre issue su Haskell

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.