The source of resourcepack.ai/docs: the product documentation and the API reference for ResourcePack AI, an AI-assisted editor for building Minecraft resource packs.
This repository is public so that anyone who spots a mistake in the docs can fix it. A typo, a step that no longer matches the app, a code sample that doesn't run — open a pull request against the page and we'll take it.
npm install
npm run dev # http://localhost:3001That's the whole setup. There is no .env, no database and no API key: every
page is static content compiled at build time.
npx tsc --noEmit # typecheck
npm run lintBoth are quick and worth running before you open a pull request. A full
npm run build is only necessary if you've touched the MDX pipeline or the
Cloudflare config.
The build must use Turbopack. Don't add
--webpackto thebuildscript — every.mdxpage fails the webpack builder's "use client" metadata check, and the deploy inherits the same script.AGENTS.mdhas the detail.
A page is src/app/(docs)/<path>/page.mdx, routed by folder like any other
Next.js page. It needs a metadata export and an h1, and it needs an entry
in src/lib/nav.ts — that file is the single source of truth for the sidebar,
the ⌘K search index and the prev/next pager, so a page missing from it is
reachable by URL and invisible everywhere else.
The components available inside a page without importing anything — Callout,
Card, CardGroup, Steps, Step — are registered in
src/mdx-components.tsx.
The API reference under /api-reference is generated from
src/openapi.json rather than written by hand. Fixes to an endpoint's
description belong upstream in the app that emits that spec, not here; the
prose guides beside it are ordinary MDX pages.
AGENTS.md is the full working guide to this app — the content pipeline, the
things that will bite you, and how it deploys.
Issues and pull requests are welcome.
This repository is a mirror of the directory this code is developed in, so a merged pull request comes back here as a commit with a different hash. It is still your commit and your authorship.
MIT — see LICENSE.