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
    npm i -g tangly

    Or bun add -D tangly to pin into a single project. See Installation for the full matrix.

  2. Scaffold

    bash
    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
    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
    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
    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
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

Type to search…

↑↓ navigate open esc close