@docpensieve/core
v0.4.1
Published
DocPensieve engine: loading, MDX compilation, structured data, site generation
Maintainers
Readme
@docpensieve/core
Generation engine
Part of DocPensieve, a static documentation site generator: Markdown and MDX in, static HTML out, one version per orphan branch, JSON-LD structured data from the frontmatter.
Installation
npm install @docpensieve/coreUsage
Source loading, MDX compilation, structured data and site writing. The engine depends neither on the theme nor on the components: they are injected, which keeps it testable without React or CSS.
import { loadConfig, DocLoader, Compiler, SiteGenerator } from '@docpensieve/core';
const config = await loadConfig();
const generator = new SiteGenerator(config, { theme, components });
await generator.buildAll();.md and .mdx both go through MDX, then react-dom/server. React is a
build-only dependency: the produced HTML loads no runtime.
Documentation
See the repository.
License
MIT
