mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 13:44:54 +03:00
problem with code tag on json and use COPYFILES instead of Mac CP command
This commit is contained in:
parent
8e3a7f6084
commit
5d35a7ec60
|
@ -38,7 +38,7 @@
|
|||
"bundle:standalone": "webpack --env.standalone --mode=production",
|
||||
"bundle:lib": "webpack --mode=production && npm run declarations",
|
||||
"bundle": "npm run bundle:clean && npm run bundle:lib && npm run bundle:standalone",
|
||||
"declarations": "tsc --emitDeclarationOnly -p tsconfig.lib.json && cp -R src/types typings/",
|
||||
"declarations": "tsc --emitDeclarationOnly -p tsconfig.lib.json && copyfiles --all src/types typings/",
|
||||
"stats": "webpack --env.standalone --json --profile --mode=production > stats.json",
|
||||
"prettier": "prettier --write \"cli/index.ts\" \"src/**/*.{ts,tsx}\"",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
|
||||
|
@ -196,4 +196,4 @@
|
|||
"printWidth": 100,
|
||||
"parser": "typescript"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4,9 +4,9 @@ export function jsonToHTML(json, maxExpandLevel) {
|
|||
level = 1;
|
||||
let output = '';
|
||||
output += '<div class="redoc-json">';
|
||||
output += '<code>';
|
||||
//output += '<code>';
|
||||
output += valueToHTML(json, maxExpandLevel);
|
||||
output += '</code>';
|
||||
//output += '</code>';
|
||||
output += '</div>';
|
||||
return output;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user