Skip to content

Conversation

@tarcieri
Copy link
Contributor

@tarcieri tarcieri commented Nov 6, 2025

--html-in-header apparently only works with the --no-deps option when cargo doc is invoked, which cargo semver-checks isn't doing

This removes the rustdocflags overrides in .cargo/config.toml by deleting the file first.

`--html-in-header` apparently only works with the `--no-deps` option
when `cargo doc` is invoked, which `cargo semver-checks` isn't doing

This removes the rustdocflags overrides in `.cargo/config.toml` by
deleting the file first.
@tarcieri tarcieri force-pushed the ci/fix-cargo-semver-checks branch from 101d2a5 to 3efcd82 Compare November 6, 2025 21:51
@tarcieri
Copy link
Contributor Author

tarcieri commented Nov 6, 2025

I reproduced the issue against: https://github.com/paulkernfeld/rustdoc-katex-demo

The instructions for that say use --no-deps. I guess without that, it tries to apply the option to every dependency it's building documentation for?

 Documenting bitflags v1.3.2
error: error reading `katex-header.html`: No such file or directory (os error 2)

error: `ExternalHtml::load` failed

@tarcieri
Copy link
Contributor Author

tarcieri commented Nov 6, 2025

Fixed in #95

@tarcieri tarcieri closed this Nov 6, 2025
@tarcieri tarcieri deleted the ci/fix-cargo-semver-checks branch November 6, 2025 21:59
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