-
Notifications
You must be signed in to change notification settings - Fork 71
overview getting started
Active contributors: Andy Taylor, Eno Reyes
This page walks a new contributor from git clone to a previewed change.
-
Git
-
A local Mintlify CLI install for live preview (Node.js + npm). Mintlify is the rendering engine for the site; it is not vendored in this repo, so install it globally:
npm install -g mint
(Mintlify has shipped the CLI under both
mintlifyandmint. Ifmintis not available on your platform,npm install -g mintlifyworks too.) -
A Markdown editor with MDX support. VS Code with an MDX extension is a common choice.
git clone https://github.com/Factory-AI/factory.git
cd factory/docs
mint dev # or: mintlify devThe dev server serves the same content that goes to docs.factory.ai, with hot reload on file changes.
-
Decide which top-level area the page belongs to — see the section map. Pages live in
docs/<area>/<subarea>/<slug>.mdx. -
Create the
.mdxfile with frontmatter:--- title: "Page title" description: "One-sentence description used in search and previews" keywords: ['keyword', 'keyword'] ---
-
Write the body in Markdown + Mintlify components (
<Card>,<CardGroup>,<Note>,<Tip>,<Warning>,<CodeGroup>,<Tabs>,<Steps>,<AccordionGroup>). -
Add the page to
docs/docs.jsonunder the rightgroup. The path is the file path without.mdx(e.g.,cli/features/missions). -
If you renamed an existing page, add a
redirectsentry indocs.jsonfrom the old path to the new one. -
Mirror the change to
docs/jp/<same-path>.mdx, or let the JP sync workflow handle it after merge.
Find the page either by clicking the GitHub edit link from the live site or by grepping docs/:
rg "exact phrase from the page" docs/Make the change, run mint dev locally to confirm rendering, then open a PR.
Drop the asset under docs/images/ and reference it by absolute path:
<img src="/images/my-screenshot.png" alt="..." className="rounded-lg" />Prefer PNG for screenshots, GIF for short animations, and SVG for diagrams or logos. Compress large PNGs before committing.
The repo uses Factory's own droid for review. You don't need to install it to contribute, but if you want to try the same review the bot would run, install the CLI and use droid /review:
npm install -g droid
cd factory
droid
> /review- Push your branch.
- Open a PR against
main. - The
droid-review.ymlworkflow runs the review droid on the diff and leaves comments. - The
sync-jp-docs.ymlworkflow translates English changes to Japanese after merge if you didn't updatedocs/jp/yourself. - After merge,
pr-merge-slack.ymlposts to Slack and the changelog automation pushes any release notes to Discord and Linear.
See How to contribute for review expectations and conventions.