Tangly v0.2 ships richer code blocks, page chrome, and more — see what's new

Quickstart

Scaffold a Tangly project, edit a page, and ship a build.

~ 1 min read

Quickstart

Five minutes from empty directory to deployed static site.

  1. Install

    bash
    bun add -D tangly

    See Installation for pnpm/npm/yarn.

  2. Scaffold

    bash
    bun x tangly init my-docs
    cd my-docs

    init prompts for a project name and template (basic, api, or starter-from-mintlify), then drops a docs.json plus a few starter pages.

  3. Run dev

    bash
    bun x tangly dev

    Opens at http://localhost:4321. Edits to docs.json or any *.mdx hot-reload in under 250ms. Drafts (draft: true frontmatter) are visible in dev and hidden in build.

  4. Add a page

    Create guides/concepts.mdx:

    md
    ---
    title: Concepts
    description: Core ideas behind the product.
    icon: book
    ---
    
    # Concepts
    
    Body content. Markdown, MDX, components — all of it works.

    Reference it in docs.json:

    json
    {
      "navigation": {
        "tabs": [
          {
            "tab": "Guides",
            "groups": [
              {
                "group": "Get Started",
                "pages": ["introduction", "guides/concepts"]
              }
            ]
          }
        ]
      }
    }

    The browser refreshes without a server restart.

  5. Build

    bash
    bun x tangly build

    Static output lands in dist/. The adapter is auto-detected from your repo:

    File presentAdapter
    vercel.jsonvercel
    wrangler.toml / wrangler.jsonccloudflare
    Dockerfilenode
    (none)static

    Override with --adapter <name>. See Deploying for the recipes.

  6. Preview the build

    bash
    bun x tangly preview

    Serves dist/ locally so you can sanity-check the production output before pushing.

Already on Mintlify?

If you have an existing mint.json project, run:

bash
bun x tangly migrate

This rewrites mint.jsondocs.json and bumps tangly to the latest. Existing MDX files render unchanged. See Migrate from Mintlify.

What’s next

Last updated Edit this page
↑↓ navigate open esc close