You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to add a markdown file with LaTeX that I exported from evcxr Jupyter notebook (.ipynb) into a crate that had several dependencies. So far it seems that rustdocflags is invasive and applies to ALL crates for which rustdoc builds documentation. As a result, building documentation fails because as error suggests
error: error reading `./src/docs-header.html`: The system cannot find the path specified. (os error 3)
none of the crates-dependencies have docs-header.html in their ./src/ directory.
How to reproduce the error
The error can be reproduced by adding a dependency to Cargo.toml
[package]
name = "rust-latex-doc-minimal-example"version = "0.2.0"authors = ["Vicente Ramirez Perea <victe@ramper.net>"]
edition = "2018"description = "Minimal crate example for getting latex in docs."readme = "crates-io.md"homepage = "https://github.com/victe/rust-latex-doc-minimal-example"repository = "https://github.com/victe/rust-latex-doc-minimal-example"license = "CC0-1.0"categories = ["development-tools", "mathematics", "science"]
keywords = ["latex", "rustdoc", "docs"]
[dependencies]
num-traits = "0.2.14"# example of a dependency
[package.metadata.docs.rs]
rustdoc-args = [ "--html-in-header", "./src/docs-header.html" ]
Thank you so much for this wonderful repo!
I was trying to add a markdown file with LaTeX that I exported from
evcxr
Jupyter notebook (.ipynb) into a crate that had several dependencies. So far it seems thatrustdocflags
is invasive and applies to ALL crates for whichrustdoc
builds documentation. As a result, building documentation fails because as error suggestsnone of the crates-dependencies have
docs-header.html
in their./src/
directory.How to reproduce the error
The error can be reproduced by adding a dependency to
Cargo.toml
Output
The text was updated successfully, but these errors were encountered: