docs: update README and improve documentation styling

- Redesign README with better visual hierarchy and styling
- Update documentation styles including line height and blockquote formatting
- Remove BOM character from ai-capability-dictionary.md
- Add Setting icon import to Layout.vue
This commit is contained in:
sanbuphy
2026-01-13 15:42:48 +08:00
parent 0a0a22add3
commit 0b1473bcc3
5 changed files with 139 additions and 80 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ import DefaultTheme from 'vitepress/theme'
import { useData } from 'vitepress'
import TextType from './components/TextType.vue'
import { onMounted, ref, watch } from 'vue'
import { Setting } from '@element-plus/icons-vue'
const { frontmatter } = useData()
@@ -21,7 +22,7 @@ const MAX_FONT_SIZE = 18
const DEFAULT_FONT_SIZE = 13
const MIN_LINE_HEIGHT = 1.25
const MAX_LINE_HEIGHT = 1.8
const DEFAULT_LINE_HEIGHT = 1.5
const DEFAULT_LINE_HEIGHT = 1.65
const fontSize = ref(DEFAULT_FONT_SIZE)
const lineHeight = ref(DEFAULT_LINE_HEIGHT)
+17 -1
View File
@@ -3,7 +3,7 @@
/* 通过变量控制分组底部留白(默认 24px) */
--vp-sidebar-nav-section-gap: 8px;
--ev-doc-font-size: 13px;
--ev-doc-line-height: 1.5;
--ev-doc-line-height: 1.65;
}
.vp-doc {
@@ -18,10 +18,26 @@
--el-font-line-height-primary: var(--ev-doc-line-height);
}
.vp-doc p,
.vp-doc ul,
.vp-doc ol {
line-height: var(--ev-doc-line-height) !important;
}
.vp-doc :where(p, ul, ol, table, blockquote, pre, details, figure) {
margin: 10px 0;
}
.vp-doc blockquote {
font-size: 0.9em !important;
color: var(--vp-c-text-2);
}
.vp-doc blockquote p {
font-size: inherit !important;
line-height: 1.4 !important;
}
.vp-doc :where(li) {
margin: 4px 0;
}
+1 -1
View File
@@ -1,4 +1,4 @@
# AI 词典:主流模型、产品形态与应用场景一览
# AI 词典:主流模型、产品形态与应用场景一览
随着生成式 AI 技术在各类产品和业务场景中的广泛落地,一个越来越现实的问题摆在每个我们面前: **到底有哪些 AI 能力可以用?** 在具体的需求里,又 **该选择哪一种能力、哪一类模型或哪一个产品来承载?**
+17 -1
View File
@@ -2,7 +2,7 @@
/* 调整侧边栏分组之间的间距 */
--vp-sidebar-nav-section-gap: 8px;
--ev-doc-font-size: 13px;
--ev-doc-line-height: 1.5;
--ev-doc-line-height: 1.65;
}
.vp-doc {
@@ -17,10 +17,26 @@
--el-font-line-height-primary: var(--ev-doc-line-height);
}
.vp-doc p,
.vp-doc ul,
.vp-doc ol {
line-height: var(--ev-doc-line-height) !important;
}
.vp-doc :where(p, ul, ol, table, blockquote, pre, details, figure) {
margin: 10px 0;
}
.vp-doc blockquote {
font-size: 0.9em !important;
color: var(--vp-c-text-2);
}
.vp-doc blockquote p {
font-size: inherit !important;
line-height: 1.4 !important;
}
.vp-doc :where(li) {
margin: 4px 0;
}