Skip to content

Commit

Permalink
chore: 项目初始化
Browse files Browse the repository at this point in the history
  • Loading branch information
xuxing409 committed Jun 16, 2024
1 parent 294293c commit 3b004c6
Show file tree
Hide file tree
Showing 18 changed files with 1,303 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
dist
cache
.temp
.DS_Store
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"# blog-demo ʹÓÃvitepress´î½¨¸öÈ˲©¿Í"
# blog-demo 使用vitepress搭建个人博客
51 changes: 51 additions & 0 deletions docs/.vitepress/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// .vitepress/config.js
export default {
// 站点级选项
title: "是柠新呀的博客",
description: "是柠新呀用来写博客的地方",
head: [
// 配置网站的图标(显示在浏览器的 tab 上)
["link", { rel: "icon", href: `/favicon.ico` }],
],
themeConfig: {
docFooter: {
prev: "上一页",
next: "下一页",
},
nav: [
{
text: "大前端",
items: [
{ text: "html", link: "/bigFrontEnd/html/" },
{ text: "css", link: "/bigFrontEnd/css/" },
{ text: "js", link: "/bigFrontEnd/js/" },
],
},
{ text: "关于", link: "/about" },
],
sidebar: {
"/bigFrontEnd/html/": {
text: "html",
items: [
{ text: "html", link: "/bigFrontEnd/html/" },
{ text: "html1", link: "/bigFrontEnd/html/html1" },
{ text: "html2", link: "bigFrontEnd/html/html2" },
],
},
"/bigFrontEnd/css/": {
text: "css",
items: [
{ text: "css1", link: "/bigFrontEnd/css/css1" },
{ text: "css2", link: "/bigFrontEnd/css/css2" },
],
},
"/bigFrontEnd/js/": {
text: "js",
items: [
{ text: "js1", link: "/bigFrontEnd/js/js1" },
{ text: "js2", link: "/bigFrontEnd/js/js2" },
],
},
},
},
};
5 changes: 5 additions & 0 deletions docs/bigFrontEnd/css/css1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: css1
---

# css1
5 changes: 5 additions & 0 deletions docs/bigFrontEnd/css/css2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: css2
---

# css2
10 changes: 10 additions & 0 deletions docs/bigFrontEnd/css/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
hidden: true
---

# css 专题

## 目录

- [css1](./css1.md)
- [css2](./css2.md)
Empty file added docs/bigFrontEnd/html/html1.md
Empty file.
Empty file added docs/bigFrontEnd/html/html2.md
Empty file.
6 changes: 6 additions & 0 deletions docs/bigFrontEnd/html/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# html 专题

## 目录

- [html1](./html1.md)
- [html2](./html2.md)
6 changes: 6 additions & 0 deletions docs/bigFrontEnd/js/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# html 专题

## 目录

- [js1](./js1.md)
- [js2](./js2.md)
6 changes: 6 additions & 0 deletions docs/bigFrontEnd/js/js1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: js
description: js
---

### js
6 changes: 6 additions & 0 deletions docs/bigFrontEnd/js/js2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: js
description: js
---

### js
40 changes: 40 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
layout: home

hero:
name: 是柠新呀的博客
text: awesome-front-end-world.
tagline: 前端 知识体系地图
image:
src: /logo.jpg
alt: logo
actions:
- theme: brand
text: Get Started
link: /bigFrontEnd/html/
- theme: alt
text: View on GitHub
link: https://github.com/vuejs/vitepress
---

<style>
:root {
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff);

--vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%);
--vp-home-hero-image-filter: blur(44px);
}

@media (min-width: 640px) {
:root {
--vp-home-hero-image-filter: blur(56px);
}
}

@media (min-width: 960px) {
:root {
--vp-home-hero-image-filter: blur(68px);
}
}
</style>
Binary file added docs/public/favicon.ico
Binary file not shown.
Binary file added docs/public/logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions docs/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Allow: /
27 changes: 27 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "my-blog",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "vitepress dev docs",
"build": "vitepress build docs",
"preview": "vitepress preview docs"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@algolia/client-search": ">=4.9.1 <6.0.0",
"search-insights": ">=1.0.0 <3.0.0",
"vitepress": "^1.2.3"
},
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"@algolia/client-search",
"search-insights"
]
}
}
}
Loading

0 comments on commit 3b004c6

Please sign in to comment.