From ec223999fee439b429119916ceed4a061b061359 Mon Sep 17 00:00:00 2001 From: zhulingyun <3104026951@qq.com> Date: Thu, 17 Oct 2024 13:10:07 +0800 Subject: [PATCH] test 2 --- docs/.vitepress/config.js | 104 +++++++++++++++++++++----------------- docs/articles/js/js.md | 10 ++++ docs/components/first.vue | 19 +++++++ docs/components/sec.vue | 19 +++++++ docs/index.md | 23 ++++++++- 5 files changed, 127 insertions(+), 48 deletions(-) create mode 100644 docs/components/first.vue create mode 100644 docs/components/sec.vue diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 224cdfa..79376f4 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -1,61 +1,71 @@ export default { title: '打工是不可能打工', description: '个人博客', // 博客的介绍 - base: '/blog/', // 如果想用 https://mlyz.wdy.github.io/blog/ 访问,那么这句话必填 + base: '/blog/', themeConfig: { - logo:'', + logo: '', nav: [ - // { text: "vue", link: "/articles/vue/上传素材到COS" }, - // { text: "uniapp", link: "/articles/uniapp/一键登录" }, { - text: '其他', + text: 'oi', items: [ // 可以配置成下拉 { text: 'js', link: '/articles/js/js' }, - // { text: '', link: '/articles/libs/VForm3低代码初体验' }, { text: '其他', link: '/articles/other/代码' }, ] } ], - sidebar: { // 侧边栏,可以分组 - "/articles/js/": [ - { - text: "基础", - items: [ - { - text: "js", - link: "/articles/js/js", - }, - { - text: "typescript", - link: "/articles/js/typescript", - }, - ], - - }, - { - text: "代码段", - items: [ - ], - }, - ], - "/articles/other/": [ - { - text: "", - items: [ - { - text: "代码", - link: "/articles/other/代码", - } - ], - }, - // { - // text: "代码段", - // items: [ - - // ], - // }, - ], - }, + // sidebar: { // 侧边栏,可以分组 + // "/articles/js/": [ + // { + // text: "基础", + // items: [ + // { + // text: "js", + // link: "/articles/js/js", + // }, + // { + // text: "typescript", + // link: "/articles/js/typescript", + // }, + // ], + + // }, + // { + // text: "代码段", + // items: [ + // ], + // }, + // ], + // "/articles/other/": [ + // { + // text: "", + // items: [ + // { + // text: "代码", + // link: "/articles/other/代码", + // } + // ], + // }, + // ], + // }, + sidebar: [ + { + text: '基础', + items: [ + { text: 'js', link: '/articles/js/js' }, + { text: 'typescript', link: '/articles/js/typescript' }, + ] + }, + { + text: '代码段', + items: [ + { text: '代码', link: '/articles/other/代码' }, + ] + } + ], socialLinks: [{ icon: "github", link: "https://github.com/3104026951" }], // 可以连接到 github + footer: { + // message: 'Released under the MIT License.', + copyright: 'Copyright © 2022-present 3104026951' + } }, -} \ No newline at end of file +} diff --git a/docs/articles/js/js.md b/docs/articles/js/js.md index 072a5b2..fb9d6b3 100644 --- a/docs/articles/js/js.md +++ b/docs/articles/js/js.md @@ -132,4 +132,14 @@ js是单线程的,同步代码按顺序执行,异步代码进异步队列, +## 123 + + + + + diff --git a/docs/components/first.vue b/docs/components/first.vue new file mode 100644 index 0000000..ae61fe7 --- /dev/null +++ b/docs/components/first.vue @@ -0,0 +1,19 @@ + + + + \ No newline at end of file diff --git a/docs/components/sec.vue b/docs/components/sec.vue new file mode 100644 index 0000000..ae61fe7 --- /dev/null +++ b/docs/components/sec.vue @@ -0,0 +1,19 @@ + + + + \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index 40e2947..3b6e810 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1 +1,22 @@ -# Hello VitePress \ No newline at end of file +--- +layout: home + +hero: + name: "中年人的代码人生" + text: "记录一些学习过程" +# tagline: + actions: + - theme: brand + text: 开始阅读 + link: /tech/ + - theme: alt + text: 关于我 + link: /about/ +features: + - title: "技术" + details: "记录一些学习过程" + - title: "生活" + details: "记录一些生活琐事" + - title: "其他" + details: "记录一些其他东西" +--- \ No newline at end of file