Skip to content

Commit

Permalink
更新文档,加条公式
Browse files Browse the repository at this point in the history
  • Loading branch information
ikenxuan committed Jun 30, 2024
1 parent 4ab31d9 commit 8cbaa4f
Show file tree
Hide file tree
Showing 6 changed files with 531 additions and 1 deletion.
99 changes: 99 additions & 0 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineConfig } from 'vitepress'
import timeline from 'vitepress-markdown-timeline'
import taskLists from "markdown-it-task-lists"
import mathjax3 from 'markdown-it-mathjax3';

// https://vitepress.dev/reference/site-config
export default defineConfig({
Expand All @@ -19,6 +20,14 @@ export default defineConfig({
//时间线
md.use(timeline)
md.use(taskLists)
md.use(mathjax3)
},
},
vue: {
template: {
compilerOptions: {
isCustomElement: (tag) => customElements.includes(tag),
},
},
},
cleanUrls: true,
Expand Down Expand Up @@ -137,3 +146,93 @@ export default defineConfig({
returnToTopLabel: '返回顶部',
},
})

const customElements = [
'mjx-container',
'mjx-assistive-mml',
'math',
'maction',
'maligngroup',
'malignmark',
'menclose',
'merror',
'mfenced',
'mfrac',
'mi',
'mlongdiv',
'mmultiscripts',
'mn',
'mo',
'mover',
'mpadded',
'mphantom',
'mroot',
'mrow',
'ms',
'mscarries',
'mscarry',
'mscarries',
'msgroup',
'mstack',
'mlongdiv',
'msline',
'mstack',
'mspace',
'msqrt',
'msrow',
'mstack',
'mstack',
'mstyle',
'msub',
'msup',
'msubsup',
'mtable',
'mtd',
'mtext',
'mtr',
'munder',
'munderover',
'semantics',
'math',
'mi',
'mn',
'mo',
'ms',
'mspace',
'mtext',
'menclose',
'merror',
'mfenced',
'mfrac',
'mpadded',
'mphantom',
'mroot',
'mrow',
'msqrt',
'mstyle',
'mmultiscripts',
'mover',
'mprescripts',
'msub',
'msubsup',
'msup',
'munder',
'munderover',
'none',
'maligngroup',
'malignmark',
'mtable',
'mtd',
'mtr',
'mlongdiv',
'mscarries',
'mscarry',
'msgroup',
'msline',
'msrow',
'mstack',
'maction',
'semantics',
'annotation',
'annotation-xml',
]
3 changes: 2 additions & 1 deletion .vitepress/theme/style/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import './var.css';
@import './vp-code-group.css';
@import './custom-font.css'
@import './custom-font.css';
@import './mathjax3.css';
9 changes: 9 additions & 0 deletions .vitepress/theme/style/mathjax3.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
mjx-container {
display: inline-block;
margin: auto 2px -2px;
}

mjx-container>svg {
margin: auto;
display: inline-block;
}
5 changes: 5 additions & 0 deletions docs/intro/push.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
在发送一次 `相同的命令` 即可取消在当前群的推送
:::

问: 推送的逻辑是什么?<br>
答: 只会推送博主/UP在 `当天内` 发布的所有内容(包括一发布就置顶的)<br>
公式(单位:timestamp):
$$(\text{now time} - \text{1 day}) < \textcolor{yellow}{\text{该时间段内的作品/动态都将被推送}} < \text{now time}$$

## 样式

::: warning 警告
Expand Down
Loading

0 comments on commit 8cbaa4f

Please sign in to comment.