Configuration
On this page
Configuration#
Configuration is optional and merges into built-in defaults. A minimal file needs only a site title and content directory. This is the supported schema:
site:
title: Research notebook
description: Technical notes and field references.
base_url: https://example.com/notes/
language: en
author: ""
favicon: ""
content:
directory: content
include: ["**/*.md"]
exclude: ["Private/**", "Templates/**"]
output:
directory: dist
publishing:
mode: explicit
frontmatter_key: publish
strict: true
theme:
name: default
appearance: system
typography: editorial
directory: ""
accent_color: "#2856c5"
content_width: 780px
custom_css: ""
markdown:
transclusion: true
mermaid: true
math: true
max_transclusion_depth: 8
max_expanded_bytes: 8388608
assets:
policy: referenced
allowlist: []
follow_symlinks: false
external_downloads: false
navigation:
explorer: true
breadcrumbs: true
tags: true
table_of_contents: true
sort_by: name
search:
enabled: true
fuzzy: true
index_headings: true
index_content: true
graph:
enabled: true
global: true
local: true
local_depth: 1
max_nodes: 1000
features:
backlinks: true
link_preview: true
reading_time: true
copy_code: true
rss: true
sitemap: true
build:
incremental: true
cache_directory: .vaw/cache
concurrency: 0
server:
host: 127.0.0.1
port: 8080
live_reload: true
deployment:
provider: static
production_branch: main
preview_indexing: false
All fields are optional. Defaults use My Notes, content/, dist/, explicit publishing and strict builds. Unknown keys and multiple YAML documents are rejected. CLI --config points to a required file; absent default vaw.yaml uses built-in defaults.
Precedence: defaults, YAML file, VAW_SITE_TITLE/VAW_VAULT/VAW_OUTPUT/VAW_BASE_URL/VAW_PREVIEW, then supported command flags. VAW_SITE_TITLE sets the generated site's name when a deployment does not keep a vaw.yaml file. Config paths are relative to the config file. Environment/flag paths are relative to the working directory. base_url is an HTTP(S) URL; its path prefixes internal navigation and local assets. A local favicon is copied from an ICO/PNG/JPG/WebP file; an HTTP(S) favicon is referenced without fetching it. Remote content is never downloaded during generation.
Output must be outside the vault. Existing non-empty output must have the generator's ownership marker. Builds always replace complete output, removing stale files after a note becomes private. --clean makes this explicit but does not weaken safety checks.
Asset policy allowlist publishes only matching eligible safe-format attachments; all explicitly publishes all eligible safe-format attachments and should be reviewed carefully. Exclusions always win. SVG and executable formats are rejected, and symlink following/external downloads must remain false.
Raw note HTML is always disabled. Mermaid and math use locally bundled, lazily loaded browser renderers. Disabling them retains readable source. markdown.max_transclusion_depth is 1–32; expanded output is limited to 1 KiB–64 MiB per note. Parsing concurrency zero selects a bounded automatic worker count; explicit values are 1–256 (the parser caps active workers).
build.incremental enables a hash-verified unchanged-build cache. Source/config/asset/theme/generator changes trigger a complete staged rebuild; dependency-specific partial parsing is not currently used. Cache files must be outside the vault and output or caching is disabled. Correctness and stale-private-file removal take precedence over reusing individual pages.
Sitemap and RSS require an absolute base URL; they are omitted when it is unset. Explicit frontmatter dates drive metadata; filesystem timestamps are not publication dates. noindex: true excludes a published note from search/SEO indexes while it remains a public document. Preview builds suppress indexing unless explicitly enabled. Documented Pages/Workers branch variables are recognized for their selected provider; VAW_PREVIEW=true enables the same behavior on other CI hosts.
Only default is currently a built-in theme. Use theme.directory for trusted local template overrides and custom CSS for additional styling. Accent colors use six-digit hexadecimal notation; content width accepts positive integer px, ch, or rem values. navigation.sort_by supports name or title. Unknown keys and unsupported values fail validation rather than being silently ignored.