This repo consists of the following npm modules:
- @mia-platform/api-explorer: the React components that make up the explorer;
- @mia-platform/markdown: the markdown parser;
- @mia-platform/syntax-highlighter: the syntax highlighter in use on ReadMe;
- @mia-platform/oas-extensions: an exported object of Readme.io's OAS extensions;
- @mia-platform/variable.
git clone [email protected]:mia-platform/api-explorer.git
cd api-explorer
npm install
npm run boot # Installs all packages using lerna
npm test
To spin up an example server:
npm start
npx lerna version
and select the desired version tag (major/minor/patch/etc...)
npm run build
npm run deploy
npx lerna publish
if publish fails with error Current HEAD is already released
it's generally due to the fact that a version has already been tagged and there's no new change; in order to make sure it's published use
npx lerna publish from-git
so that lerna will not try to create a new version tag and publish the current version from the tag in the git repository.
MIT