Skip to content

Commit 31ff308

Browse files
Update redoc.html
1 parent 7a9ae0d commit 31ff308

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed
Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,33 @@
11
<!DOCTYPE html>
2-
<html xmlns:th="http://www.thymeleaf.org">
2+
<html xmlns:th="http://www.thymeleaf.org" lang="es">
33
<head>
44
<meta charset="UTF-8">
5-
<title th:text="${title}">API Documentation</title>
5+
<title th:text="${title}">SmartPot API Docs</title>
66
<script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"></script>
77
<style>
88
body {
99
margin: 0;
1010
padding: 0;
1111
background-color: #121212;
1212
}
13-
redoc {
13+
#redoc-container {
1414
height: 100vh;
1515
}
1616
</style>
1717
</head>
1818
<body>
19-
<redoc th:attr="spec-url=${specUrl}"></redoc>
19+
<div id="redoc-container"></div>
20+
21+
<script th:inline="javascript">
22+
const specUrl = /*[[${specUrl}]]*/ '/v3/api-docs';
23+
Redoc.init(specUrl, {
24+
scrollYOffset: 20,
25+
hideDownloadButton: false,
26+
theme: {
27+
colors: { primary: { main: '#00b894' } },
28+
typography: { fontSize: '16px', fontFamily: 'Arial, sans-serif' }
29+
}
30+
}, document.getElementById('redoc-container'));
31+
</script>
2032
</body>
21-
</html>
33+
</html>

0 commit comments

Comments
 (0)