From a866134212a13bfaa61a1cd1e68880461af1ab42 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Wed, 21 Feb 2024 09:54:12 -0800 Subject: [PATCH] Avoid generating unused docs index page. The unstable flag also results in rustdoc emitting absolute links, which breaks versioned documentation. --- scripts/mk-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mk-docs.sh b/scripts/mk-docs.sh index b224089e..c205a98c 100755 --- a/scripts/mk-docs.sh +++ b/scripts/mk-docs.sh @@ -22,7 +22,7 @@ pushd "${PROJECT_ROOT}" > /dev/null 2>&1 # Set the crate version and fill in missing doc URLs with docs.rs links. RUSTDOCFLAGS="-Z unstable-options \ --crate-version ${DOC_VERSION} \ - --enable-index-page" \ + --generate-link-to-definition" \ cargo doc -Zrustdoc-map --no-deps --all-features \ -p rocket \ -p rocket_db_pools \