Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Development

Run the Rust test suite:

cargo test

With mdbook on PATH (or in $MDBOOK), the suite also builds test books with the real mdBook and checks that every highlighted block has the same structure as mdBook’s own rendering of it: classes, hidden lines, and the text the Run and Copy buttons use.

Build the documentation book, which runs the preprocessor from this checkout through cargo run and fetches its grammars on the first build:

mdbook build examples/languages

Refresh the built-in grammar list from nvim-treesitter’s current parser list (needs git):

cargo xtask update-grammar-list