-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
preprocessors need to be integrated with the rust build system #3927
Comments
Noted, and thank you, @ehuss! 👍🏼 A quick status note:
I am using |
For those following along at home: rust-lang/rust#125408 has the goods, and is (I believe!) ready to go. 👍🏼 |
…, r=ehuss Support mdBook preprocessors for TRPL in rustbook `rust-lang/book` recently added two mdBook preprocessors. Enable `rustbook` to use those preprocessors for books where they are requested by the `book.toml` by adding the preprocessors as path dependencies, and ignoring them where they are not requested, i.e. by all the books other than TRPL at present. Addresses rust-lang/book#3927
Status:
One highly likely possibility here is that we end up publishing these to crates.io and then pulling them in as normal (i.e. not |
Support mdBook preprocessors for TRPL in rustbook `rust-lang/book` recently added two mdBook preprocessors. Enable `rustbook` to use those preprocessors for books where they are requested by the `book.toml` by adding the preprocessors as path dependencies, and ignoring them where they are not requested, i.e. by all the books other than TRPL at present. Addresses rust-lang/book#3927
Support mdBook preprocessors for TRPL in rustbook `rust-lang/book` recently added two mdBook preprocessors. Enable `rustbook` to use those preprocessors for books where they are requested by the `book.toml` by adding the preprocessors as path dependencies, and ignoring them where they are not requested, i.e. by all the books other than TRPL at present. Addresses rust-lang/book#3927
Support mdBook preprocessors for TRPL in rustbook `rust-lang/book` recently added two mdBook preprocessors. Enable `rustbook` to use those preprocessors for books where they are requested by the `book.toml` by adding the preprocessors as path dependencies, and ignoring them where they are not requested, i.e. by all the books other than TRPL at present. Addresses rust-lang/book#3927
@ehuss Circling back, I think courtesy of the various fixes and esp. rust-lang/rust#127786, this is resolved now? |
Yep, thanks! |
#3918 and #3907 seem to have introduced some new preprocessors. These will need to be integrated with the rust build system so that the book gets built correctly. At a minimum, it will need to be integrated in
rustbook/src/main.rs
, by callingwith_preprocessor
when building the book. The preprocessors will need to be declared as path dependencies inrustbook/Cargo.toml
. This will also probably require some wiring to detect when these custom preprocessors are enabled inbook.toml
(which should be accessible via something likebook.config.get_preprocessor
).This should probably be done before you start using these preprocessors to ensure the published documentation isn't broken.
The text was updated successfully, but these errors were encountered: