Views - Documentation.AI

Views

Understand views (tabs and dropdowns), how they relate to dimensions and content, and how to choose and manage navigation patterns in the Web Editor.

Overview

Views control how content is organized and navigated within a Dimension context in Documentation.AI.

You work with views in two places:

This page focuses on:

Think of a dimension as a filter on content, and a view as the layout for navigating that filtered content.

Supported view types

Documentation.AI supports two view types at the layout layer:

Both types act as containers for content or other containers.

Tabs

Tabs are top-level navigation sections such as Guides, API Reference, or Changelog.

Use Tabs when:

What Tabs do: Switching Tabs changes the active navigation branch and typically changes what appears in the sidebar.

You will often see tabs used in patterns like:

Dropdowns

Dropdowns are collapsible sidebar categories such as Getting Started, Integrations, or SDKs.

Use Dropdowns when:

What Dropdowns do:

In practice, your main sidebar will often be composed of dropdowns with groups and pages inside.

Two starting states: with Dimensions vs without Dimensions

Your project can be organized in either of these ways:

The Editor supports both. The steps for adding Views change slightly depending on which starting state you’re in.

Working with Views in the Web Editor

How layering works (Parent vs Child)

Adding Views inside existing Views (nested Views)

Once a View exists, you can add another View underneath it, as long as the one-child rule is respected.

Common examples:

How Views connect to Groups and Pages in the sidebar

After you select a branch (for example: Version: v1.0 → Tab: Guides → Dropdown: Integrations), the sidebar will show the content level for that branch:

Views determine where you are in the navigation tree. Groups/Pages determine what content exists inside that branch.

Core rules for Views

These rules explain how Views work and why the Web Editor shows (or hides) certain actions.

1) Views never contain Dimensions

Dimensions (when used) are always the outermost layer of the navigation tree.

2) The one-child rule

Every container can contain exactly one child type.

3) Common supported nesting patterns

Pattern Structure Typical use case
Pattern 1 Dropdown → Tabs → Dropdown Complex, category-first navigation with sub-sections
Pattern 2 Dropdown → Dropdown Pure hierarchical sidebar without horizontal tabs
Pattern 3 Tabs → Dropdown → Dropdown Tabbed sections each with their own nested categories

How views relate to dimensions, groups, and pages

To design navigation that scales, it helps to keep the layering clear:

Content pages on views

By default, tabs and dropdowns are purely structural: they organize content but do not have pages of their own. Clicking a tab switches the navigation branch; clicking a dropdown expands it.

When to attach a content page to a view

Add a content page in the Web Editor

  1. In the editor sidebar, click the menu icon next to the tab or dropdown name.
  2. Select Attach Content Page.
  3. Enter a path (slug) for the page, or browse unpublished pages to reuse an existing MDX file.
  4. The view now opens its content page when clicked. Write your content or add Collection components.