Anydocs Documents
Core Concepts

Navigation Tree

Understand the navigation tree structure, node types, and maintenance rules.

The navigation tree defines the reader sidebar hierarchy. It is stored per language, and page references inside it must resolve to existing page IDs.

Node Types

Anydocs currently supports four navigation node types.

  • `section`: grouping node that can contain children
  • `folder`: folder node that can contain children
  • `page`: page reference that points to an existing `pageId`
  • `link`: external link that points to an outside URL

Stored Per Language

Navigation files live at `navigation/<lang>.json`. Every enabled language needs its own navigation file, and the reader loads the structure for the current language.

How To Maintain It

You can manage navigation visually in Studio or through MCP navigation tools for insert, move, delete, and whole-tree replacement operations.

  • Studio is convenient for daily drag-and-drop editing
  • MCP is useful for agents and batch updates
  • Deleting a navigation node does not automatically delete the underlying page file