macana

Static site generator for Obsidian Vault

Input options

input.path

Path to a Vault (source directory includes documents). Path needs to be relative and resolved from the config file.

Output options

output.path

Path to the output directory. Path needs to be relative and resolved from the config file.

output.precompress

Whether to compress .html, .css and .js files into .<ext>.gz, .<ext>.br and .<ext>.zst files. For example, if an output directory contains index.html, Macana also generates - index.html.gz (Gzip) - index.html.br (Brotli) - index.html.zst (ZStandard)

inside the same directory.

Website metadata options

metadata.name

Website name, title. <title> and a title section in a header uses this text.

metadata.favicon.svg

Path to a SVG file to use as a favicon. Path needs to be relative and resolved from the config file.

metadata.favicon.png

Path to a PNG file to use as a favicon. Path needs to be relative and resolved from the config file.

metadata.copyright

Copyright text to show in the generated website.

metadata.logoImage

Path to an image file to use as a website logo. Path needs to be relative and resolved from the config file.

Document options

documents.defaultLanguage

Default language for the generated website.

documents.languages.<directory>

If a directory name matches to <directory>, the directory is treated as a language directory: the directory itself and its contents have different language than the parent one.

documents.resolveShortestPathWhenPossible

Enable support for Obsidian’s “[[Ambiguous path resolution#Shortest path when possible|Shortest path when possible]]” link resolution.

documents.title.keepExtension

By default, Macana use filename without file extension part as a document title. If this option is enabled, Macana does not trim the file extension part.

Markdown options

markdown.enabled

Enable parsing of Markdown documents. You can disable this from CLI via --disable-markdown flag.

markdown.yamlFrontmatter

Enable parsing of YAML frontmatter in Markdown documents.

JSONCanvas options

jsonCanvas.enabled

Enable parsing of JSONCanvas documents. You can disable this from CLI via --disable-jsoncanvas flag.