Skip to main content

doc_content_map

Macro doc_content_map 

Source
macro_rules! doc_content_map {
    () => { ... };
}
Expand description

Generates a doc_content_map() function that returns a HashMap<&'static str, &'static str> from the build-script output.

Place this at module level in your main.rs:

dioxus_docs_kit::doc_content_map!();

Requires dioxus-docs-kit-build in [build-dependencies] and a build.rs that calls dioxus_docs_kit_build::generate_content_map("docs/_nav.json").