Determine how to handle Vuepress code snippets in docs
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- shell
- Ambito
- documentation, localization
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.
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?
- Lingua principale
- TypeScript
- Stelle
- 258
- Fork
- 561
- Merge medio
- 3h 20m
- PR unite (30g)
- 15
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.
Altre issue di nushell/nushell.github.io
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 68/100
nushell/nushell.github.io#2081 · 3 commenti ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
nushell/nushell.github.io#767 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
nushell/nushell.github.io#2232 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
nushell/nushell.github.io#2209 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
nushell/nushell.github.io#2194 ·
Tutte le issue di nushell/nushell.github.io
Issue simili
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Mend: dependency security vulnerability untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100