Skip to content

bazel: Migrate external mdbook plugins to Bazel#3202

Open
mgeisler wants to merge 1 commit into
mainfrom
bazel-all-mdbook-plugins
Open

bazel: Migrate external mdbook plugins to Bazel#3202
mgeisler wants to merge 1 commit into
mainfrom
bazel-all-mdbook-plugins

Conversation

@mgeisler

Copy link
Copy Markdown
Collaborator

Configure mdbook-i18n-helpers, mdbook-linkcheck2, mdbook-pandoc, and mdbook-svgbob as Bazel external plugins using rules_rust.

Update xtask/src/main.rs to build all preprocessor tools via Bazel, programmatically resolve their paths, copy them to ~/.cargo/bin.

This is a drop-in replacement for the old Cargo based approach. It will go away as we move the mdbook build call itself to Bazel, but it's useful in its own since it establishes that we can build the mdbook plugins with Bazel.

@mgeisler mgeisler requested a review from gribozavr June 10, 2026 10:13
@mgeisler mgeisler changed the title bazel: migrate external mdbook plugins to Bazel bazel: Migrate external mdbook plugins to Bazel Jun 10, 2026
@mgeisler mgeisler force-pushed the bazel-all-mdbook-plugins branch 2 times, most recently from 4ed34f3 to 9b22ef6 Compare June 10, 2026 12:17
Configure mdbook-i18n-helpers, mdbook-linkcheck2, mdbook-pandoc, and
mdbook-svgbob as Bazel external plugins using `rules_rust`.

Update `xtask/src/main.rs` to build all preprocessor tools via Bazel,
programmatically resolve their paths, copy them to `~/.cargo/bin`.

This is a drop-in replacement for the old Cargo based approach. It
will go away as we move the `mdbook build` call itself to Bazel, but
it's useful in its own since it establishes that we can build the
`mdbook` plugins with Bazel.
@mgeisler mgeisler force-pushed the bazel-all-mdbook-plugins branch from 9b22ef6 to 7247cc3 Compare June 10, 2026 16:04
@mgeisler mgeisler requested a review from qwandor June 10, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant