Back to Mdx

Guides

docs/guides/index.mdx

3.1.1824 B
Original Source

{ /**

  • @import {Item} from '../_component/sort.js' */

/**

  • @typedef Props
  • @property {Item} navigationTree */ }

import assert from 'node:assert/strict' import {NavigationGroup} from '../_component/nav.jsx'

export const info = { author: [{name: 'MDX Contributors'}], modified: new Date('2024-07-04'), published: new Date('2021-11-01') } export const navSortSelf = 2

Guides

These guides explain how to accomplish several common use cases and patterns around MDX.

{ (function () { const navigationTree = props.navigationTree const category = navigationTree.children.find(function (item) { return item.name === '/guides/' }) assert(category)

return (
  <nav>
    <NavigationGroup items={category.children} includeDescription />
  </nav>
)

})() }