[build] Turned it into a npm package. Run `npm start` to make HTML, `npm test` to lint.
parent
7e05a9651c
commit
eb8b0f1214
@ -0,0 +1 @@
|
|||||||
|
/zoo-api.html
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"name": "zoo-api",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"dependencies": {
|
||||||
|
"@redocly/cli": "^1.0.0-beta"
|
||||||
|
},
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"start": "npx @redocly/cli@^1.0.0-beta build-docs -o zoo-api.html",
|
||||||
|
"bundle": "npx @redocly/cli@^1.0.0-beta bundle -o dist.yaml",
|
||||||
|
"test": "npx @redocly/cli@^1.0.0-beta lint"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
# see https://redocly.com/docs/cli/configuration/
|
||||||
|
apis:
|
||||||
|
zoo-api@v1:
|
||||||
|
root: zoo-api.yaml
|
||||||
|
extends:
|
||||||
|
- recommended
|
||||||
|
rules:
|
||||||
|
no-unused-components: warn
|
||||||
|
theme:
|
||||||
|
openapi:
|
||||||
|
generateCodeSamples:
|
||||||
|
languages:
|
||||||
|
- lang: JavaScript
|
||||||
Loading…
Reference in New Issue