mirror of https://github.com/rwf2/Rocket.git
Avoid generating unused docs index page.
The unstable flag also results in rustdoc emitting absolute links, which breaks versioned documentation.
This commit is contained in:
parent
c54a6ed05e
commit
48d1305651
|
@ -20,7 +20,9 @@ fi
|
|||
echo ":::: Generating docs (${DOC_VERSION})..."
|
||||
pushd "${PROJECT_ROOT}" > /dev/null 2>&1
|
||||
# Set the crate version and fill in missing doc URLs with docs.rs links.
|
||||
RUSTDOCFLAGS="-Zunstable-options --crate-version ${DOC_VERSION} --extern-html-root-url rocket=https://api.rocket.rs/rocket/" \
|
||||
RUSTDOCFLAGS="-Z unstable-options \
|
||||
--crate-version ${DOC_VERSION} \
|
||||
--generate-link-to-definition" \
|
||||
cargo doc -Zrustdoc-map --no-deps --all-features \
|
||||
-p rocket \
|
||||
-p rocket_db_pools \
|
||||
|
|
Loading…
Reference in New Issue