Skip to content

Site structure

Sections, section groups, versions and languages.

Sections#

Each space of a site is a section — a tab in the published header. The first section is the home page, served at the site root; the others live under their slug:

https://docs.example.com/                 ← first section
https://docs.example.com/api/…            ← section "api"
https://docs.example.com/changelog        ← section "changelog"

Manage sections in the site's Settings → Spaces: create, rename, change the URL slug, reorder, duplicate, move a space to another site, or delete it. Reordering and renaming keep old URLs working.

Section groups#

Give several sections the same section group label and they share one dropdown in the header, at the first one's place, and a heading in mobile navigation. Useful when a site has many products.

Variants: versions and languages#

A section can hold several spaces as variants:

  • Versions — v3, v2, v1 of the same product.

  • Languages — English, Français, 日本語, each with its language code.

One variant is the default and is served at the section's own URL; the others add their slug:

https://docs.example.com/api/…            ← default variant
https://docs.example.com/api/v1/…         ← variant "v1"

Readers switch with the variant switcher in the header and above the table of contents. They stay on the same page when the other variant has it, and Docsheaf remembers their choice per section and language.

Search covers one variant per section — the one the reader is in. For language variants, pages that exist in several languages get hreflang alternates in their HTML and in the sitemap, so search engines send each reader to their language.

Add variants in Settings → Spaces. Variants are part of the Pro plan; existing variants keep working after a downgrade and can always be changed or removed.

Theme per section#

Each section can override the site's primary color, tint, theme preset, code theme and link style — handy to set an API reference apart. See Customization.

Was this helpful?

Last updated

View as Markdown