✨ Publier v1 is live — a polished docs platform built for the open web.
Skip to content

Global settings

Field-by-field reference for every option in publier.config.yaml.

The publier.config.yaml file at your project root controls site-wide settings — name, navigation, search, analytics, fonts, and snippets.

Full example

publier.config.yaml
name: My Docs
url: https://docs.example.com
nav:
links:
- label: GitHub
href: https://github.com/my-org/my-docs
external: true
sidebar:
defaultOpenLevel: 2
search:
enabled: true
llms:
enabled: true
collections: [docs]
snippets:
directory: src/content/snippets

Site

FieldTypeRequiredDescription
namestringYesSite name — header, browser tab, meta tags
urlstringProduction URL for sitemap, OG images, canonical links
FieldTypeDefaultDescription
nav.links[].labelstringLink text
nav.links[].hrefstringURL (internal path or external)
nav.links[].externalbooleanfalseOpen in a new tab with rel="noopener"

GitHub links auto-render as icon buttons. Other external links render as text. See Navigation for variants and pathRules.

FieldTypeDefaultDescription
sidebar.defaultOpenLevelnumber1Sidebar levels expanded by default
FieldTypeDefaultDescription
search.enabledbooleantrueShow the ⌘K dialog
search.hotkeystring"k"Cmd/Ctrl + <hotkey> opens the dialog

LLMs

FieldTypeDefaultDescription
llms.enabledbooleanfalseGenerate /llms.txt and /llms-full.txt at build time
llms.fullbooleanfalseAlso emit /llms-full.txt with full Markdown bodies
llms.collectionsstring[][]Collections to include (e.g. ['docs'])

AI coding tools (Cursor, Copilot, Claude) read these files for documentation-aware suggestions.

Snippets

FieldTypeDefaultDescription
snippets.directorystring'content/snippets'Directory of reusable MDX fragments

See the Snippets guide for usage.

Logo and favicon

publier.config.yaml
logo:
light: /logo-light.svg # shown in light mode
dark: /logo-dark.svg # shown in dark mode
favicon: /favicon.ico

Paths are relative to public/.

Add an “Edit this page” link to every doc page:

publier.config.yaml
editLink:
baseUrl: https://github.com/my-org/my-docs/edit/main/src/content/docs

The current page path is appended automatically.

Pages

Toggle individual page types on or off:

publier.config.yaml
pages:
docs: true
blog: true
landing: false
about: false
team: false
careers: false
press: false
contact: false
changelog: true
status: false
knowledge-base: false

Setting a key to false suppresses the route entirely — it disappears from the sidebar, sitemap, search index, and RSS feed. See Pages for what each page does.