mirror of
https://github.com/gosticks/octoprint-open-api.git
synced 2025-10-16 11:45:38 +00:00
add doc generation
This commit is contained in:
parent
27c0bacd26
commit
bcc1586158
3300
docs/api.json
Normal file
3300
docs/api.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -3,8 +3,8 @@
|
||||
<head>
|
||||
<title>API Reference | ReDoc</title>
|
||||
<!-- needed for adaptive design -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/png" href="favicon.png">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="icon" type="image/png" href="favicon.png" />
|
||||
|
||||
<!--
|
||||
ReDoc uses font options from the parent element
|
||||
@ -16,9 +16,9 @@
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
{{{redocHead}}}
|
||||
</head>
|
||||
<body>
|
||||
{{{redocHTML}}}
|
||||
<redoc spec-url="./api.json"></redoc>
|
||||
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "octoprint",
|
||||
"name": "octoprint-openapi",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
|
||||
@ -1,13 +1,14 @@
|
||||
{
|
||||
"name": "octoprint-openapi",
|
||||
|
||||
"license": "MIT",
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"@redocly/openapi-cli": "^1.0.0-beta.18"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "openapi preview-docs",
|
||||
"build": "openapi bundle -o dist",
|
||||
"build": "openapi bundle -o ./dist/api.yaml && openapi bundle -o ./dist/api.yaml",
|
||||
"build-docs": "openapi bundle -o ./docs/api.json",
|
||||
"test": "openapi lint"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user