[package]
name = "dioxus-docs-kit"
version.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
description = "Reusable documentation site shell for Dioxus applications"
documentation = "https://docs.rs/dioxus-docs-kit"
keywords = ["dioxus", "documentation", "mdx", "docs-site", "openapi"]
categories = ["web-programming", "gui"]
readme = "README.md"
[dependencies]
dioxus = { workspace = true, features = ["lib", "router"] }
dioxus-free-icons = { workspace = true }
dioxus-mdx = { workspace = true }
dioxus-code = { workspace = true, optional = true }
dioxus-fullstack-core = { version = "0.7.10", optional = true }
serde = { workspace = true }
serde_json = { workspace = true }
tracing = { workspace = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
gloo-timers = { workspace = true }
[features]
default = [
"web",
"mermaid",
"highlight",
"openapi",
"lang-bash",
"lang-css",
"lang-dockerfile",
"lang-html",
"lang-javascript",
"lang-json",
"lang-markdown",
"lang-python",
"lang-toml",
"lang-typescript",
"lang-yaml",
]
web = ["dioxus/web", "dioxus-mdx/web"]
server = ["dioxus/server", "dep:dioxus-fullstack-core"]
mermaid = ["dioxus-mdx/mermaid"]
highlight = ["dep:dioxus-code", "dioxus-mdx/highlight"]
openapi = ["dioxus-mdx/openapi"]
lang-rust = ["highlight", "dioxus-mdx/lang-rust"]
lang-bash = ["highlight", "dioxus-mdx/lang-bash"]
lang-c-sharp = ["highlight", "dioxus-mdx/lang-c-sharp"]
lang-cpp = ["highlight", "dioxus-mdx/lang-cpp"]
lang-css = ["highlight", "dioxus-mdx/lang-css"]
lang-dockerfile = ["highlight", "dioxus-mdx/lang-dockerfile"]
lang-html = ["highlight", "dioxus-mdx/lang-html"]
lang-javascript = ["highlight", "dioxus-mdx/lang-javascript"]
lang-json = ["highlight", "dioxus-mdx/lang-json"]
lang-markdown = ["highlight", "dioxus-mdx/lang-markdown"]
lang-python = ["highlight", "dioxus-mdx/lang-python"]
lang-toml = ["highlight", "dioxus-mdx/lang-toml"]
lang-tsx = ["highlight", "dioxus-mdx/lang-tsx"]
lang-typescript = ["highlight", "dioxus-mdx/lang-typescript"]
lang-yaml = ["highlight", "dioxus-mdx/lang-yaml"]
[package.metadata.docs.rs]
features = ["server"]