twiki
Configuration reference

Configuration reference

2 min read

Generated from the runtime schema. The same schema validates configuration and provides TypeScript types.

For editor completion, add "$schema": "./node_modules/@twango/twiki/cli/twiki.schema.json" to a root-level twiki.config.json. Adjust the path if your config lives elsewhere. The package also exports @twango/twiki/schema.

FieldType / valuesRequiredDefaultDescription
$schemastringNo—Optional JSON Schema URL or local path for editor completion.
version1Yes, when parent exists—Configuration format version.
contentDirstringNo—Content directory relative to the vault root. Explicit CLI projects default to the current directory.
discoveryfilesystem, gitNo—File discovery. Explicit CLI projects default to filesystem; legacy workspaces default to git.
publicationprivate, public, policiesNo—Publication mode. Explicit CLI projects default to private. Static export requires public.
siteobjectNo—Branding, canonical URL, author and navigation settings.
site.namestringNo"twiki"Site name shown in navigation.
site.titlestringNo"twiki"Default page title.
site.urlstringNo"http://localhost:5173"Canonical HTTP or HTTPS origin.
site.descriptionstringNo"Notes, ideas, and reference material."Default site description.
site.authorobjectNo—
site.author.namestringNo""
site.author.urlstringNo""
site.author.githubstringNo""
site.author.emailstringNo""
site.localestringNo"en_US"Open Graph locale.
site.languagestringNo"en"HTML language.
site.navigationobjectNo—
site.navigation.modecourses, sectionsNo"courses"Course navigation or general documentation sections.
site.navigation.workspacestringNo"Workspace"Navigation switcher caption.
site.navigation.browsestringNo"Browse courses"Navigation switcher label.
site.navigation.findstringNo"Find a course"Section search label.
site.navigation.homestringNo"Workspace home"Link to the vault home.
site.navigation.allstringNo"All courses"Unfiltered search label.
cloudflareobjectNo—Wrangler resource settings. Twiki supplies generated main and assets paths. Never put credentials here.
analyticsobjectNo—Optional analytics site and endpoint. Disabled when omitted.
analytics.siteIdstringYes, when parent exists—
analytics.scriptUrlstringNo—
analytics.endpointstringNo—

Absent values preserve context-sensitive defaults: an explicit CLI vault uses filesystem discovery, the vault root as content directory, and private publication. Legacy engine workspaces use Git discovery, content/ and publication policies. Schema defaults for site metadata match runtime branding defaults.

The cloudflare object passes resource settings to Wrangler; Twiki controls generated main and assets. Never store an API token here. See Cloudflare deployment, Authentication and Public vault example.

Linked to this page