Skip to content

Commit

Permalink
ww
Browse files Browse the repository at this point in the history
  • Loading branch information
LY-Xiang committed Aug 23, 2024
1 parent 6001ddc commit 9eb6ed6
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,32 +1,36 @@
import { defineConfig } from 'vitepress'
import { defineConfig } from "vitepress"

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "Mdr-C-Tutorial",
description: "Mdr's C tutorial",
lang: "zh-CN",
base: "/C-vitepress/",
rewrites: {
'README.md': 'index.md'
"README.md": "index.md",
"教程/总纲.md": "教程/index.md"
},
cleanUrls: true,
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Home', link: '/' },
{ text: "README", link: "/" },
{ text: "总纲", link: "/教程/总纲" },
{ text: "路线", link: "/教程/路线" }
],

/*sidebar: [
{
text: 'Examples',
text: "Examples",
items: [
{ text: 'Markdown Examples', link: '/markdown-examples' },
{ text: 'Runtime API Examples', link: '/api-examples' }
{ text: "Markdown Examples", link: "/markdown-examples" },
{ text: "Runtime API Examples", link: "/api-examples" }
]
}
],*/

socialLinks: [
{ icon: 'github', link: 'https://github.com/Mdr-C-Tutorial/C' }
{ icon: "github", link: "https://github.com/Mdr-C-Tutorial/C" }
]
}
})

0 comments on commit 9eb6ed6

Please sign in to comment.