FuelLabs/fuels-rs

docs: improve upstream `md-book` code snippets display

Open

#388 aperta il 13 giu 2022

Vedi su GitHub
 (0 commenti) (1 reazione) (1 assegnatario)Rust (1360 fork)batch import
blockedenhancementgood first issue

Metriche repository

Star
 (43.211 star)
Metriche merge PR
 (Merge medio 17g) (1 PR mergiata in 30 g)

Descrizione

  • We now want all code that goes in the book to be tested (and put in the examples directory), so all code in The Book will soon be put there using the {{include path/to/file}} tag of md-book.

Problem: the formatting isn 't very nice, there's extra identation displayed because the code is inside a test function.

Fixing https://github.com/rust-lang/mdBook/issues/1601 would solve this! It would also be of benefit for all books!

Tagging @mitchmindtree for tooling consideration :smile:

Guida contributor