Valkyrian Labs

Docs Sets Configuration

Configure docs packages without duplicating routing or security internals.

Docs Sets Configuration

Docs sets are stored in Docs Globals > Sets. A set represents one docs package.

Fields

For a typical docs set, configure:

  • title
  • slug
  • group, optional
  • routeMode, default docs-root
  • branch, default main
  • allowPullRequests, default off
  • description, optional
  • meta, optional SEO/social preview metadata
  • Manually manage title/desc (manualTitleDescription): who owns the title and description, the admin or docs/stack.toml
  • stack, read-only: the technology stack synced from docs/stack.toml
  • Strict Markdown checks (strictChecks, Sync tab), default off: reject syncs whose pages have payload-markdown warnings or errors, or broken links or anchors (Markdown diagnostics)

The slug is also the manifest source and the GitHub OIDC audience. The route base is derived from the optional group route plus the set slug.

Example:

1title: Payload Markdown Docs2slug: payload-markdown-docs3group: plugins4branch: main

This resolves to /plugins/payload-markdown-docs.

Use routeMode: product-nested when the docs should live below /docs so the host app can own the product route:

1/plugins/payload-markdown-docs2/plugins/payload-markdown-docs/docs

SEO

The meta group uses @payloadcms/plugin-seo field components for standard social preview metadata:

  • title
  • description
  • image

The image uses the default Payload media collection. SEO data feeds metadata helpers only; it does not render a hero or banner in PayloadMarkdownDocsPage.

SEO fields are enabled by default. Set seo: false in payloadMarkdownDocs() to omit them.

Advanced Security

You do not need this for normal docs publishing.

Leave advanced security disabled to allow any workflow from a trusted GitHub owner/repository on the configured branch. Enable it only when you want exact workflow refs. When enabled, an empty workflow list rejects all workflow publishing for that docs set.

GitHub tag refs are allowed from trusted repositories when advanced security is disabled. If tag publishing needs stricter control, enable advanced security and add the exact release workflow refs.

Project Metadata

A docs repository can describe its product in docs/stack.toml. Every sync stores the stack on the docs set; the field is read-only in the admin.

title and description follow Manually manage title/desc:

  • Off (the default for new docs sets): a title or description in stack.toml replaces the docs set's value on every sync. Values the file does not set are kept.
  • On: the admin's title and description are kept. Docs sets created before 1.3 behave as if it were on until an admin turns it off.

Turning the setting off applies the last synced values right away. SEO meta fields are never written by sync.

Sync Metadata

The sync group stores lastSyncedAt and lastStatus, plus the title and description from stack.toml at the last sync (projectTitle, projectDescription), and diagnostics, read-only: the Markdown diagnostics of the last applied sync (error, warning and info counts, the scope, how many pages it checked, the sync run id and the first 20 findings; the sync run has them all). A sync that checked only its changed pages counts only those. The Docs Set Admin Manager computes generated docs counts directly from linked generated records.

See Docs Set Admin Manager.