CosmWasm / docs

https://cosmwasm-docs.vercel.app
Apache License 2.0
2 stars 2 forks source link

Doc test generator #15

Closed aumetra closed 2 months ago

aumetra commented 2 months ago

A quick little tool that visits all .mdx files, parses them using pulldown-cmark, and writes all codeblocks annotated with something like:

```rust template="core"

into a separate test file, that applies the core template.

There is nothing fancy about this, just some globbing, aggregating, and file creation.
Also supports Go blocks, but I'm not sure how to properly set up a working test environment for this, I'm just a poor little Rust dev.


This should either be a Git hook or we should have a CI step that ensures no new files have been created (probably both).

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cosmwasm-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2024 0:18am