Skip to content

Code Tree

Switch between source files using filename-labeled tabs.

On this page

Usage

code-tree provides a source-file selector using filenames from code fences. Unlike file-tree, it displays each file's source.

md
export default defineAppConfig({
  indocio: {
    docs: {
      content: { width: '42rem' },
      sidebar: { enabled: true, width: 240, collapsible: false },
      toc: { enabled: true, position: 'content', depth: 3 },
      breadcrumbs: true,
      footer: true,
      navigation: true,
      search: true,
      actions: { copyLink: true },
    },
    spaces: { switcher: 'dropdown' },
  },
})

The selector supports keyboard navigation through IPEX Tabs. Filenames are labels, so duplicate filenames still receive independent internal values.

Indocio · Built with Nuxt Content, IPEX, and Akaza UI.