chrisg, Wrote a quick and dirty utility that extracts all Glowdust snippets from the markdown files of the documentation and runs them.
It runs as an integration test, so if I make a mistake in the docs, normal
cargo test
will let me know.Also supports tags to skip examples that don't compile on purpose.
Helped me catch a few issues immediately, and I now know that my documentation is up to data with the actual implementation.
For the curious:
https://codeberg.org/glowdust/glowdust/src/branch/master/tests/book/check_book.rs
Add comment