feat: add support for generating Markdown documentation and update re…#104
Merged
GordonSmith merged 1 commit intobytecodealliance:mainfrom Dec 11, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds support for generating Markdown documentation from WIT files using the wit-bindgen-markdown library, alongside the existing language binding generators (Rust, C, C#, Go, MoonBit).
Key Changes
- Integrated
wit-bindgen-markdown0.49 dependency and implemented Markdown generation in the Rust WASM module - Added new VS Code command
wit-idl.generateBindingsMarkdownwith appropriate menu registrations - Updated error messages and documentation to include "markdown" as a supported language option
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| wit-bindgen-wasm/src/lib.rs | Added markdown module import, implemented generate_markdown_bindings and generate_markdown_with_wit_bindgen functions, updated language matching to support "markdown" and "md" |
| wit-bindgen-wasm/Cargo.toml | Added wit-bindgen-markdown = "0.49" dependency |
| wit-bindgen-wasm/Cargo.lock | Added dependency entries for wit-bindgen-markdown, pulldown-cmark, and unicase |
| wit-bindgen-wasm/README.md | Updated API documentation to list markdown as a supported language option |
| src/extension.ts | Registered new generateMarkdownBindingsCommand using the existing command factory pattern |
| package.json | Added command definition, context menu entries, and command palette registration for the Markdown documentation command |
…lated commands Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
a9e81bf to
ffc0f81
Compare
GordonSmith
pushed a commit
that referenced
this pull request
Dec 11, 2025
🤖 I have created a release *beep* *boop* --- ## [0.3.20](wit-idl-v0.3.19...wit-idl-v0.3.20) (2025-12-11) ### Features * add C++ bindings generation support and update related configur… ([#103](#103)) ([84e63a6](84e63a6)) * add support for generating Markdown documentation and update re… ([#104](#104)) ([65b0f49](65b0f49)) * enhance CI workflows with caching for Node.js and Rust dependen… ([#105](#105)) ([112963a](112963a)) ### Bug Fixes * add context to WIT content parsing errors ([2772d4d](2772d4d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…lated commands