{
  "type": "module",
  "source": "doc/api/getting-started.md",
  "modules": [
    {
      "textRaw": "Getting started",
      "name": "getting_started",
      "type": "module",
      "desc": "<p>First, install doc-kit and a generator, like so:</p>\n<pre><code class=\"language-bash\">npm install --save-dev @doc-kit/cli @doc-kit/generator-react\n</code></pre>\n<p>Then, create your configuration file set up for your project:</p>\n<pre><code class=\"language-mjs\">/** @type {import('@doc-kit/core/utils/configuration/types').Configuration} */\nexport default {\n  target: ['html'],\n\n  global: {\n    input: ['docs/**/*.md'],\n    output: 'out',\n  },\n};\n</code></pre>\n<p><code>doc-kit generate</code> reads that configuration; every option can also be passed as\na CLI flag. See the <a href=\"./configuration.html\">configuration reference</a> for\neverything the file accepts.</p>",
      "modules": [
        {
          "textRaw": "Build and preview it",
          "name": "build_and_preview_it",
          "type": "module",
          "desc": "<p>With at least one Markdown file under <code>docs/</code>, build the site:</p>\n<pre><code class=\"language-bash\">npx @doc-kit/cli generate\n</code></pre>\n<p>The pages land in <code>out/</code>. They use import maps and client-side hydration, so\nserve them over HTTP rather than opening the files from disk; any static server\nworks:</p>\n<pre><code class=\"language-bash\">npx @doc-kit/cli generate -t html -t orama-db -i \"docs/*.md\" -o out\n</code></pre>",
          "displayName": "Build and preview it"
        },
        {
          "textRaw": "Preview it locally",
          "name": "preview_it_locally",
          "type": "module",
          "desc": "<p>The <code>html</code> output uses import maps and client-side hydration, so it must be\nserved over HTTP — opening the files directly with <code>file://</code> will not work. Any\nstatic server will do the trick; for example:</p>\n<pre><code class=\"language-bash\">npx serve out -p 3000\n</code></pre>\n<p>Then open the printed URL (usually <a href=\"http://localhost:3000\">http://localhost:3000</a>). The\n<code>legacy-html-all</code> output from earlier has no such requirement — <code>out/all.html</code>\nopens straight from disk.</p>",
          "displayName": "Preview it locally"
        },
        {
          "textRaw": "Customize the `html` generator output",
          "name": "customize_the_`html`_generator_output",
          "type": "module",
          "desc": "<p>The power of the <code>html</code> generator comes from its customization hooks. Let's walk\nthrough a couple quick changes.</p>\n<p>Create a <code>doc-kit.config.mjs</code> file at the root of the project.</p>\n<pre><code class=\"language-mjs\">import { join } from 'node:path';\n\n/** @type {import('@doc-kit/core/src/utils/configuration/types').Configuration} */\nexport default {\n  global: {\n    project: 'My Project', // Project name used in titles, the logo, and templates\n  },\n\n  html: {\n    head: {\n      html: [\n        // re-write the brand color for effect\n        `&#x3C;style>\n          :root {\n            --color-brand-100: #f7f1fb;\n            --color-brand-200: #ead9fb;\n            --color-brand-300: #dbbdf9;\n            --color-brand-400: #c79bf2;\n            --color-brand-600: #9756d6;\n            --color-brand-700: #7d3cbe;\n            --color-brand-800: #642b9e;\n            --color-brand-900: #361b52;\n          }\n        &#x3C;/style>`,\n      ],\n    },\n    // use a custom logo component instead of the plain project name\n    // our logo.jsx file like this, just for the demo\n    // export default Logo = () =>\n    //   &#x3C;svg height=\"30\" width=\"30\" viewBox=\"0 0 10 10\">&#x3C;circle cx=\"5\" cy=\"5\" r=\"5\" fill=\"var(--color-brand-400)\"/>&#x3C;/svg>;\n    imports: {\n      '#theme/Logo': join(import.meta.dirname, './logo.jsx'),\n      // You can also change things such as `#theme/Layout`,\n      // and more!\n    },\n  },\n};\n</code></pre>\n<p>Open the printed URL (usually <a href=\"http://localhost:3000\">http://localhost:3000</a>) and your documentation is\non screen.</p>",
          "displayName": "Customize the `html` generator output"
        },
        {
          "textRaw": "Next steps",
          "name": "next_steps",
          "type": "module",
          "desc": "<ul>\n<li><a href=\"./writing-docs.html\">Writing documentation</a> — the Markdown conventions that\nmake <code>doc-kit</code> more than a static-site generator.</li>\n<li><a href=\"./customization.html\">Customizing the site</a> — your name, logo, navigation,\nand components instead of the defaults.</li>\n<li><a href=\"./publishing.html\">Publishing your docs</a> — production builds, base URLs, and\nhosting.</li>\n</ul>",
          "displayName": "Next steps"
        }
      ],
      "displayName": "Getting started"
    }
  ]
}