From e9433456930befa09ffb0dbd4ddfa3f3025d0003 Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Tue, 9 May 2023 00:07:33 -0700 Subject: [PATCH] Add Mathjax to rustdoc output when generating local documentation, this requires `RUSTDOCFLAGS=--html-in-header docs/mathjax.html` for math to be rendered. --- Cargo.toml | 6 ++++++ docs/mathjax.html | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 docs/mathjax.html diff --git a/Cargo.toml b/Cargo.toml index 7dfcc5c..fe1632e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,3 +9,9 @@ edition = "2021" generic_parameterize = "0.1.0" itertools = "0.10.5" num-traits = "0.2.15" + +[package.metadata.docs.rs] +rustdoc-args = [ + "--html-in-header", + "doc/mathjax.html", +] \ No newline at end of file diff --git a/docs/mathjax.html b/docs/mathjax.html new file mode 100644 index 0000000..a87a23b --- /dev/null +++ b/docs/mathjax.html @@ -0,0 +1,11 @@ + + + \ No newline at end of file