-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Support mdBook preprocessors for TRPL in rustbook #125408
Conversation
|
This comment has been minimized.
This comment has been minimized.
a8fba20
to
a2fc7e0
Compare
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
@ehuss
However, I went spelunking a bit and:
I did a Also, should CC0 be allowed? I can chase that down in |
This comment has been minimized.
This comment has been minimized.
a2fc7e0
to
81b2f96
Compare
I investigated further and see that no, CC0 should not be allowed! |
`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.
81b2f96
to
2c9fc62
Compare
Thanks! @bors r+ rollup |
☀️ Test successful - checks-actions |
Finished benchmarking commit (20be84a): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary 2.4%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResults (primary -1.0%, secondary -1.3%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 672.771s -> 667.385s (-0.80%) |
This change seems to have made bootstrap fail with an error when the submodule |
Yep, I'm running into that problem as well. |
As of rust-lang#125408 PR, rustbook now relies on dependencies from the "src/doc/book" submodule. However, bootstrap does not automatically sync this submodule before reading metadata informations. And if the submodule is not present, reading metadata will fail because rustbook's dependencies will be missing. This change makes "src/doc/book" to be fetched/synced automatically before trying to read metadata. Signed-off-by: onur-ozkan <work@onurozkan.dev>
As of rust-lang#125408 PR, rustbook now relies on dependencies from the "src/doc/book" submodule. However, bootstrap does not automatically sync this submodule before reading metadata informations. And if the submodule is not present, reading metadata will fail because rustbook's dependencies will be missing. This change makes "src/doc/book" to be fetched/synced automatically before trying to read metadata. Signed-off-by: onur-ozkan <work@onurozkan.dev>
…fix, r=onur-ozkan include missing submodule on bootstrap As of rust-lang#125408 PR, rustbook now relies on dependencies from the "src/doc/book" submodule. However, bootstrap does not automatically sync this submodule before reading metadata informations. And if the submodule is not present, reading metadata will fail because rustbook's dependencies will be missing. This change makes "src/doc/book" to be fetched/synced automatically before trying to read metadata. cc `@Zalathar`
…fix, r=onur-ozkan include missing submodule on bootstrap As of rust-lang#125408 PR, rustbook now relies on dependencies from the "src/doc/book" submodule. However, bootstrap does not automatically sync this submodule before reading metadata informations. And if the submodule is not present, reading metadata will fail because rustbook's dependencies will be missing. This change makes "src/doc/book" to be fetched/synced automatically before trying to read metadata. cc ``@Zalathar``
As a workaround until #125856 lands, this should get bootstrap working again: git submodule update --init src/doc/book/ |
…fix, r=onur-ozkan include missing submodule on bootstrap As of rust-lang#125408 PR, rustbook now relies on dependencies from the "src/doc/book" submodule. However, bootstrap does not automatically sync this submodule before reading metadata informations. And if the submodule is not present, reading metadata will fail because rustbook's dependencies will be missing. This change makes "src/doc/book" to be fetched/synced automatically before trying to read metadata. cc `@Zalathar`
…x, r=onur-ozkan include missing submodule on bootstrap As of rust-lang#125408 PR, rustbook now relies on dependencies from the "src/doc/book" submodule. However, bootstrap does not automatically sync this submodule before reading metadata informations. And if the submodule is not present, reading metadata will fail because rustbook's dependencies will be missing. This change makes "src/doc/book" to be fetched/synced automatically before trying to read metadata. cc `@Zalathar`
…-ozkan include missing submodule on bootstrap As of rust-lang/rust#125408 PR, rustbook now relies on dependencies from the "src/doc/book" submodule. However, bootstrap does not automatically sync this submodule before reading metadata informations. And if the submodule is not present, reading metadata will fail because rustbook's dependencies will be missing. This change makes "src/doc/book" to be fetched/synced automatically before trying to read metadata. cc `@Zalathar`
rust-lang/book
recently added two mdBook preprocessors. Enablerustbook
to use those preprocessors for books where they are requested by thebook.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