Skip to content

Commit

Permalink
docs: generate link to definition (#2656)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisp60 committed Jul 3, 2024
1 parent c53fc67 commit fb5d851
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 0 deletions.
3 changes: 3 additions & 0 deletions integrations/actix/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ tokio = { version = "1", features = ["rt", "fs"] }
[features]
nonce = ["leptos/nonce"]
experimental-islands = ["leptos_integration_utils/experimental-islands"]

[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]
3 changes: 3 additions & 0 deletions integrations/axum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ nonce = ["leptos/nonce"]
wasm = []
default = ["tokio/fs", "tokio/sync"]
experimental-islands = ["leptos_integration_utils/experimental-islands"]

[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]
3 changes: 3 additions & 0 deletions integrations/utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ tracing = "0.1.37"

[features]
experimental-islands = []

[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]
3 changes: 3 additions & 0 deletions leptos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,6 @@ skip_feature_sets = [
"rustls",
],
]

[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]
3 changes: 3 additions & 0 deletions leptos_config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ typed-builder = "0.18"
tokio = { version = "1", features = ["rt", "macros"] }
tempfile = "3"
temp-env = { version = "0.3.6", features = ["async_closure"] }

[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]
3 changes: 3 additions & 0 deletions leptos_dom/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,6 @@ trace-component-props = []
[package.metadata.cargo-all-features]
denylist = ["nightly", "trace-component-props"]
skip_feature_sets = [["web", "ssr"]]

[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]
3 changes: 3 additions & 0 deletions leptos_macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@ axum = ["server_fn_macro/axum"]
[package.metadata.cargo-all-features]
denylist = ["nightly", "tracing", "trace-component-props"]
skip_feature_sets = [["csr", "hydrate"], ["hydrate", "csr"], ["hydrate", "ssr"]]

[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]
3 changes: 3 additions & 0 deletions leptos_reactive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,6 @@ skip_feature_sets = [
"rkyv",
],
]

[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]
3 changes: 3 additions & 0 deletions leptos_server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ nightly = ["leptos_reactive/nightly"]

[package.metadata.cargo-all-features]
denylist = ["nightly"]

[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]
3 changes: 3 additions & 0 deletions meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ nightly = ["leptos/nightly"]
[package.metadata.cargo-all-features]
denylist = ["nightly"]
skip_feature_sets = [["csr", "ssr"], ["csr", "hydrate"], ["ssr", "hydrate"]]

[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]
3 changes: 3 additions & 0 deletions router/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,6 @@ nightly = ["leptos/nightly"]
# No need to test optional dependencies as they are enabled by the ssr feature
denylist = ["url", "regex", "nightly"]
skip_feature_sets = [["csr", "ssr"], ["csr", "hydrate"], ["ssr", "hydrate"]]

[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]
1 change: 1 addition & 0 deletions server_fn/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ ssr = ["inventory"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--generate-link-to-definition"]

# disables some feature combos for testing in CI
[package.metadata.cargo-all-features]
Expand Down
3 changes: 3 additions & 0 deletions server_fn_macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ ssr = []
actix = []
axum = []
reqwest = []

[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]

0 comments on commit fb5d851

Please sign in to comment.