//! DocTree is a library for managing collections of markdown documents. //! //! It provides functionality for scanning directories, managing collections, //! and processing includes between documents. // Import lazy_static for global state mod collection; mod doctree; mod error; mod include; mod storage; mod utils; pub use collection::{Collection, CollectionBuilder}; pub use doctree::{DocTree, DocTreeBuilder, from_directory, new}; pub use error::{DocTreeError, Result}; pub use include::process_includes; pub use storage::RedisStorage; #[cfg(test)] mod tests { use super::*; #[test] fn test_doctree_builder() { // Create a storage instance let storage = RedisStorage::new("redis://localhost:6379").unwrap(); let doctree = DocTree::builder().with_storage(storage).build().unwrap(); assert_eq!(doctree.collections.len(), 0); assert_eq!(doctree.default_collection, None); } }