Enable opt-in google analytics for RustDocs. (#3762)

This commit is contained in:
kaichao
2019-10-05 01:00:18 +08:00
committed by Shawn Tabrizi
parent b8e2f8f2d6
commit 7b5843ab79
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -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 "<meta http-equiv=refresh content=0;url=substrate_service/index.html>" > ./crate-docs/index.html
- sccache -s