{
  "type": "module",
  "source": "doc/api/generators-jsx-ast.md",
  "modules": [
    {
      "textRaw": "`jsx-ast` Generator",
      "name": "`jsx-ast`_generator",
      "type": "module",
      "desc": "<p>The <code>jsx-ast</code> generator converts MDAST (Markdown Abstract Syntax Tree) to JSX AST, transforming API documentation metadata into React-compatible JSX representations.</p>",
      "modules": [
        {
          "textRaw": "Configuring",
          "name": "configuring",
          "type": "module",
          "desc": "<ul>\n<li><code>ref</code> <code class=\"type\"><a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#string_type\" class=\"type-link\">string</a></code> Git reference/branch for linking to source files.\n<strong>Default:</strong> <code>'main'</code>.</li>\n<li><code>index</code> <code class=\"type\"><a href=\"https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array\" class=\"type-link\">Array</a></code> Array of <code>{ section, api }</code> objects defining the\ndocumentation structure.</li>\n<li><code>generateNotFoundPage</code> <code class=\"type\"><a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#boolean_type\" class=\"type-link\">boolean</a></code> When <code>true</code>, creates a synthetic JSX AST\nentry for <code>404.html</code>. <strong>Default:</strong> <code>true</code>.</li>\n<li><code>showReadingTime</code> <code class=\"type\"><a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#boolean_type\" class=\"type-link\">boolean</a></code> When <code>true</code>, computes an estimated reading time\nfor each page and displays it in the MetaBar. <strong>Default:</strong> <code>false</code>.</li>\n</ul>",
          "displayName": "Configuring"
        },
        {
          "textRaw": "Output",
          "name": "output",
          "type": "module",
          "desc": "<p>Each page is emitted as <code>{ data, headings, readingTime, content }</code>: the page's\nhead entry, its table of contents, the optional reading time, and the processed\ncontent serialized to JSX code as one fragment. The page layout is not part of\nthe content — the <code>html</code> generator wraps each page in <code>&#x3C;Layout></code>, and assembles\npages made of other pages' content, such as Node.js's <code>all.html</code>, rather than\nbuilding them a second time here.</p>\n<p>Pages are emitted as they are built, in the order their entries arrived, the\nsynthetic pages last. Once every page has arrived, it also emits\n<code>{ manifest }</code>, every page's head in that same order, so that the <code>html</code>\ngenerator can build what needs the whole site while pages are still being\nbuilt.</p>\n<p>To list the pages as the site does, leave out the <code>{ manifest }</code> item and sort\nthe pages by their head with <code>headingSortFn</code>, from\n<code>@doc-kit/generator-react/jsx-ast/utils/getSortedHeadNodes</code>, as\n<code>pages.toSorted((a, b) => headingSortFn(a.data, b.data))</code>, keeping the\nsynthetic pages (<code>data.synthetic</code>) last.</p>",
          "displayName": "Output"
        },
        {
          "textRaw": "Index page",
          "name": "index_page",
          "type": "module",
          "desc": "<p><code>index.html</code> is generated when an <code>index</code> document is part of the input, and\nis rendered from that document like any other page. An MDX <code>index</code> document\ncan render the stability overview of every module by using the built-in\n<code>&#x3C;DocumentationIndex /></code> component (see the <code>html</code> generator's README).</p>",
          "displayName": "Index page"
        }
      ],
      "displayName": "`jsx-ast` Generator"
    }
  ]
}