docs: 为已有的路由编写完整名称和文档
This commit is contained in:
@@ -36,8 +36,29 @@
|
||||
scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
|
||||
}
|
||||
|
||||
/* vitepress-openapi */
|
||||
/* ===== vitepress-oepnapi ===== */
|
||||
|
||||
/* Details */
|
||||
details {
|
||||
padding: 10px 6px;
|
||||
border-width: 1px;
|
||||
border-radius: 6px;
|
||||
border-color: transparent;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
details[open] {
|
||||
border-color: rgba(255, 255, 255, 0.3)
|
||||
}
|
||||
|
||||
details>summary {
|
||||
text-align: center;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
/* 底部 */
|
||||
div.vitepress-openapi {
|
||||
background: linear-gradient(45deg, hsla(58, 100%, 92%, 0.6), hsla(128, 100%, 75%, 0.5));
|
||||
border: 1px solid #64ffc4;
|
||||
border-radius: 6px;
|
||||
margin: 48px auto 0;
|
||||
@@ -48,4 +69,4 @@ div.vitepress-openapi {
|
||||
|
||||
div.vitepress-openapi p {
|
||||
line-height: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ const operationId = route.data.params.operationId
|
||||
<template #branding>
|
||||
<div class="vitepress-openapi">
|
||||
<p>API 文档是基于最新代码自动生成的</p>
|
||||
<p>由 VitePress OpenAPI 提供文档支持</p>
|
||||
<p>由 <a href="https://vitepress-openapi.vercel.app/" target="_blank">VitePress OpenAPI</a> 提供文档支持</p>
|
||||
</div>
|
||||
</template>
|
||||
</OAOperation>
|
||||
</OAOperation>
|
||||
|
||||
Reference in New Issue
Block a user