From 7b5843ab79b07583f6dd26949f08f42adc1573ea Mon Sep 17 00:00:00 2001 From: kaichao Date: Sat, 5 Oct 2019 01:00:18 +0800 Subject: [PATCH] Enable opt-in google analytics for RustDocs. (#3762) --- substrate/.gitlab-ci.yml | 2 +- substrate/rustdoc-header.html | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 substrate/rustdoc-header.html diff --git a/substrate/.gitlab-ci.yml b/substrate/.gitlab-ci.yml index 60a75d5db4..a6ef113044 100644 --- a/substrate/.gitlab-ci.yml +++ b/substrate/.gitlab-ci.yml @@ -288,7 +288,7 @@ build-rust-doc-release: <<: *build-only script: - rm -f ./crate-docs/index.html # use it as an indicator if the job succeeds - - BUILD_DUMMY_WASM_BINARY=1 time cargo +nightly doc --release --all --verbose + - BUILD_DUMMY_WASM_BINARY=1 time RUSTDOCFLAGS="--html-in-header $(pwd)/rustdoc-header.html" cargo +nightly doc --release --all --verbose - cp -R ./target/doc ./crate-docs - echo "" > ./crate-docs/index.html - sccache -s diff --git a/substrate/rustdoc-header.html b/substrate/rustdoc-header.html new file mode 100644 index 0000000000..a679d5e299 --- /dev/null +++ b/substrate/rustdoc-header.html @@ -0,0 +1,10 @@ + + + +