hyogen.md

0.14.0

hyogen.config

Declare how dev and build run. Use Vite-style defineConfig:

import { defineConfig } from "@b4moss/hyogen-md/config";

export default defineConfig({
  input: "./src/**/*.md",
  // outDir: "./out",
});

Discovery

Looking upward from the working directory (first match wins):

  1. hyogen.config.ts
  2. hyogen.config.mjs
  3. hyogen.config.js
  4. hyogen.config.cjs

Override with --config <file> on dev / build.

Options

KeyRequiredDefaultMeaning
inputyes—Entry path(s) or glob(s)
outDirno./outOutput for build only (dev does not write)
contextno—Shared template context
serverContextno—Server-only context
dataSourcesno—YAML / JSON / CSV map (dataSources)
rootno—Project root
includeUnderscoreEntriesno—Include _ entries
preserveFrontMatterno—Keep front matter in output
preserveHgCommentsno—Keep @hg comments in output

Paths in the config are resolved relative to the config file directory.