diff --git a/scripts/mk-docs.sh b/scripts/mk-docs.sh index aef50bce..c205a98c 100755 --- a/scripts/mk-docs.sh +++ b/scripts/mk-docs.sh @@ -20,8 +20,10 @@ 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/" \ - cargo doc -Zrustdoc-map --no-deps --all-features \ + 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 \ -p rocket_sync_db_pools \