From 5c8628380cfe845f361129ca8c49573b5340ec12 Mon Sep 17 00:00:00 2001 From: Alex Leventer Date: Sun, 22 Nov 2026 11:47:52 -0800 Subject: [PATCH 1/2] Add an AGENTS.md with preview, check and contribution steps --- .mintignore | 1 + AGENTS.md | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .mintignore create mode 100644 AGENTS.md diff --git a/.mintignore b/.mintignore new file mode 100644 index 0000000000..c317064255 --- /dev/null +++ b/.mintignore @@ -0,0 +1 @@ +AGENTS.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000000..9bb5232872 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,25 @@ +# AGENTS.md + +Source for the Fly.io docs at https://docs.fly.io, built with Mintlify. + +## Layout + +- Pages are MDX (`.mdx`) with a `title` in the frontmatter. Most also set `description` and `source_url`; copy them from a neighbouring page. +- Navigation and redirects live in `docs.json`. Add a nav entry for a new page, and a `redirects` entry when you move or delete one. +- Internal links are root-relative with no `/docs` prefix: `/postgres`, not `/docs/postgres/`. +- Shared fragments are in `snippets/`, images in `images/`. +- Don't edit generated pages. `flyctl/cmd/*.mdx` is synced from superfly/flyctl, and `api/machines/models.mdx` comes from the Machines API spec. Fix those at the source. +- Pages under `/sprites` live in superfly/sprites-docs. +- Mintlify publishes any `.md` or `.mdx` file as a page. List files that shouldn't be published, like this one, in `.mintignore`. + +## Preview and checks + +- Preview locally: `npx mint@latest dev`, then open http://localhost:3000. +- Check internal links: `npx mint@latest broken-links`. It already reports a few broken links on `main` and can't parse `api/machines/models.mdx`, so compare against `main` and don't add new ones. +- CI runs [Vale](https://vale.sh) 3.24.0 on changed files, using `.vale.ini` and the house style in `styles/Fly`. It reports but doesn't fail the PR. To run it locally: `vale `. +- When a PR touches `flyctl/cmd/` or `docs.json`, CI checks that every `flyctl/cmd` page has a nav entry and every `flyctl/cmd` nav entry has a page. + +## Pull requests + +- Fill in `.github/pull_request_template.md`: Summary of changes, Preview, Related links, Notes. +- `.github/CODEOWNERS` assigns every file to `@superfly/docs`. From 9b20caefcd009a042ecfbe2733badd58689f4607 Mon Sep 17 00:00:00 2001 From: Alex Leventer Date: Sun, 22 Nov 2026 11:48:09 -0800 Subject: [PATCH 2/2] Say how mint dev and .mintignore behave --- AGENTS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 9bb5232872..69a874060f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -10,11 +10,11 @@ Source for the Fly.io docs at https://docs.fly.io, built with Mintlify. - Shared fragments are in `snippets/`, images in `images/`. - Don't edit generated pages. `flyctl/cmd/*.mdx` is synced from superfly/flyctl, and `api/machines/models.mdx` comes from the Machines API spec. Fix those at the source. - Pages under `/sprites` live in superfly/sprites-docs. -- Mintlify publishes any `.md` or `.mdx` file as a page. List files that shouldn't be published, like this one, in `.mintignore`. +- Mintlify serves Markdown files as pages even when they aren't in the nav (`README.md` excepted). List files that shouldn't be published, like this one, in `.mintignore`. ## Preview and checks -- Preview locally: `npx mint@latest dev`, then open http://localhost:3000. +- Preview locally: `npx mint@latest dev` prints a localhost URL to open. `--port` picks the port. - Check internal links: `npx mint@latest broken-links`. It already reports a few broken links on `main` and can't parse `api/machines/models.mdx`, so compare against `main` and don't add new ones. - CI runs [Vale](https://vale.sh) 3.24.0 on changed files, using `.vale.ini` and the house style in `styles/Fly`. It reports but doesn't fail the PR. To run it locally: `vale `. - When a PR touches `flyctl/cmd/` or `docs.json`, CI checks that every `flyctl/cmd` page has a nav entry and every `flyctl/cmd` nav entry has a page.