feat: 文档整合scalar 主题, 优化 redoc-free主题, 优化页面渲染

This commit is contained in:
2026-01-08 12:52:45 +08:00
parent c18887d5a7
commit 90a2d139eb
10 changed files with 2291 additions and 86 deletions

View File

@@ -0,0 +1,27 @@
<!doctype html>
<html>
<head>
<title>{{DOC_TITLE}}</title>
<meta charset="utf-8" />
<meta
content="width=device-width, initial-scale=1"
name="viewport" />
</head>
<body>
<div id="app"></div>
<!-- Load the Script -->
<script src="api-reference.js"></script>
<!-- Initialize the Scalar API Reference -->
<script>
Scalar.createApiReference('#app', {
// The URL of the OpenAPI/Swagger document
url: '{{DOC_PATH}}',
// Avoid CORS issues
proxyUrl: '',
})
</script>
</body>
</html>