This repo contains the documentation for the Runa Developer Hub aka API Docs. This includes the OpenAPI specs for published versions of the API along with content pages. We use Mintlify as a docs framework and hosting provider.
- The docs are hosted at https://developer.runa.io.
- This repository is publicly hosted at https://github.com/wegift/api-docs.
assetscontains graphics and screenshotsbincontains scriptsbest-practicescontains pages under 'Best Practices'changelogcontains pages under 'Changelogs'featurescontains the feature guidesgetting-startedcontains the getting started guidesreferencecontains the API reference pages including the OpenAPI spec for each version of the APIsnippetscontains reusable content for all pagesstylescontains configuration for the spell checkerdocs.jsoncontains the configuration for the docs, new pages need to be referenced in this fileintroduction.mdxis the root page of the guides sectionwelcome.mdxis the home page of the site
Read https://mintlify.com/guides
From content types
- Our tutorial is the 'Getting started' culminating in making your first order
- Our how-to are the feature guides
- Our reference is the 'API Reference' pages generated from the API spec
- Our explanation are the other pages in 'API Reference' and some pages under 'Best Practices'
- Do not use level 1 headings (
#) in the content, use level 2 headings (##) instead. Level 1 headings are reserved for the page title and break the table of contents.
Install JS packages with pnpm install then run
pnpm dev
A local server will then serve the docs at http://localhost:3000 Hot-reload is supported
Error: Could not load the "sharp" module using the darwin-arm64 runtime, try installing the pre-built arm64 package like so:
pnpm add @img/sharp-darwin-arm64 --forceand then run pnpm dev.
See Mintlify docs for more information. The docs.json file is the configuration file. Pages are written in MDX, a markdown variant with JSX support.
- Make your changes on a branch
- Open a PR and verify the changes from the preview
- Get some review
- Merge to main and the changes are automatically deployed to production