Skip to main content

design/
lib.rs

1//! Design documentation library for Oxur
2//!
3//! This library provides types and utilities for managing design documents
4//! in the Oxur project.
5
6pub mod config;
7pub mod constants;
8pub mod doc;
9pub mod errors;
10pub mod extract;
11pub mod filename;
12pub mod git;
13pub mod index;
14pub mod index_sync;
15pub mod normalize;
16pub mod prompt;
17pub mod state;
18pub mod theme;
19
20pub use doc::{
21    add_missing_headers, add_number_prefix, build_yaml_frontmatter, ensure_valid_headers,
22    extract_number_from_filename, extract_title_from_content, has_frontmatter, has_number_prefix,
23    has_placeholder_values, is_in_project_dir, is_in_state_dir, move_to_project, move_to_state_dir,
24    state_from_directory, sync_state_with_directory, DesignDoc, DocError, DocMetadata, DocState,
25};
26pub use index::DocumentIndex;
27
28/// Re-export common error types
29pub use anyhow::{Error, Result};