From 394207a108744cbb1614be3c6b1d42e6e4384c3e Mon Sep 17 00:00:00 2001 From: rwa Date: Wed, 8 Feb 2023 19:25:22 +0100 Subject: [PATCH] docs: fix warning styles in html-in-header (#2449) The documentation under https://tracing.rs/tracing/ is missing CSS styles. Fixes #2444 Used the `--html-in-header` rustdoc flag instead of `--extend-css`. Converted the css file into an html file. --- assets/warning-css.html | 27 +++++++++++++++++++++++++++ netlify.toml | 3 +++ 2 files changed, 30 insertions(+) create mode 100644 assets/warning-css.html diff --git a/assets/warning-css.html b/assets/warning-css.html new file mode 100644 index 0000000000..50f3b10f82 --- /dev/null +++ b/assets/warning-css.html @@ -0,0 +1,27 @@ + \ No newline at end of file diff --git a/netlify.toml b/netlify.toml index 6e3beff1a6..76794dd920 100644 --- a/netlify.toml +++ b/netlify.toml @@ -11,6 +11,9 @@ --force-warn renamed-and-removed-lints \ --cfg docsrs \ --cfg tracing_unstable + --html-before-content /opt/build/repo/assets/warning.html \ + --html-in-header /opt/build/repo/assets/noindex.html \ + --html-in-header /opt/build/repo/assets/warning-css.html \ """ RUSTFLAGS="--cfg tracing_unstable"