Expand description
User-facing walkthrough: ../../dmc-docs/dmc-core/
Run cargo doc --open -p dmc-core for the inline rustdoc.
Orchestrator: lex -> parse -> transform -> codegen pipeline plus a
multi-file engine that processes whole collections per a velite-style
config. See crate::engine::compile::Compiler::compile for
single-source use; crate::Engine::run
for batch builds.
Re-exports§
pub use engine::Engine;
Modules§
- ast
- cli
- engine
- loaders
- Per-extension loaders: bytes ->
Loaded { data, content }for schema validation.MatterLoaderruns the full mdx compile;YamlLoader/JsonLoaderparse data files directly.
Structs§
- Mermaid
Options - Top-level mermaid configuration. Single flat object - every
mermaid.initialize()knob (themeVariables, flowchart, sequence, gantt, look, layout, …) lives at the same level as the dmc-side rendering knobs (responsiveSvg, centerLabels, outputDir, …). All fields are typed end-to-end; noserde_json::Valuecatch-all. - Pretty
Code Options - Top-level pretty-code configuration. Stored on
CompileConfigasOption<PrettyCodeOptions>;Nonemeans “use built-in defaults”.
Enums§
- Mermaid
Theme Mode - Mermaid theme spec. Either a single theme name (renders once,
attaches one
chartSvgattr) or a map ofmode -> theme namethat renders per-mode and attaches one${mode}Svgattr per entry. - Pretty
Code Theme - Pretty-code theme spec.
Functions§
- parse
- Lex + parse in one shot, dropping all diagnostics. Tests + the
parsebin; production callers should construct their ownDiagnosticEngine.