📝 docs: add some tips

This commit is contained in:
远野千束 2024-09-06 15:43:20 +08:00
parent 803a0b9498
commit 114d262b68
2 changed files with 2 additions and 28 deletions

View File

@ -1,29 +1,3 @@
import DefaultTheme from 'vitepress/theme-without-fonts' import DefaultTheme from 'vitepress/theme-without-fonts'
import Theme from 'vitepress/theme'
import {createI18n} from 'vue-i18n'
import './fonts.css' import './fonts.css'
export default DefaultTheme
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)
}
}

View File

@ -98,7 +98,7 @@ class Plane3:
def cal_intersection_line3(self, other: 'Plane3') -> 'Line3': def cal_intersection_line3(self, other: 'Plane3') -> 'Line3':
r""" r"""
计算两平面的交线 计算两平面的交线
:::tip {{ $t('tip') }} :::tip
计算两平面交线的一般步骤: 计算两平面交线的一般步骤:
1. 求两平面的法向量的叉乘得到方向向量 1. 求两平面的法向量的叉乘得到方向向量
$$ d = n1 \times n2 $$ $$ d = n1 \times n2 $$