1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! Static Site Generation for Ox Content.
//!
//! This crate provides HTML page generation for documentation sites,
//! including navigation, table of contents, search functionality,
//! and theming support.
//!
//! # Features
//!
//! - Full HTML page generation with responsive layout
//! - Navigation sidebar with grouping
//! - Table of contents generation
//! - Client-side search integration
//! - Dark/light theme support
//! - Mobile-friendly responsive design
//! - Customizable theme configuration
//!
//! # Example
//!
//! ```ignore
//! use ox_content_ssg::{generate_html, PageData, NavGroup, NavItem, SsgConfig, TocEntry};
//!
//! let page_data = PageData {
//! title: "Getting Started".to_string(),
//! description: Some("Learn how to use ox-content".to_string()),
//! content: "<h1>Getting Started</h1><p>Welcome!</p>".to_string(),
//! toc: vec![TocEntry { depth: 1, text: "Getting Started".to_string(), slug: "getting-started".to_string() }],
//! path: "getting-started".to_string(),
//! entry_page: None,
//! };
//!
//! let nav_groups = vec![NavGroup {
//! title: "Guide".to_string(),
//! items: vec![NavItem {
//! title: "Getting Started".to_string(),
//! path: "getting-started".to_string(),
//! href: "/docs/getting-started/index.html".to_string(),
//! }],
//! }];
//!
//! let config = SsgConfig {
//! site_name: "My Docs".to_string(),
//! base: "/docs/".to_string(),
//! og_image: None,
//! theme: None,
//! };
//!
//! let html = generate_html(&page_data, &nav_groups, &config);
//! ```
pub use ;