cartulary 0.3.0-alpha.1

The knowledge layer of your project — decisions, issues, docs, all in one place.
Documentation
pub mod slug;

pub use slug::{Slug, SlugError};

use crate::domain::model::body::Body;
use crate::domain::model::site::Source;

/// A free-form Markdown page, parsed and routed.
///
/// `source` addresses the file within the configured `[docs.<name>]
/// source` directory; `url` is the absolute URL the page is mounted at
/// on the generated site (with leading slash and trailing slash).
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Page {
    pub source: Source,
    pub url: String,
    pub title: String,
    pub body: Body,
}