mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-08-20 17:02:16 +00:00
@@ -172,6 +172,24 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
'redocusaurus',
|
||||||
|
{
|
||||||
|
// Plugin Options for loading OpenAPI files
|
||||||
|
specs: [
|
||||||
|
{
|
||||||
|
id: 'rancher-api',
|
||||||
|
spec: 'openapi/swagger.json',
|
||||||
|
// route: '/api/',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
// Theme Options for modifying how redoc renders them
|
||||||
|
theme: {
|
||||||
|
// Change with your site colors
|
||||||
|
primaryColor: '#1890ff',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
[
|
[
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -23,6 +23,7 @@
|
|||||||
"prism-react-renderer": "^1.3.3",
|
"prism-react-renderer": "^1.3.3",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^17.0.2",
|
||||||
|
"redocusaurus": "^1.6.3",
|
||||||
"remark-cli": "^11.0.0",
|
"remark-cli": "^11.0.0",
|
||||||
"remark-lint-no-dead-urls": "^1.1.0",
|
"remark-lint-no-dead-urls": "^1.1.0",
|
||||||
"remark-validate-links": "^12.1.0",
|
"remark-validate-links": "^12.1.0",
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
title: API Reference
|
||||||
|
---
|
||||||
|
|
||||||
|
import ApiDocMdx from '@theme/ApiDocMdx';
|
||||||
|
|
||||||
|
<ApiDocMdx id="rancher-api" />
|
||||||
@@ -1262,6 +1262,13 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"contribute-to-rancher"
|
"contribute-to-rancher",
|
||||||
|
{
|
||||||
|
"type": "category",
|
||||||
|
"label": "API",
|
||||||
|
"items": [
|
||||||
|
"api/api-reference"
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user