Markdown editor for API docs
Runs in your browser. Nothing is uploaded.
Write API documentation visually or in source, with callouts, tabs and steps, and preview it as a docs site shows it.
Images you paste stay in this browser: the Markdown names them images/<name>. The preview renders the page as a published APIGit docs site does.
How it works
Write in the visual view, where the page looks as readers will see it, or in the source. The preview beside the
editor renders the text with the published viewer's renderer, so a callout, a set of tabs or numbered steps look as
they will on an APIGit docs site. Load a file by upload or URL, or start from the sample, then copy or download the
result as .md.
The sample is a getting-started guide for a pet store API. It opens with a callout, written as a directive in the source:
:::tip[Use the sandbox first]
Every account has a sandbox at `https://sandbox.petstore.example`. Requests there never touch real data.
:::
and walks through three steps:
<Steps>
<Step title="Create an API key">
Open **Settings → API keys** and select **New key**. Copy the key: it is shown once.
</Step>
<Step title="Send the key with each request">
Put the key in the `Authorization` header as a bearer token.
</Step>
<Step title="List the pets">
Call `GET /pets`. The answer is a page of pets, newest first.
</Step>
</Steps>
The visual view shows both as boxes you type into; the preview shows them as the published page will.
What it does not do
- It does not upload pasted images. The preview shows them from memory; the Markdown names each
images/<name>. - It does not commit or publish. Download the
.mdfile, or keep the guide in an APIGit repository. - It does not render your OpenAPI file inside the guide; the docs site shows specs and guides side by side.
- It does not show embedded frames or icons. An iframe (a YouTube video, a CodeSandbox) and an icon component show empty in the preview here; a published APIGit docs site renders them.
- A page the visual view cannot open is edited in the source view.
- Nothing is sent anywhere, and nothing is kept outside this browser.
This tool and APIGit
| This tool | With APIGit |
|---|---|
| One page, in your browser | Guides in .md or .mdx next to the specs of a repository, with Visual, Code, Diff and Preview tabs |
| Pasted images in memory | A pasted or dropped image committed to assets/images/ on the branch you are on |
| Download a file | Commit, review in a pull request, publish a version from any commit |
| A preview of one page | A docs site with your navigation (apigit.json), theme and domain, and the API reference beside the guides |
| No local preview of a folder | apigit preview renders a whole repository on your machine and reloads on save |