Skip to content

Commit

Permalink
test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
3104026951 committed Oct 17, 2024
1 parent b2e24bd commit ec22399
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 48 deletions.
104 changes: 57 additions & 47 deletions docs/.vitepress/config.js
Original file line number Diff line number Diff line change
@@ -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'
}
},
}
}
10 changes: 10 additions & 0 deletions docs/articles/js/js.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,14 @@ js是单线程的,同步代码按顺序执行,异步代码进异步队列,



## 123

<script setup>

import FirstComponent from '../../components/first.vue'

</script>


<FirstComponent />

19 changes: 19 additions & 0 deletions docs/components/first.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<template>
The count is: {{ count }}

<button :class="$style.button" @click="count++">Increment</button>
</template>
<script setup>
import { ref } from 'vue'
const count = ref(0)
</script>

<style module>
.button {
color: red;
display: block;
font-weight: bold;
font-size: 1.2em;
}
</style>
19 changes: 19 additions & 0 deletions docs/components/sec.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<template>
The count is: {{ count }}

<button :class="$style.button" @click="count++">Increment</button>
</template>
<script setup>
import { ref } from 'vue'
const count = ref(0)
</script>

<style module>
.button {
color: red;
display: block;
font-weight: bold;
font-size: 1.2em;
}
</style>
23 changes: 22 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
# Hello VitePress
---
layout: home

hero:
name: "中年人的代码人生"
text: "记录一些学习过程"
# tagline:
actions:
- theme: brand
text: 开始阅读
link: /tech/
- theme: alt
text: 关于我
link: /about/
features:
- title: "技术"
details: "记录一些学习过程"
- title: "生活"
details: "记录一些生活琐事"
- title: "其他"
details: "记录一些其他东西"
---

0 comments on commit ec22399

Please sign in to comment.