mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-28 03:23:44 +03:00
Merge branch 'master' into releases
This commit is contained in:
commit
9cc4dd06c1
|
@ -11,9 +11,12 @@
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
"OpenAPI",
|
||||||
|
"OpenAPI Specification",
|
||||||
"Swagger",
|
"Swagger",
|
||||||
"JSON-Schema",
|
"JSON-Schema",
|
||||||
"API",
|
"API",
|
||||||
|
"REST",
|
||||||
"documentation",
|
"documentation",
|
||||||
"Angular 2"
|
"Angular 2"
|
||||||
],
|
],
|
||||||
|
@ -25,6 +28,10 @@
|
||||||
"tests",
|
"tests",
|
||||||
"lib",
|
"lib",
|
||||||
"demo",
|
"demo",
|
||||||
"build"
|
"build",
|
||||||
|
"docs",
|
||||||
|
"gulpfile.js",
|
||||||
|
"*.conf.js",
|
||||||
|
"*.config.js"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -144,7 +144,7 @@ export default class JsonSchema extends BaseComponent {
|
||||||
// TODO handle internal schemes differently
|
// TODO handle internal schemes differently
|
||||||
|
|
||||||
let names = [].slice.call(this.$element.querySelectorAll('.param-name-content'));
|
let names = [].slice.call(this.$element.querySelectorAll('.param-name-content'));
|
||||||
let widths = [144];//names.map(el => el.offsetWidth);
|
let widths = names.map(el => el.offsetWidth);
|
||||||
let maxWidth = Math.max(...widths);
|
let maxWidth = Math.max(...widths);
|
||||||
if (!maxWidth) return;
|
if (!maxWidth) return;
|
||||||
names.forEach(el => {
|
names.forEach(el => {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "redoc",
|
"name": "redoc",
|
||||||
"description": "Swagger-generated API Reference Documentation",
|
"description": "Swagger-generated API Reference Documentation",
|
||||||
"version": "0.6.1",
|
"version": "0.6.2",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git://github.com/Rebilly/ReDoc"
|
"url": "git://github.com/Rebilly/ReDoc"
|
||||||
|
@ -18,9 +18,12 @@
|
||||||
"deploy": "build/prepare_deploy.sh && deploy-to-gh-pages demo"
|
"deploy": "build/prepare_deploy.sh && deploy-to-gh-pages demo"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
"OpenAPI",
|
||||||
|
"OpenAPI Specification",
|
||||||
"Swagger",
|
"Swagger",
|
||||||
"JSON-Schema",
|
"JSON-Schema",
|
||||||
"API",
|
"API",
|
||||||
|
"REST",
|
||||||
"documentation",
|
"documentation",
|
||||||
"Angular 2"
|
"Angular 2"
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user