pub mod graph_mini;
pub mod graph_view;
pub mod htmx_sidebar;
pub mod ontology_context;
pub mod project_graph_section;
pub mod related_content;
pub mod unified;

pub use graph_mini::GraphMini;
pub use graph_view::GraphView;
pub use ontology_context::OntologyContext;
pub use project_graph_section::ProjectGraphSection;
pub use related_content::RelatedContent;

#[cfg(not(target_arch = "wasm32"))]
pub use htmx_sidebar::render_sidebar;

// Generated static data — written to OUT_DIR by pages/build.rs.
#[allow(clippy::redundant_static_lifetimes)]
pub mod generated {
    pub mod related {
        include!(concat!(env!("OUT_DIR"), "/related_map.rs"));
    }
    pub mod ontology {
        include!(concat!(env!("OUT_DIR"), "/ontology_context_map.rs"));
    }
    pub mod mini {
        include!(concat!(env!("OUT_DIR"), "/graph_mini_map.rs"));
    }
}

#[cfg(not(target_arch = "wasm32"))]
pub(crate) const GRAPH_JSON: &str =
    include_str!(concat!(env!("OUT_DIR"), "/content_graph.json"));
