VitePress Theme Project Trans
这是一个由 Project Trans 开发的 VitePress 主题。
构建效果
使用方式
修改下述两个文件:
import type { SidebarOptions } from '@project-trans/vitepress-theme-project-trans/theme'
import type { ThemeContext } from '@project-trans/vitepress-theme-project-trans/utils'
import genConfig from '@project-trans/vitepress-theme-project-trans/config'
import { withThemeContext } from '@project-trans/vitepress-theme-project-trans/utils'
const themeConfig: ThemeContext = {
siteTitle: 'RLE.wiki',
siteDescription: '一份 RLE 指北',
githubRepoLink: 'https://github.com/project-trans/RLE-wiki',
rootDir: 'docs',
include: ['campus', 'contributor-guide', 'fashion'],
nav,
sidebarOptions,
}
export default withThemeContext(themeConfig, genConfig)
import PtjsTheme from '@project-trans/vitepress-theme-project-trans/theme'
import 'uno.css'
import './style.css'
export default {
extends: PtjsTheme,
}
调试说明
- 修改文件后在仓库根目录下进行构建
- 切换到 example 路径下预览