Skip to content

Commit

Permalink
feta: sort (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryolitia authored Sep 26, 2024
1 parent 5f76ac8 commit 015a0a1
Show file tree
Hide file tree
Showing 6 changed files with 429 additions and 418 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ dist-ssr
.dev.vars
.env
.env*
!.env.example
!.env.example

**/cache/
17 changes: 16 additions & 1 deletion example/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,22 @@ import type { DefaultTheme } from 'vitepress'

const nav: DefaultTheme.NavItem[] = []

const sidebarOptions: SidebarOptions = []
const baseConfig = {
useTitleFromFrontmatter: true,
useFolderTitleFromIndexFile: true,
useFolderLinkFromIndexFile: true,
collapsed: true,
documentRootPath: '/docs',
} satisfies Partial<SidebarOptions>

const sidebarOptions = [
{
...baseConfig,
scanStartPath: 'campus',
resolvePath: '/campus/',
sortMenusByFrontmatterOrder: true,
}
]

const themeConfig: ThemeContext = {
siteTitle: 'RLE.wiki',
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@
"unocss": "^0.61.9",
"vite": "^5.3.1",
"vitepress": "^1.2.3",
"vitepress-sidebar": "^1.23.2",
"vitepress-sidebar": "^1.27.1",
"vue": "^3.4.30"
},
"dependencies": {
"@nolebase/vitepress-plugin-enhanced-readabilities": "^2.1.2",
"@nolebase/vitepress-plugin-git-changelog": "^2.1.2",
"@nolebase/vitepress-plugin-highlight-targeted-heading": "^2.1.2",
"@nolebase/vitepress-plugin-meta": "^2.2.1",
"@nolebase/vitepress-plugin-enhanced-readabilities": "^2.5.0",
"@nolebase/vitepress-plugin-git-changelog": "^2.5.0",
"@nolebase/vitepress-plugin-highlight-targeted-heading": "^2.5.0",
"@nolebase/vitepress-plugin-meta": "^2.5.0",
"markdown-it-footnote": "^4.0.0",
"markdown-it-katex": "^2.0.3",
"markdown-it-pangu": "^1.0.2",
Expand All @@ -67,7 +67,7 @@
"@antfu/eslint-config": "^2.27.3",
"@types/markdown-it": "^14.1.2",
"@types/markdown-it-footnote": "^3.0.4",
"@types/node": "^20.16.5",
"@types/node": "^20.16.9",
"@unocss/eslint-plugin": "^0.61.9",
"eslint": "^8.57.1",
"eslint-plugin-format": "^0.1.2",
Expand Down
Loading

0 comments on commit 015a0a1

Please sign in to comment.