docs-core 0.3.0

Rust docs pipeline core: CommonMark+GFM to static HTML with astro-island-compatible island emission, so a Rust shell hydrates the estate's existing SolidJS bundles. Consolidates Tachyon + docs-pipeline + the starlight-* stack (ADR-0004 §2.5)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Typed errors. A malformed fence names the fence; the renderer never
//! swallows a failure silently.

/// Why a document could not be rendered.
#[derive(Debug, Clone, PartialEq, thiserror::Error)]
pub enum DocsError {
    /// An `island` fence carried no component name.
    #[error("island fence without a component name: `{0}`")]
    IslandWithoutName(String),
    /// An island fence's body was not a JSON object.
    #[error("island props must be a JSON object, got: `{0}`")]
    InvalidIslandProps(String),
    /// A `$`/`$$` math span did not parse as LaTeX (build-time failure;
    /// the offending span is named, Wave 2 math).
    #[error("math did not parse as LaTeX: `{0}`")]
    BadMath(String),
}