diff --git a/.vitepress/config.mts b/.vitepress/config.mts index df32b95..4c87829 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -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" } ] } })