Slash forward icon
  • Documentation
  • Plugins
  • API Reference
  • Examples
  • GitHub
    • comarkContent
    • content.get
    • content.list
    • content.navigation
    • content.stat
    • content.getSource
    • content.handler
    • content.watch
    • content.update
    • content.remove
    • content.cache
    • content.manifest
    • content.hooks
    • content.status
    • content.init
    • content.loadSnapshot
    • content.addParser
    • content.addListingFields
    • content.addServeHandler
    • createContentClient
    • content.get
    • content.list
    • content.navigation
    • defineContentPlugin
    • defineContentClientPlugin
    • Content
    • Client
    • Plugins
    • Typegen
    • File parsed
  • Cheat Sheet
  • CLI
Reference

content.navigation()

Fetches the navigation tree from the handler's navigation route.

content.navigation()

Fetches the navigation tree from the handler's navigation route.

Parameters: none.

Returns: Promise<NavigationItem[]>

usage.ts
const nav = await content.navigation()

Usage

usage.ts
const nav = await content.navigation()

content.list

Fetches lightweight document entries from the handler's list route.

defineContentPlugin

Author a plugin that adds typed methods to the Content instance.

On this page

  • content.navigation()
  • Usage
  • Edit this page on GitHub
  • Star on GitHub
  • Comark docs
© 2026 Vercel, Inc.