{
  "type": "module",
  "source": "doc/api/generators.md",
  "modules": [
    {
      "textRaw": "Generators",
      "name": "generators",
      "type": "module",
      "desc": "<p>A generator is an output format.</p>\n<pre><code class=\"language-bash\">npx @doc-kit/cli generate -t html -t orama-db -t sitemap -i \"docs/**/*.md\" -o out\n</code></pre>",
      "modules": [
        {
          "textRaw": "Built-in generators",
          "name": "built-in_generators",
          "type": "module",
          "modules": [
            {
              "textRaw": "Web (`@doc-kit/generator-react`)",
              "name": "web_(`@doc-kit/generator-react`)",
              "type": "module",
              "desc": "<table>\n<thead>\n<tr>\n<th>Target</th>\n<th>Output</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"./generators/html.html\"><code>html</code></a></td>\n<td>The modern documentation site: server-rendered, hydrated, themeable.</td>\n</tr>\n<tr>\n<td><a href=\"./generators/orama-db.html\"><code>orama-db</code></a></td>\n<td>The search index behind the <code>html</code> site's search box.</td>\n</tr>\n<tr>\n<td><a href=\"./generators/llms-txt.html\"><code>llms-txt</code></a></td>\n<td>An <a href=\"https://llmstxt.org/\"><code>llms.txt</code></a> index for language models.</td>\n</tr>\n<tr>\n<td><a href=\"./generators/llms-txt-full.html\"><code>llms-txt-full</code></a></td>\n<td>Every page's Markdown in one <code>llms-full.txt</code>, for language models.</td>\n</tr>\n<tr>\n<td><a href=\"./generators/sitemap.html\"><code>sitemap</code></a></td>\n<td>A <code>sitemap.xml</code> for search engines.</td>\n</tr>\n<tr>\n<td><a href=\"./generators/section-pages.html\"><code>section-pages</code></a></td>\n<td>The <code>html</code> site and sitemap, plus one page per section of a module.</td>\n</tr>\n</tbody>\n</table>",
              "displayName": "Web (`@doc-kit/generator-react`)"
            },
            {
              "textRaw": "JSON (`@doc-kit/core`)",
              "name": "json_(`@doc-kit/core`)",
              "type": "module",
              "desc": "<table>\n<thead>\n<tr>\n<th>Target</th>\n<th>Output</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"./generators/json.html\"><code>json</code></a></td>\n<td>One schema-described JSON document per source file.</td>\n</tr>\n<tr>\n<td><a href=\"./generators/json-all.html\"><code>json-all</code></a></td>\n<td>Those documents bundled into a single <code>all.json</code>.</td>\n</tr>\n<tr>\n<td><a href=\"./generators/json-simple.html\"><code>json-simple</code></a></td>\n<td>A dump of the parsed metadata entries, for debugging the pipeline.</td>\n</tr>\n</tbody>\n</table>",
              "displayName": "JSON (`@doc-kit/core`)"
            },
            {
              "textRaw": "Legacy (`@node-core/doc-kit-legacy`)",
              "name": "legacy_(`@node-core/doc-kit-legacy`)",
              "type": "module",
              "desc": "<p>1:1 matches for Node.js's original documentation tooling, for consumers of\nthe classic layouts.</p>\n<table>\n<thead>\n<tr>\n<th>Target</th>\n<th>Output</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"./generators/legacy-html.html\"><code>legacy-html</code></a></td>\n<td>One classic HTML page per document.</td>\n</tr>\n<tr>\n<td><a href=\"./generators/legacy-html-all.html\"><code>legacy-html-all</code></a></td>\n<td>The single-page <code>all.html</code> bundle.</td>\n</tr>\n<tr>\n<td><a href=\"./generators/legacy-json.html\"><code>legacy-json</code></a></td>\n<td>The classic per-document JSON.</td>\n</tr>\n<tr>\n<td><a href=\"./generators/legacy-json-all.html\"><code>legacy-json-all</code></a></td>\n<td>The single-file JSON bundle.</td>\n</tr>\n</tbody>\n</table>",
              "displayName": "Legacy (`@node-core/doc-kit-legacy`)"
            },
            {
              "textRaw": "Node.js-specific (`@node-core/doc-kit`)",
              "name": "node.js-specific_(`@node-core/doc-kit`)",
              "type": "module",
              "desc": "<p>Outputs consumed by the Node.js project's own build and release processes.</p>\n<table>\n<thead>\n<tr>\n<th>Target</th>\n<th>Output</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"./generators/man-page.html\"><code>man-page</code></a></td>\n<td>The <code>node.1</code> manual page.</td>\n</tr>\n<tr>\n<td><a href=\"./generators/api-links.html\"><code>api-links</code></a></td>\n<td>A map of API symbols to their source locations.</td>\n</tr>\n<tr>\n<td><a href=\"./generators/addon-verify.html\"><code>addon-verify</code></a></td>\n<td>Extracted addon code samples, arranged for testing.</td>\n</tr>\n</tbody>\n</table>",
              "displayName": "Node.js-specific (`@node-core/doc-kit`)"
            }
          ],
          "displayName": "Built-in generators"
        },
        {
          "textRaw": "Pipeline stages",
          "name": "pipeline_stages",
          "type": "module",
          "desc": "<p>The targets above are built on a few shared stages, each of which is itself a\ngenerator.</p>\n<table>\n<thead>\n<tr>\n<th>Stage</th>\n<th>Produces</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"./generators/ast.html\"><code>ast</code></a></td>\n<td>Markdown parsed into MDAST, across worker threads.</td>\n</tr>\n<tr>\n<td><a href=\"./generators/ast-js.html\"><code>ast-js</code></a></td>\n<td>JavaScript sources parsed into an AST.</td>\n</tr>\n<tr>\n<td><a href=\"./generators/metadata.html\"><code>metadata</code></a></td>\n<td>The flattened API entries every output is built from.</td>\n</tr>\n<tr>\n<td><a href=\"./generators/jsx-ast.html\"><code>jsx-ast</code></a></td>\n<td>Those entries as JSX, ready for the web generators.</td>\n</tr>\n</tbody>\n</table>",
          "displayName": "Pipeline stages"
        },
        {
          "textRaw": "Custom generators",
          "name": "custom_generators",
          "type": "module",
          "desc": "<p>A target can also be an import specifier — a package export or a local file\nwhose default export is a generator:</p>\n<pre><code class=\"language-bash\">npx @doc-kit/cli generate -t @my-scope/my-generator -t ./generators/rss.mjs ...\n</code></pre>\n<p>To build one, see <a href=\"./creating-generators.html\">Creating generators</a>.</p>",
          "displayName": "Custom generators"
        }
      ],
      "displayName": "Generators"
    }
  ]
}