From 69225ad00b162e00017cafcd27b0d65de8ae1919 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 2 Jul 2021 18:05:34 +0200 Subject: [PATCH] Use rustdoc-map to link to external crates in master docs --- .cargo/config.toml | 2 ++ .github/workflows/docs.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 00000000..b2c9bde3 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[doc.extern-map.registries] +crates-io = "https://docs.rs/" diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index feabc582..6a8d9a7a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -27,7 +27,7 @@ jobs: RUSTDOCFLAGS: "--enable-index-page -Zunstable-options" with: command: doc - args: --no-deps --workspace --features docs + args: --no-deps --workspace --features docs -Zrustdoc-map - name: Deploy docs if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}