Understanding Git conceptually is one thing. Knowing what to do when you sit down to update your docs is another. This lesson walks through the complete workflow from start to finish, using both the web editor and the CLI.Documentation Index
Fetch the complete documentation index at: https://learn.mintlify.com/llms.txt
Use this file to discover all available pages before exploring further.
Two ways to work
Mintlify gives you two ways to edit your documentation, and they both use Git under the hood. The web editor abstracts Git almost entirely. You open a page, make changes, and publish. Mintlify handles branching and committing behind the scenes. No terminal required and you can edit right in your browser. Local editing with the CLI lets you use whichever text editor you prefer, generate a local preview via the CLI commandmint dev, and use Git however you like.
Most documentation teams end up using both.
The web editor workflow
Open a page in the editor
Open the editor on dashboard.mintlify.com and select the page you want to edit.
Make your changes
Edit the page content using the visual editor or switch to Markdown mode for direct MDX editing. Changes are saved automatically as you work.
Publish
Click Publish. Mintlify creates a branch, commits your changes, and opens a pull request in one step. You’ll see a preview link in the PR so you can verify the changes before merging.
The local CLI workflow
Start the local preview
Run Mintlify’s development server to see your changes in real time:Your docs site is now running locally at
http://localhost:3000. Every change you save appears immediately.Commit your changes
When you’re ready to save a snapshot:Commit as often as makes sense. Each commit should represent a coherent unit of work.
Push and open a pull request
Push your branch to GitHub:GitHub shows a prompt to open a pull request. Click it, add a description of what you changed and why, and submit.
What Mintlify does when you open a PR
When you open a pull request against your documentation repository, Mintlify’s GitHub app does two things:- Runs checks: Mintlify validates your changes (checking for broken links, missing metadata, and other issues) and reports the results directly in the PR.
- Generates a preview: A full preview of your documentation site with the PR’s changes applied deploys and the app links it in the PR. Anyone with the link can review the exact published result before a single change goes live.