Skip to content

Commit

Permalink
📝 docs: add some tips
Browse files Browse the repository at this point in the history
  • Loading branch information
snowykami committed Sep 6, 2024
1 parent 803a0b9 commit 114d262
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
28 changes: 1 addition & 27 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,3 @@
import DefaultTheme from 'vitepress/theme-without-fonts'
import Theme from 'vitepress/theme'
import {createI18n} from 'vue-i18n'
import './fonts.css'

const i18n = createI18n({
// something vue-i18n options here ..
messages: {
en: {
tip: "TIP",
},
ja: {
tip: "ヒント",
},
zh: {
tip: "提示",
},
zht: {
tip: "提示",
}
}
})

export default {
extends: Theme,
enhanceApp({app}) {
app.use(i18n)
}
}
export default DefaultTheme
2 changes: 1 addition & 1 deletion mbcp/mp_math/plane.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def cal_distance(self, other: 'Plane3 | Point3') -> float:
def cal_intersection_line3(self, other: 'Plane3') -> 'Line3':
r"""
计算两平面的交线。
:::tip {{ $t('tip') }}
:::tip
计算两平面交线的一般步骤:
1. 求两平面的法向量的叉乘得到方向向量
$$ d = n1 \times n2 $$
Expand Down

0 comments on commit 114d262

Please sign in to comment.