Skip to content

Commit

Permalink
Merge pull request #3 from project-trans/dev/cleanup-and-fix
Browse files Browse the repository at this point in the history
chore: improve styles of footnote, removed unnecessary demo files, fixed typescript configs
  • Loading branch information
Cryolitia authored Dec 12, 2023
2 parents 77b8a11 + 8bf57f8 commit 42c4a55
Show file tree
Hide file tree
Showing 9 changed files with 256 additions and 330 deletions.
3 changes: 1 addition & 2 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { defineConfig, type DefaultTheme } from 'vitepress'
import { defineConfig } from 'vitepress'
import nav from './nav'
import mdPangu from "markdown-it-pangu"
import katex from 'markdown-it-katex'
import footnote from 'markdown-it-footnote'
import { generateSidebar } from 'vitepress-sidebar'
import { sidebar } from './sidebar'

// https://vitepress.dev/reference/site-config
Expand Down
6 changes: 4 additions & 2 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
import { h } from 'vue'
import type { Theme } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import './style.css'

import './styles/vitepress-vars.css'
import './styles/styles.css'
import 'uno.css'

export default {
Expand All @@ -12,7 +14,7 @@ export default {
// https://vitepress.dev/guide/extending-default-theme#layout-slots
})
},
enhanceApp({ app, router, siteData }) {
enhanceApp() {
// ...
}
} satisfies Theme
17 changes: 17 additions & 0 deletions docs/.vitepress/theme/styles/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* 脚注 */
.footnotes > .footnotes-list {
/* 扩大脚注区间与正文间的间距,在可视观感上与正文区别开 */
margin-top: 32px;
/* 降低透明度以进一步在可视观感上与正文区别开 */
opacity: 0.9;
/* 区分正文和脚注 */
font-size: 0.9rem;
/* 确保脚注上的返回链接符号 ↩ 不会被 body 的 Emoji 字体覆盖渲染为 ↩️ */
font-family: sans-serif;
}

/* 脚注 */
.footnotes > .footnotes-list > .footnote-item > p {
/* 使脚注行更密集,在视觉上让他们群聚以获得更高和更集中的专注度 */
line-height: 1.4;
}
File renamed without changes.
49 changes: 0 additions & 49 deletions docs/api-examples.md

This file was deleted.

85 changes: 0 additions & 85 deletions docs/markdown-examples.md

This file was deleted.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rle-wiki",
"name": "soc-8",
"version": "1.0.0",
"description": "RLE指北",
"description": "跨性别和多元性别人群健康照护指南第八版(SOC-8)",
"license": "CC-BY-SA-4.0",
"type": "module",
"scripts": {
Expand All @@ -20,6 +20,7 @@
"markdown-it-footnote": "^3.0.3",
"markdown-it-katex": "^2.0.3",
"markdown-it-pangu": "^1.0.2",
"typescript": "^5.3.3",
"unocss": "^0.58.0",
"unocss-preset-extra": "^0.5.3",
"unplugin-vue-components": "^0.26.0",
Expand Down
Loading

0 comments on commit 42c4a55

Please sign in to comment.