aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-09-25 20:14:37 +0200
committerHampusM <hampus@hampusmat.com>2023-09-25 20:14:37 +0200
commit267ab1dc45c7e2cb68d8238c04376a258dcf61c9 (patch)
tree04c381c12376642fb95f1777a1022dea5f13e9bd
parentbb12872c71fbc1fd59a1a5d643db0ccee255e5c5 (diff)
docs: fix custom CSS not used by docs.rs
-rw-r--r--Cargo.toml2
-rw-r--r--docs-style.html (renamed from docs-rs-ext.css)2
-rw-r--r--macros/Cargo.toml2
l---------macros/docs-style.html1
4 files changed, 5 insertions, 2 deletions
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-style.html
index 8db6c2d..1333b44 100644
--- a/docs-rs-ext.css
+++ b/docs-style.html
@@ -1,3 +1,4 @@
+<style>
.cf {
display: flex;
margin-left: 0px;
@@ -26,3 +27,4 @@
.cf strong {
margin-left: 3px;
}
+</style>
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