mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
redesign-index-page
The introduction hero now leads with the full "set up Mintlify with your agent" prompt from the quickstart instead of `npm i -g mint`. It lands collapsed to four lines behind a fade and expands in place, with Copy prompt and Open in Cursor reachable in both states — reading the prompt is optional, running it is the point. The prompt text now also exists as a string in snippets/setup-agent-prompt-text.mdx, because the built-in <Prompt> component serializes its children's source rather than evaluating them and so cannot be handed a variable. Both copies must be edited together; .github/workflows/check-prompt-sync.yml fails the build if they drift. The quickstart's <Prompt> card is unchanged, byte for byte.
Mintlify Documentation
Install the Mint CLI to preview the documentation changes locally. To install, use the following command
npm i -g mint
Run the following command at the root of your documentation (where docs.json is)
mint dev
Languages
MDX
99%
JavaScript
0.8%
CSS
0.2%