From 267ab1dc45c7e2cb68d8238c04376a258dcf61c9 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 25 Sep 2023 20:14:37 +0200 Subject: docs: fix custom CSS not used by docs.rs --- Cargo.toml | 2 +- docs-rs-ext.css | 28 ---------------------------- docs-style.html | 30 ++++++++++++++++++++++++++++++ macros/Cargo.toml | 2 +- macros/docs-style.html | 1 + 5 files changed, 33 insertions(+), 30 deletions(-) delete mode 100644 docs-rs-ext.css create mode 100644 docs-style.html create mode 120000 macros/docs-style.html diff --git a/Cargo.toml b/Cargo.toml index b3dc0a9..9228b2a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ exclude = ["/.chglog", "/.circleci", "examples", "rustfmt.toml"] [package.metadata.docs.rs] all-features = true -rustdoc-args = ["--cfg", "doc_cfg", "--extend-css", "docs-rs-ext.css"] +rustdoc-args = ["--cfg", "doc_cfg", "--html-in-header", "docs-style.html"] [features] default = ["prevent-circular"] diff --git a/docs-rs-ext.css b/docs-rs-ext.css deleted file mode 100644 index 8db6c2d..0000000 --- a/docs-rs-ext.css +++ /dev/null @@ -1,28 +0,0 @@ -.cf { - display: flex; - margin-left: 0px; - margin-bottom: 5px; - min-height: 36px; - padding:0 2px; - align-items: center; - vertical-align: text-bottom; - white-space: unset !important; - border-radius: 3px; - width: fit-content; - - background-color:var(--stab-background-color); - color:var(--main-color); - - font-weight:normal; - font-size:0.875rem; -} - -.cf code { - font-size: 0.875rem; - background-color: unset; - white-space: unset !important; -} - -.cf strong { - margin-left: 3px; -} diff --git a/docs-style.html b/docs-style.html new file mode 100644 index 0000000..1333b44 --- /dev/null +++ b/docs-style.html @@ -0,0 +1,30 @@ + diff --git a/macros/Cargo.toml b/macros/Cargo.toml index c5e5cbd..b9d2e68 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -13,7 +13,7 @@ proc_macro = true [package.metadata.docs.rs] all-features = true -rustdoc-args = ["--cfg", "doc_cfg"] +rustdoc-args = ["--cfg", "doc_cfg", "--html-in-header", "docs-style.html"] [features] factory = ["syrette/factory"] diff --git a/macros/docs-style.html b/macros/docs-style.html new file mode 120000 index 0000000..f7faf8d --- /dev/null +++ b/macros/docs-style.html @@ -0,0 +1 @@ +docs-style.html \ No newline at end of file -- cgit v1.2.3-18-g5258