diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-03 00:45:34 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-03 00:45:34 +0800 |
| commit | 9600ffd9d0ad8d736859dbbf828de1321abc21e0 (patch) | |
| tree | ce6aa9ba75822ff7fb80523c244b44819db094af | |
| parent | b9d5d8e2c442d73245b66c585afde8846c38d9c1 (diff) | |
chore(docs): add Arborium header to docs build
Add the Arborium JS library header to the documentation build via
RUSTDOCFLAGS and docs.rs metadata so generated docs include the
interactive Arborium components.
| -rwxr-xr-x[-rw-r--r--] | .run/src/bin/doc-nightly.sh | 0 | ||||
| -rw-r--r-- | .run/src/bin/doc.ps1 | 2 | ||||
| -rwxr-xr-x | .run/src/bin/doc.sh | 2 | ||||
| -rw-r--r-- | mingling/Cargo.toml | 2 | ||||
| -rw-r--r-- | mingling/arborium-header.html | 4 |
5 files changed, 7 insertions, 3 deletions
diff --git a/.run/src/bin/doc-nightly.sh b/.run/src/bin/doc-nightly.sh index 944f4b3..944f4b3 100644..100755 --- a/.run/src/bin/doc-nightly.sh +++ b/.run/src/bin/doc-nightly.sh diff --git a/.run/src/bin/doc.ps1 b/.run/src/bin/doc.ps1 index eec3dc5..731168c 100644 --- a/.run/src/bin/doc.ps1 +++ b/.run/src/bin/doc.ps1 @@ -1,4 +1,4 @@ -cargo doc ` +$env:RUSTDOCFLAGS="--html-in-header mingling/arborium-header.html"; cargo doc ` --manifest-path mingling/Cargo.toml ` --no-deps ` --features docs_rs,core,macros,builds,structural_renderer,repl,comp,parser,picker,clap,extra_macros,pathf ` diff --git a/.run/src/bin/doc.sh b/.run/src/bin/doc.sh index 9267a07..d6181d3 100755 --- a/.run/src/bin/doc.sh +++ b/.run/src/bin/doc.sh @@ -1,6 +1,6 @@ #!/bin/bash -cargo doc \ +RUSTDOCFLAGS="--html-in-header mingling/arborium-header.html" cargo doc \ --manifest-path mingling/Cargo.toml \ --no-deps \ --features docs_rs,core,macros,builds,structural_renderer,repl,comp,parser,picker,clap,extra_macros,pathf \ diff --git a/mingling/Cargo.toml b/mingling/Cargo.toml index f17285f..1148f2a 100644 --- a/mingling/Cargo.toml +++ b/mingling/Cargo.toml @@ -21,7 +21,7 @@ mingling = { path = ".", features = [ ] } [package.metadata.docs.rs] -rustdoc-args = ["--generate-link-to-definition"] +rustdoc-args = ["--generate-link-to-definition", "--html-in-header", "arborium-header.html"] features = [ "docs_rs", "core", diff --git a/mingling/arborium-header.html b/mingling/arborium-header.html new file mode 100644 index 0000000..f1f3655 --- /dev/null +++ b/mingling/arborium-header.html @@ -0,0 +1,4 @@ +<script + defer + src="https://cdn.jsdelivr.net/npm/@arborium/arborium@2.18.0/dist/arborium.iife.js" +></script> |
