Skip to content

Commit ac8c6da

Browse files
committed
docs: 初始化Git和GitHub使用指南站点
1 parent 2a87c8a commit ac8c6da

5 files changed

Lines changed: 27 additions & 158 deletions

File tree

docs/.vitepress/config.mts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import { GitChangelog, GitChangelogMarkdownSection, } from '@nolebase/vitepress-
99
import { SponsorPlugin } from 'vitepress-plugin-sponsor'
1010

1111

12-
const baseUrl = 'https://cunyu1943.github.io'
12+
const baseUrl = 'https://devguidehub.github.io'
1313
const RSS: RSSOptions = {
1414
title: '村雨遥',
1515
baseUrl,
16-
copyright: 'Copyright (c) 2025-present, 村雨遥',
16+
copyright: 'Copyright (c) 2026-present, 村雨遥',
1717
}
1818

1919
// https://vitepress.dev/reference/site-config
@@ -45,7 +45,7 @@ export default defineConfig({
4545
// 基于 Git
4646
GitChangelog({
4747
// 填写在此处填写您的仓库链接
48-
repoURL: () => 'https://github.com/cunyu1943/weekly',
48+
repoURL: () => 'https://github.com/devguidehub/git-github-guide',
4949
}),
5050
GitChangelogMarkdownSection(),
5151
// 离线全文搜索
@@ -94,24 +94,24 @@ export default defineConfig({
9494
},
9595

9696
// 站点名
97-
title: "模板",
97+
title: "Git和GitHub 使用指南",
9898
// 站点描述
99-
description: "A VitePress Site",
99+
description: "一个简单的 Git 和 GitHub 使用指南,帮助你快速上手 Git 和 GitHub 使用",
100100
// 纯净链接
101101
cleanUrls: true,
102102
// 预演
103103
lang: 'zh-CN',
104104
// 源目录
105105
srcDir: "src",
106106
// 仓库名
107-
// base: "/weekly/",
107+
base: "/git-github-guide/",
108108
// 深色主题
109109
appearance: 'dark',
110110
// 忽略死链
111111
ignoreDeadLinks: false,
112112
// 站点地图
113113
sitemap: {
114-
hostname: 'https://cunyu1943.github.io',
114+
hostname: 'https://devguidehub.github.io',
115115
},
116116
lastUpdated: true,
117117

@@ -127,7 +127,7 @@ export default defineConfig({
127127
// 页脚
128128
footer: {
129129
// message: 'Released under the MIT License.',
130-
copyright: 'Copyright © 2025-' + new Date().getFullYear() + ' present cunyu1943',
130+
copyright: 'Copyright © 2026-' + new Date().getFullYear() + ' present cunyu1943',
131131
},
132132

133133
//上次更新时间
@@ -159,7 +159,7 @@ export default defineConfig({
159159

160160
//编辑本页
161161
editLink: {
162-
pattern: 'https://github.com/cunyu1943/weekly/edit/main/docs/:path', // 改成自己的仓库
162+
pattern: 'https://github.com/devguidehub/git-github-guide/edit/main/docs/:path', // 改成自己的仓库
163163
text: '我要纠错'
164164
},
165165
// 导航栏
@@ -169,7 +169,7 @@ export default defineConfig({
169169
// 社交链接
170170
socialLinks: [
171171
{ icon: 'github', link: 'https://github.com/cunyu1943' },
172-
{ icon: { svg: '<svg t="1777984706401" class="icon" viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5741" width="200" height="200"><path d="M1024.16 694.816c0-149.92-143.104-271.392-319.584-271.392-176.576 0-319.68 121.504-319.68 271.392S528 966.208 704.576 966.208c55.456 0 107.648-12.096 153.184-33.248l125.984 54.528-14.592-140.544c34.784-43.392 55.04-95.808 55.04-152.128zM596.832 621.28c-25.152 0-45.472-20.352-45.472-45.472s20.32-45.472 45.472-45.472c25.12 0 45.44 20.384 45.44 45.472s-20.384 45.472-45.44 45.472z m215.392 0c-25.056 0-45.44-20.352-45.44-45.472s20.384-45.472 45.44-45.472c25.184 0 45.536 20.384 45.536 45.472s-20.352 45.472-45.536 45.472zM704.576 387.488c49.376 0 96.416 8.8 139.264 24.64 0.32-5.728 0.992-11.232 0.992-16.992 0-198.08-189.152-358.624-422.432-358.624C189.184 36.512 0.032 197.024 0.032 395.136c0 74.496 26.816 143.776 72.704 201.12L53.472 781.92l166.432-72.096c41.216 19.2 86.784 32.16 134.88 38.784-3.616-17.504-5.824-35.424-5.824-53.792 0.032-169.44 159.552-307.296 355.616-307.296z m-139.808-209.6c33.184 0 60 26.88 60 60 0 33.184-26.816 60.064-60 60.064s-60.032-26.88-60.032-60.064c0-33.152 26.88-60 60.032-60zM280.032 297.952c-33.184 0-60-26.88-60-60.064 0-33.152 26.848-60 60-60 33.184 0 60.032 26.88 60.032 60s-26.88 60.064-60.032 60.064z" fill="#51C332" p-id="5742"></path></svg>' }, link: 'https://twitter.com/vuejs', ariaLabel: 'wechat' },
172+
// { icon: { svg: '<svg t="1777984706401" class="icon" viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5741" width="200" height="200"><path d="M1024.16 694.816c0-149.92-143.104-271.392-319.584-271.392-176.576 0-319.68 121.504-319.68 271.392S528 966.208 704.576 966.208c55.456 0 107.648-12.096 153.184-33.248l125.984 54.528-14.592-140.544c34.784-43.392 55.04-95.808 55.04-152.128zM596.832 621.28c-25.152 0-45.472-20.352-45.472-45.472s20.32-45.472 45.472-45.472c25.12 0 45.44 20.384 45.44 45.472s-20.384 45.472-45.44 45.472z m215.392 0c-25.056 0-45.44-20.352-45.44-45.472s20.384-45.472 45.44-45.472c25.184 0 45.536 20.384 45.536 45.472s-20.352 45.472-45.536 45.472zM704.576 387.488c49.376 0 96.416 8.8 139.264 24.64 0.32-5.728 0.992-11.232 0.992-16.992 0-198.08-189.152-358.624-422.432-358.624C189.184 36.512 0.032 197.024 0.032 395.136c0 74.496 26.816 143.776 72.704 201.12L53.472 781.92l166.432-72.096c41.216 19.2 86.784 32.16 134.88 38.784-3.616-17.504-5.824-35.424-5.824-53.792 0.032-169.44 159.552-307.296 355.616-307.296z m-139.808-209.6c33.184 0 60 26.88 60 60 0 33.184-26.816 60.064-60 60.064s-60.032-26.88-60.032-60.064c0-33.152 26.88-60 60.032-60zM280.032 297.952c-33.184 0-60-26.88-60-60.064 0-33.152 26.848-60 60-60 33.184 0 60.032 26.88 60.032 60s-26.88 60.064-60.032 60.064z" fill="#51C332" p-id="5742"></path></svg>' }, link: 'https://twitter.com/vuejs', ariaLabel: 'wechat' },
173173
]
174174
}
175175
})

docs/.vitepress/theme/components/notice.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ setTimeout(function () { visible.value = false }, 5000);
2222
</strong>
2323
</p>
2424
<p>二、联系我</p>
25-
<img class="notice-img" src="/imgs/contact/contact.png">
25+
<img class="notice-img" src="/git-github-guide/imgs/contact/contact.png">
2626
</div>
2727
<div class="notice-footer">
2828
<div class="notice-btn" @click="closetz">朕知道了</div>

docs/src/api-examples.md

Lines changed: 0 additions & 49 deletions
This file was deleted.

docs/src/index.md

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,29 @@
33
layout: home
44

55
hero:
6-
name: "村雨遥"
7-
text: "A VitePress Site"
6+
name: "Git 和 GitHub 使用指南"
7+
text: "一个简单的 Git 和 GitHub 使用指南,帮助你快速上手。"
88
image:
99
# src: contact/contact.png #
1010
src: imgs/site/logo.png
11-
tagline: My great project tagline
11+
# tagline: My great project tagline
1212
actions:
1313
- theme: brand
14-
text: Markdown Examples
15-
link: /markdown-examples
14+
text: 开始阅读
15+
link: /guide
1616
- theme: alt
17-
text: API Examples
18-
link: /api-examples
17+
text: GitHub
18+
link: https://github.com/devguidehub/git-github-guide
1919

2020
features:
21-
- title: Feature A
22-
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
23-
- title: Feature B
24-
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
25-
- title: Feature C
26-
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
21+
- title: 📰 好物周刊
22+
details: 村雨遥的好物周刊,记录每周看到的有价值的信息,主要针对计算机领域(软件、资源、插件、项目、网站),每周五发布。
23+
link: https://github.com/cunyu1943/weekly
24+
- title: ☕️ JavaPark
25+
details: Java 学习保姆级教程、计算机基础、数据库、实战实践、效率工具、资源分享、程序人生。
26+
link: https://github.com/cunyu1943/JavaPark
27+
- title: 📚 编程书籍资源库
28+
details: 编程书籍资源库,包含多个编程语言的书籍资源。
29+
link: https://github.com/cunyu1943/ebooks
2730
---
2831

docs/src/markdown-examples.md

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)