//! Build modules for shared crate
//!
//! This module organizes all build-time functionality into separate, focused
//! modules:
//! - utils: Common utilities and helper functions
//! - resource_discovery: Resource discovery and registry generation
//! - route_generation: Route component generation from routes.toml
//! - content_types: Content type enum generation with operational knowledge
//! - page_templates: Template system for auto-generating page components

pub mod client_route_analysis;
pub mod component_analysis;
pub mod comprehensive_analysis;
pub mod content_types;
pub mod page_generation;
pub mod page_templates;
pub mod resource_discovery;
pub mod route_generation;
pub mod server_route_analysis;
pub mod utils;

// Re-export items used in build.rs (only available functions from
// rustelo_utils)
pub use client_route_analysis::{
    generate_client_route_documentation, generate_enhanced_client_documentation,
};
pub use component_analysis::generate_component_documentation;
pub use comprehensive_analysis::generate_comprehensive_documentation;
pub use content_types::generate_content_types;
pub use page_generation::generate_page_components;
pub use resource_discovery::{
    embed_routes_config, generate_resource_contributor_code, generate_resource_registry,
    generate_route_table, generate_server_routing,
};
pub use route_generation::{
    generate_page_boilerplate, generate_pages_from_templates, generate_route_components,
};
pub use rustelo_utils::{i18n_path, manifest_config_path, manifest_content_path};
pub use server_route_analysis::generate_server_route_documentation;

// page_templates items are used internally by route_generation, not by build.rs
