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

Plan your docs layout

The layout options Publier offers for guides, generated references, products, versions, changes and search, and the page that sets each one.

Publier offers several layout options for a docs site. This page lists them, so you know what exists before you choose. Each option links to the page that sets it up.

Guides and references

Most docs sites have two kinds of page, and each has a different source.

KindWritten byUse it for
GuideYou, in MDX under src/content/docsExplaining a product, a task or a concept
ReferenceA tool, at build timeListing every endpoint, class, function or command

Publier generates three kinds of reference: an OpenAPI reference, an SDK reference and a CLI reference. Their pages go into a generated folder, so change the source and not the pages.

Where a reference sits

  • Its own sidebar section. The reference is navigated like any other section of the docs.
  • A tab in a product’s header. A product can show a row of section links, such as Documentation and Library reference. See tabs for a registry product.
  • Language and release menus. When a library has several languages or releases, its sidebar opens with menus to switch between them. See SDK reference.

Products

  • One product. There is no switcher. The docs are the whole site.
  • A flat switcher. Products appear in a list.
  • A category rail. Products are grouped under categories, and the selected category’s products sit beside them. Hand-listed entries, such as an overview, can sit in a category too. See products.

Versions

  • No versions. Nothing extra appears.
  • Version folders. A product with versions gets a version switcher. Each version has a status: current, supported, frozen or preview. See versioning.
  • Version lifecycle. Publish a new version, mark an old one as legacy, and retire its URLs. See version lifecycle.
  • Pages for every release. A generated reference can keep each earlier release as a page of its own, behind a release menu. See SDK reference.

Changes and deprecations

A changelog can be kept per product, with a page and a feed for each product, and each entry can name the versions it affects. See changelog and deprecations.

  • Navigation. The menu can be flat, grouped in dropdowns, or a full-width mega menu. Docs pages can have a separate header. See navigation.
  • Dark mode. The reader’s system setting can apply to docs pages only, while marketing pages stay in one scheme. See global settings.
  • Colours and type. See theming.

Search can cover the current version and product, or every version and product. See search.