Skip to content

Commit 4b5b838

Browse files
Readme (#1)
* Docs: refresh README, remove staging URLs, add CI Add Dashboard API key link and accuracy policy, point API reference to canonical OpenAPI spec, and add basic CI (docs.json validation + link check + staging guard). * Email now renders cleanly and stays clickable: [[email protected]](mailto:[email protected]) * Fixed the CI failure by removing the unsupported --exclude-mail flag from .github/workflows/ci.yml. lychee v0.21.0 doesn’t recognize it (it only has --include-mail), so this should unblock the link check without changing anything else.
1 parent 6482aed commit 4b5b838

File tree

7 files changed

+103
-49
lines changed

7 files changed

+103
-49
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
validate:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Validate docs.json is valid JSON
17+
run: jq . docs.json > /dev/null
18+
19+
- name: Disallow staging URLs in docs
20+
run: |
21+
if rg -n "staging\\." .; then
22+
echo "Found staging URLs. Use production URLs or document/allow staging explicitly."
23+
exit 1
24+
fi
25+
26+
- name: Link check
27+
uses: lycheeverse/lychee-action@v2
28+
with:
29+
args: >-
30+
--verbose
31+
--no-progress
32+
--accept 200,201,202,203,204,206,301,302,303,307,308,429
33+
--max-concurrency 8
34+
--timeout 20
35+
README.md **/*.mdx

README.md

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,47 @@
1-
# Mintlify Starter Kit
1+
# Supermodel API Documentation
22

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).
44

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
66

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.
128

13-
**[Follow the full quickstart guide](https://starter.mintlify.com/quickstart)**
9+
## Quickstart
1410

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)
1615

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
1817

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).
2220

23-
Run the following command at the root of your documentation, where your `docs.json` is located:
21+
## Accuracy policy
2422

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.
2826

29-
View your local preview at `http://localhost:3000`.
27+
## Support
3028

31-
## Publishing changes
29+
- **Email**: [[email protected]](mailto:[email protected])
3230

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)
3432

35-
## Need help?
33+
These instructions are only for previewing changes to `supermodel-api-docs` locally.
3634

37-
### Troubleshooting
35+
Install the `mint` CLI:
3836

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+
```
4146

42-
### Resources
43-
- [Mintlify documentation](https://mintlify.com/docs)
47+
Preview at `http://localhost:3000`.

authentication.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ description: 'How to authenticate your API requests'
44
icon: 'key'
55
---
66

7-
The Supermodel API uses API keys to authenticate requests. You can view and manage your API keys in the [Supermodel Dashboard](https://staging.dashboard.supermodeltools.com/).
7+
The Supermodel API uses API keys to authenticate requests. You can view and manage your API keys in the [Supermodel Dashboard](https://dashboard.supermodeltools.com/).
88

99
<Info>
10-
**Using the API Playground**: The interactive playground in this documentation connects to our staging environment. Generate an API key from the [Staging Dashboard](https://staging.dashboard.supermodeltools.com/) to test endpoints directly from these docs.
10+
**Using the API Playground**: The interactive playground in this documentation connects to our production API. Generate an API key from the [Supermodel Dashboard](https://dashboard.supermodeltools.com/) to test endpoints directly from these docs.
1111
</Info>
1212

1313
## Authentication Header
@@ -37,7 +37,7 @@ Here's how to include the headers in a cURL request:
3737

3838
```bash
3939
curl --request POST \
40-
--url https://staging.api.supermodeltools.com/v1/graphs/dependency \
40+
--url https://api.supermodeltools.com/v1/graphs/dependency \
4141
--header "Idempotency-Key: $(uuidgen)" \
4242
--header 'X-Api-Key: <your-api-key>' \
4343
--header 'Content-Type: multipart/form-data' \

docs.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"$schema": "https://mintlify.com/docs.json",
32
"theme": "mint",
43
"name": "Supermodel API",
54
"colors": {
@@ -38,7 +37,7 @@
3837
},
3938
{
4039
"tab": "API Reference",
41-
"openapi": "https://api.supermodeltools.com/supermodel-public.yaml"
40+
"openapi": "https://raw.githubusercontent.com/supermodeltools/openapi-spec/main/openapi.yaml"
4241
}
4342
]
4443
},
@@ -56,14 +55,13 @@
5655
"primary": {
5756
"type": "button",
5857
"label": "Dashboard",
59-
"href": "https://supermodeltools.com"
58+
"href": "https://dashboard.supermodeltools.com/"
6059
}
6160
},
6261
"footer": {
6362
"socials": {
64-
"x": "https://x.com/mintlify",
65-
"github": "https://github.com/mintlify",
66-
"linkedin": "https://linkedin.com/company/mintlify"
63+
"x": "https://x.com/supermodeltools",
64+
"github": "https://github.com/supermodeltools"
6765
}
6866
}
6967
}

index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: 'Welcome to the Supermodel API documentation'
88
Supermodel provides a unified graph representation of your codebase, enabling powerful analysis and visualization tools.
99

1010
<Info>
11-
**Try the API Playground**: Each endpoint in our API Reference includes an interactive playground. To use it, you'll need an API key from the [Supermodel Dashboard](https://staging.dashboard.supermodeltools.com/).
11+
**Try the API Playground**: Each endpoint in our API Reference includes an interactive playground. To use it, you'll need an API key from the [Supermodel Dashboard](https://dashboard.supermodeltools.com/).
1212
</Info>
1313

1414
## API Reference

overrides.css

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,33 @@ html.dark, body.dark, .dark {
99
--tw-ring-offset-color: #000000 !important;
1010
}
1111

12+
.dark .bg-background-dark {
13+
background-color: #000000 !important;
14+
}
15+
16+
.dark .bg-background-light {
17+
background-color: #000000 !important;
18+
}
19+
20+
.dark main {
21+
background-color: #000000 !important;
22+
}
23+
24+
.dark nav, .dark aside {
25+
background-color: #000000 !important;
26+
border-right-color: #1F1F1F !important;
27+
}
28+
:root {
29+
--bg-dark: #000000 !important;
30+
--bg-default: #000000 !important;
31+
--bg-background-dark: #000000 !important;
32+
}
33+
34+
html.dark, body.dark, .dark {
35+
background-color: #000000 !important;
36+
--tw-ring-offset-color: #000000 !important;
37+
}
38+
1239
/* Force black on all major layout containers */
1340
.dark .bg-background-dark {
1441
background-color: #000000 !important;
@@ -106,13 +133,3 @@ html.dark, body.dark, .dark {
106133
background-color: #000000 !important;
107134
}
108135

109-
/* NUKE UNWANTED GLOBAL LINKS */
110-
a[href^="https://mintlify.com/docs"],
111-
a[href^="https://mintlify.com/blog"] {
112-
display: none !important;
113-
}
114-
115-
li:has(a[href^="https://mintlify.com/docs"]),
116-
li:has(a[href^="https://mintlify.com/blog"]) {
117-
display: none !important;
118-
}

quickstart.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This guide will walk you through generating a **Dependency Graph** from a local
88

99
## Prerequisites
1010

11-
1. **API Key**: You'll need a Supermodel API key. Get one from the [Dashboard](https://staging.dashboard.supermodeltools.com/).
11+
1. **API Key**: You'll need a Supermodel API key. Get one from the [Dashboard](https://dashboard.supermodeltools.com/).
1212
2. **Codebase**: A local folder containing the code you want to analyze.
1313
3. **Tools**: `zip` and `curl` installed on your machine.
1414

@@ -27,7 +27,7 @@ Use the `dependency` endpoint to generate a graph of file-level dependencies. Re
2727

2828
```bash
2929
curl --request POST \
30-
--url https://staging.api.supermodeltools.com/v1/graphs/dependency \
30+
--url https://api.supermodeltools.com/v1/graphs/dependency \
3131
--header "Idempotency-Key: $(uuidgen)" \
3232
--header 'X-Api-Key: <your-api-key>' \
3333
--header 'Content-Type: multipart/form-data' \

0 commit comments

Comments
 (0)