|
1 | | -# Mintlify Starter Kit |
| 1 | +# Supermodel API Documentation |
2 | 2 |
|
3 | | -Use the starter kit to get your docs deployed and ready to customize. |
| 3 | +Source for the Supermodel API docs site: [docs.supermodeltools.com](https://docs.supermodeltools.com). |
4 | 4 |
|
5 | | -Click the green **Use this template** button at the top of this repo to copy the Mintlify starter kit. The starter kit contains examples with |
| 5 | +## Get an API key |
6 | 6 |
|
7 | | -- Guide pages |
8 | | -- Navigation |
9 | | -- Customizations |
10 | | -- API reference pages |
11 | | -- Use of popular components |
| 7 | +Get your API key from the [Supermodel Dashboard](https://dashboard.supermodeltools.com/) and send it in the `X-Api-Key` header. |
12 | 8 |
|
13 | | -**[Follow the full quickstart guide](https://starter.mintlify.com/quickstart)** |
| 9 | +## Quickstart |
14 | 10 |
|
15 | | -## Development |
| 11 | +- **Docs**: [docs.supermodeltools.com](https://docs.supermodeltools.com) |
| 12 | +- **OpenAPI spec (canonical)**: [`supermodeltools/openapi-spec`](https://github.com/supermodeltools/openapi-spec) (`openapi.yaml`) |
| 13 | +- **TypeScript SDK**: [`supermodeltools/typescript-sdk`](https://github.com/supermodeltools/typescript-sdk) |
| 14 | +- **MCP Server**: [`supermodeltools/mcp`](https://github.com/supermodeltools/mcp) |
16 | 15 |
|
17 | | -Install the [Mintlify CLI](https://www.npmjs.com/package/mint) to preview your documentation changes locally. To install, use the following command: |
| 16 | +## Updating docs and API reference |
18 | 17 |
|
19 | | -``` |
20 | | -npm i -g mint |
21 | | -``` |
| 18 | +- **Pages**: edit the MDX files in the repo root (`index.mdx`, `quickstart.mdx`, `authentication.mdx`, `concepts.mdx`). |
| 19 | +- **API Reference**: this site is driven by the public OpenAPI spec in [`supermodeltools/openapi-spec`](https://github.com/supermodeltools/openapi-spec). |
22 | 20 |
|
23 | | -Run the following command at the root of your documentation, where your `docs.json` is located: |
| 21 | +## Accuracy policy |
24 | 22 |
|
25 | | -``` |
26 | | -mint dev |
27 | | -``` |
| 23 | +- **Production-first**: examples should target `https://api.supermodeltools.com` and the Dashboard at [dashboard.supermodeltools.com](https://dashboard.supermodeltools.com/). |
| 24 | +- **Spec mismatch?** If the API behavior differs from the spec, file an issue on [`supermodeltools/openapi-spec`](https://github.com/supermodeltools/openapi-spec). |
| 25 | +- **Docs issue?** File an issue on this repo. |
28 | 26 |
|
29 | | -View your local preview at `http://localhost:3000`. |
| 27 | +## Support |
30 | 28 |
|
31 | | -## Publishing changes |
| 29 | + |
32 | 30 |
|
33 | | -Install our GitHub app from your [dashboard](https://dashboard.mintlify.com/settings/organization/github-app) to propagate changes from your repo to your deployment. Changes are deployed to production automatically after pushing to the default branch. |
| 31 | +## Local development (docs repo only) |
34 | 32 |
|
35 | | -## Need help? |
| 33 | +These instructions are only for previewing changes to `supermodel-api-docs` locally. |
36 | 34 |
|
37 | | -### Troubleshooting |
| 35 | +Install the `mint` CLI: |
38 | 36 |
|
39 | | -- If your dev environment isn't running: Run `mint update` to ensure you have the most recent version of the CLI. |
40 | | -- If a page loads as a 404: Make sure you are running in a folder with a valid `docs.json`. |
| 37 | +```bash |
| 38 | +npm i -g mint |
| 39 | +``` |
| 40 | + |
| 41 | +Run the dev server from this repo root (where `docs.json` lives): |
| 42 | + |
| 43 | +```bash |
| 44 | +mint dev |
| 45 | +``` |
41 | 46 |
|
42 | | -### Resources |
43 | | -- [Mintlify documentation](https://mintlify.com/docs) |
| 47 | +Preview at `http://localhost:3000`. |
0 commit comments