app/src/docs/docs.js
const docs = {
getDocHTML: version => `<!DOCTYPE html>
<html>
<head>
<title>Common Object Management Service API - Documentation ${version}</title>
<!-- Needed for adaptive design -->
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
<!-- ReDoc doesn't change outer page styles -->
<style>
body { margin: 0; padding: 0; }
</style>
</head>
<body>
<redoc spec-url='/api/${version}/docs/api-spec.yaml' />
<script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"></script>
</body>
</html>`
};
module.exports = docs;