Add syntax highlighting to WIT documentation
@mkatychev ci sta già lavorando.
Dal 4/6/2025.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
WIT code is currently unhighlighted as highlight.js does not support WIT currently. Using the mdbook-treesitter preprocessor is a good avenue to add syntax highlighting for all WIT codeblocks in the documentation, working example of it in action:
https://mkatychev.github.io/component-docs/design/wit.html#worlds
Caveat:
Current mdbook-treesitter outputs grammar logic used for highlighting as dylib file (wit.so) and work is needed adding emscripten support to output a wit.wasm grammar file.
Create issues in https://github.com/bytecodealliance/vscode-wit and https://github.com/liamwh/tree-sitter-wit to support newer component model syntaxes:
- Sized lists:
list<u8, 4> - feature gates
-
streamandfuturetypes - nested comments
- Lingua principale
- Rust
- Stelle
- 137
- Fork
- 88
- Merge medio
- 10h 38m
- PR unite (30g)
- 2
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 bytecodealliance/component-docs
-
Difficoltà 2/5 Mezza giornata Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
bytecodealliance/component-docs#294 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
bytecodealliance/component-docs#376 · 1 commento ·
-
Fix Python Tutorial Apertabug lang/python
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
bytecodealliance/component-docs#348 · 2 commenti ·
Tutte le issue di bytecodealliance/component-docs
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
bug good first issue package: quic
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
-
`dora trace view` sends a non-canonical full UUID as-is, so a valid trace ID shows "No spans found" Apertacli coordinator rust
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
area: tasks enhancement good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Jason-jo17/Polybench#15 · 1 commento ·