diff --git a/.gitignore b/.gitignore index 958934db4..7d8a0d591 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,6 @@ Concordium.cabal *.pdf *.csv *.svg -*.html # CMake build folder build/ diff --git a/rust-src/concordium_base/Cargo.toml b/rust-src/concordium_base/Cargo.toml index 98f16ce81..a876f267b 100644 --- a/rust-src/concordium_base/Cargo.toml +++ b/rust-src/concordium_base/Cargo.toml @@ -142,3 +142,7 @@ harness = false [package.metadata.docs.rs] # Expose the `encryption` feature in documentation. features = ["encryption"] +rustdoc-args = [ + "--html-in-header", + "docs/assets/katex-header.html", +] diff --git a/rust-src/docs/assets/katex-header.html b/rust-src/docs/assets/katex-header.html new file mode 100644 index 000000000..b31ec9af5 --- /dev/null +++ b/rust-src/docs/assets/katex-header.html @@ -0,0 +1,23 @@ + + + + + + + + + + +