nushell / nushell/nushell.github.io
Determine how to handle Vuepress code snippets in docs
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 258
- Fork
- 561
- Merge medio
- 3h 20m
- PR unite (30g)
- 15
Descrizione
I just noticed that the Book uses some Vuepress code snippets in places (but not everywhere). There are some advantages and disadvantages to these:
Advantages:
- (Minor) Can be reused if needed
- (Nice) Indention is much easier if the code-block is nested under a list item
Disadvantages:
- (Major) All of the existing snippets are
.shfiles. These need to be updated to.nufiles in order to obtain proper syntax highlighting, of course. - (Major) Renaming or moving a snippet requires updates to all language translations, otherwise we are left with broken links.
- When a code snippet is updated, it is propagated across all language translations. This sounds nice, but that may not be desirable if the text around it needs to be updated as well, which will likely be the case.
- Probably won't be portable if we change backends in the future
When I first saw these, I liked the concept, but after dealing with the ramifications, it seems like they might be more problematic than helpful.
At the least, all of them have to be reworked to get syntax highlighting. Should this just be a single "eliminate Vuepress snippets" enhancement?
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Esamina gli snippet di codice Vuepress esistenti di Book, i relativi file .sh e le traduzioni nelle lingue corrispondenti. Confronta le implicazioni di manutenzione e di evidenziazione della sintassi descritte qui; il lavoro è completato quando è stata raggiunta e documentata una decisione chiara sul mantenere o eliminare gli snippet e su ciò che deve essere aggiornato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- shell
- Ambito
- documentation, localization
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100