diff --git a/substrate/.gitlab-ci.yml b/substrate/.gitlab-ci.yml
index 87efc43af2..5e406b36c5 100644
--- a/substrate/.gitlab-ci.yml
+++ b/substrate/.gitlab-ci.yml
@@ -661,8 +661,7 @@ build-rustdoc:
- ./crate-docs/
script:
# FIXME: it fails with `RUSTDOCFLAGS="-Dwarnings"`
- - RUSTDOCFLAGS="--html-in-header $(pwd)/.maintain/rustdoc-header.html"
- time cargo +nightly doc --no-deps --workspace --all-features --verbose
+ - time cargo +nightly doc --no-deps --workspace --all-features --verbose
- rm -f ./target/doc/.lock
- mv ./target/doc ./crate-docs
# FIXME: remove me after CI image gets nonroot
diff --git a/substrate/.maintain/rustdoc-header.html b/substrate/.maintain/rustdoc-header.html
deleted file mode 100644
index a679d5e299..0000000000
--- a/substrate/.maintain/rustdoc-header.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-