Skip to content

Commit 61edc8b

Browse files
committed
feat: 更新文档
1 parent 9f69c6f commit 61edc8b

File tree

81 files changed

+1617
-859
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1617
-859
lines changed

README.md

Lines changed: 101 additions & 82 deletions
Large diffs are not rendered by default.

docs/.vuepress/config.js

Lines changed: 50 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ module.exports = {
1212
// 注入到页面<head> 中的标签,格式[tagName, { attrName: attrValue }, innerHTML?]
1313
['link', { rel: 'icon', href: '/img/favicon.ico' }], //favicons,资源放在public文件夹
1414
['meta', { name: 'keywords', content: 'vuepress,theme,blog,vdoing' }],
15-
['meta', { name: 'theme-color', content: '#11a8cd' }], // 移动浏览器主题颜色
15+
['meta', { name: 'theme-color', content: '#11a8cd' }] // 移动浏览器主题颜色
1616
],
1717
markdown: {
1818
// lineNumbers: true,
1919
extractHeaders: ['h2', 'h3', 'h4', 'h5', 'h6'], // 提取标题到侧边栏的级别,默认['h2', 'h3']
2020
externalLinks: {
2121
target: '_blank',
22-
rel: 'noopener noreferrer',
23-
},
22+
rel: 'noopener noreferrer'
23+
}
2424
},
2525
// 主题配置
2626
themeConfig: {
@@ -33,24 +33,24 @@ module.exports = {
3333
items: [
3434
{ text: '综合', link: '/03.关系型数据库/01.综合/' },
3535
{ text: 'Mysql', link: '/03.关系型数据库/02.Mysql/' },
36-
{ text: '其他', link: '/03.关系型数据库/99.其他/' },
37-
],
36+
{ text: '其他', link: '/03.关系型数据库/99.其他/' }
37+
]
3838
},
3939
{
4040
text: '文档数据库',
41-
items: [{ text: 'MongoDB', link: '/04.文档数据库/01.MongoDB/' }],
41+
items: [{ text: 'MongoDB', link: '/04.文档数据库/01.MongoDB/' }]
4242
},
4343
{
4444
text: 'KV数据库',
45-
items: [{ text: 'Redis', link: '/05.KV数据库/01.Redis/' }],
45+
items: [{ text: 'Redis', link: '/05.KV数据库/01.Redis/' }]
4646
},
4747
{
4848
text: '搜索引擎数据库',
4949
items: [
5050
{ text: 'Elasticsearch', link: '/07.搜索引擎数据库/01.Elasticsearch/' },
51-
{ text: 'Elastic技术栈', link: '/07.搜索引擎数据库/02.Elastic/' },
52-
],
53-
},
51+
{ text: 'Elastic技术栈', link: '/07.搜索引擎数据库/02.Elastic/' }
52+
]
53+
}
5454
],
5555
sidebarDepth: 2, // 侧边栏显示深度,默认1,最大2(显示到h3标题)
5656
logo: 'https://raw.githubusercontent.com/dunwu/images/dev/common/dunwu-logo.png', // 导航栏logo
@@ -68,7 +68,7 @@ module.exports = {
6868
// sidebarOpen: false, // 初始状态是否打开侧边栏,默认true
6969
updateBar: {
7070
// 最近更新栏
71-
showToArticle: true, // 显示到文章页底部,默认true
71+
showToArticle: true // 显示到文章页底部,默认true
7272
// moreArticle: '/archives' // “更多文章”跳转的页面,默认'/archives'
7373
},
7474
// titleBadge: false, // 文章标题前的图标是否显示,默认true
@@ -93,7 +93,7 @@ module.exports = {
9393
author: {
9494
// 文章默认的作者信息,可在md文件中单独配置此信息 String | {name: String, href: String}
9595
name: 'dunwu', // 必需
96-
href: 'https://github.com/dunwu', // 可选的
96+
href: 'https://github.com/dunwu' // 可选的
9797
},
9898
social: {
9999
// 社交图标,显示于博主信息栏和页脚栏
@@ -102,21 +102,21 @@ module.exports = {
102102
{
103103
iconClass: 'icon-youjian',
104104
title: '发邮件',
105-
link: 'mailto:[email protected]',
105+
link: 'mailto:[email protected]'
106106
},
107107
{
108108
iconClass: 'icon-github',
109109
title: 'GitHub',
110-
link: 'https://github.com/dunwu',
111-
},
112-
],
110+
link: 'https://github.com/dunwu'
111+
}
112+
]
113113
},
114114
footer: {
115115
// 页脚信息
116116
createYear: 2019, // 博客创建年份
117-
copyrightInfo: '钝悟(dunwu) | CC-BY-SA-4.0', // 博客版权信息,支持a标签
117+
copyrightInfo: '钝悟(dunwu) | CC-BY-SA-4.0' // 博客版权信息,支持a标签
118118
},
119-
htmlModules,
119+
htmlModules
120120
},
121121

122122
// 插件
@@ -126,8 +126,8 @@ module.exports = {
126126
{
127127
// 鼠标点击爱心特效
128128
color: '#11a8cd', // 爱心颜色,默认随机色
129-
excludeClassName: 'theme-vdoing-content', // 要排除元素的class, 默认空''
130-
},
129+
excludeClassName: 'theme-vdoing-content' // 要排除元素的class, 默认空''
130+
}
131131
],
132132

133133
['fulltext-search'], // 全文搜索
@@ -157,8 +157,8 @@ module.exports = {
157157
copySelector: ['div[class*="language-"] pre', 'div[class*="aside-code"] aside'], // String or Array
158158
copyMessage: '复制成功', // default is 'Copy successfully and then paste it for use.'
159159
duration: 1000, // prompt message display time.
160-
showInMobile: false, // whether to display on the mobile side, default: false.
161-
},
160+
showInMobile: false // whether to display on the mobile side, default: false.
161+
}
162162
],
163163
[
164164
'demo-block',
@@ -170,30 +170,49 @@ module.exports = {
170170
// vue: 'https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js', // 在线示例中的vue依赖
171171
jsfiddle: false, // 是否显示 jsfiddle 链接
172172
codepen: true, // 是否显示 codepen 链接
173-
horizontal: false, // 是否展示为横向样式
174-
},
175-
},
173+
horizontal: false // 是否展示为横向样式
174+
}
175+
}
176176
],
177177
[
178178
'vuepress-plugin-zooming', // 放大图片
179179
{
180180
selector: '.theme-vdoing-content img:not(.no-zoom)',
181181
options: {
182-
bgColor: 'rgba(0,0,0,0.6)',
183-
},
184-
},
182+
bgColor: 'rgba(0,0,0,0.6)'
183+
}
184+
}
185185
],
186186
[
187187
'@vuepress/last-updated', // "上次更新"时间格式
188188
{
189189
transformer: (timestamp, lang) => {
190190
const dayjs = require('dayjs') // https://day.js.org/
191191
return dayjs(timestamp).format('YYYY/MM/DD, HH:mm:ss')
192-
},
193-
},
192+
}
193+
}
194194
],
195+
[
196+
'vuepress-plugin-comment', // 评论
197+
{
198+
choosen: 'gitalk',
199+
options: {
200+
clientID: '7dd8c87a20cff437d2ed',
201+
clientSecret: '4e28d81a9a0280796b2b45ce2944424c6f2c1531',
202+
repo: 'db-tutorial', // GitHub 仓库
203+
owner: 'dunwu', // GitHub仓库所有者
204+
admin: ['dunwu'], // 对仓库有写权限的人
205+
// distractionFreeMode: true,
206+
pagerDirection: 'last', // 'first'正序 | 'last'倒序
207+
id: '<%- (frontmatter.permalink || frontmatter.to.path).slice(-16) %>', // 页面的唯一标识,长度不能超过50
208+
title: '「评论」<%- frontmatter.title %>', // GitHub issue 的标题
209+
labels: ['Gitalk', 'Comment'], // GitHub issue 的标签
210+
body: '页面:<%- window.location.origin + (frontmatter.to.path || window.location.pathname) %>' // GitHub issue 的内容
211+
}
212+
}
213+
]
195214
],
196215

197216
// 监听文件变化并重新构建
198-
extraWatchFiles: ['.vuepress/config.js', '.vuepress/config/htmlModules.js'],
217+
extraWatchFiles: ['.vuepress/config.js', '.vuepress/config/htmlModules.js']
199218
}

docs/.vuepress/enhanceApp.js

Lines changed: 3 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,9 @@
1-
/**
2-
* to主题使用者:你可以去掉本文件的所有代码
3-
*/
1+
// import vue from 'vue/dist/vue.esm.browser'
42
export default ({
53
Vue, // VuePress 正在使用的 Vue 构造函数
64
options, // 附加到根实例的一些选项
75
router, // 当前应用的路由实例
8-
siteData, // 站点元数据
9-
isServer, // 当前应用配置是处于 服务端渲染 还是 客户端
6+
siteData // 站点元数据
107
}) => {
11-
// 用于监控在路由变化时检查广告拦截器 (to主题使用者:你可以去掉本文件的所有代码)
12-
if (!isServer) {
13-
router.afterEach(() => {
14-
//check if wwads' fire function was blocked after document is ready with 3s timeout (waiting the ad loading)
15-
docReady(function () {
16-
// setTimeout(function () {
17-
// if (window._AdBlockInit === undefined) {
18-
// ABDetected()
19-
// }
20-
// }, 3000)
21-
})
22-
23-
// 删除事件改为隐藏事件
24-
setTimeout(() => {
25-
const pageB = document.querySelector('.pageB')
26-
if (!pageB) return
27-
const btnEl = pageB.querySelector('.wwads-hide')
28-
if (btnEl) {
29-
btnEl.onclick = () => {
30-
pageB.style.display = 'none'
31-
}
32-
}
33-
// 显示广告模块
34-
pageB.style.display = 'flex'
35-
36-
integrateGitalk(router)
37-
}, 0)
38-
})
39-
}
40-
try {
41-
document && integrateGitalk(router)
42-
} catch (e) {
43-
console.error(e.message)
44-
}
45-
}
46-
47-
function ABDetected() {
48-
const h =
49-
"<style>.wwads-horizontal,.wwads-vertical{background-color:#f4f8fa;padding:5px;min-height:120px;margin-top:20px;box-sizing:border-box;border-radius:3px;font-family:sans-serif;display:flex;min-width:150px;position:relative;overflow:hidden;}.wwads-horizontal{flex-wrap:wrap;justify-content:center}.wwads-vertical{flex-direction:column;align-items:center;padding-bottom:32px}.wwads-horizontal a,.wwads-vertical a{text-decoration:none}.wwads-horizontal .wwads-img,.wwads-vertical .wwads-img{margin:5px}.wwads-horizontal .wwads-content,.wwads-vertical .wwads-content{margin:5px}.wwads-horizontal .wwads-content{flex:130px}.wwads-vertical .wwads-content{margin-top:10px}.wwads-horizontal .wwads-text,.wwads-content .wwads-text{font-size:14px;line-height:1.4;color:#0e1011;-webkit-font-smoothing:antialiased}.wwads-horizontal .wwads-poweredby,.wwads-vertical .wwads-poweredby{display:block;font-size:11px;color:#a6b7bf;margin-top:1em}.wwads-vertical .wwads-poweredby{position:absolute;left:10px;bottom:10px}.wwads-horizontal .wwads-poweredby span,.wwads-vertical .wwads-poweredby span{transition:all 0.2s ease-in-out;margin-left:-1em}.wwads-horizontal .wwads-poweredby span:first-child,.wwads-vertical .wwads-poweredby span:first-child{opacity:0}.wwads-horizontal:hover .wwads-poweredby span,.wwads-vertical:hover .wwads-poweredby span{opacity:1;margin-left:0}.wwads-horizontal .wwads-hide,.wwads-vertical .wwads-hide{position:absolute;right:-23px;bottom:-23px;width:46px;height:46px;border-radius:23px;transition:all 0.3s ease-in-out;cursor:pointer;}.wwads-horizontal .wwads-hide:hover,.wwads-vertical .wwads-hide:hover{background:rgb(0 0 0 /0.05)}.wwads-horizontal .wwads-hide svg,.wwads-vertical .wwads-hide svg{position:absolute;left:10px;top:10px;fill:#a6b7bf}.wwads-horizontal .wwads-hide:hover svg,.wwads-vertical .wwads-hide:hover svg{fill:#3E4546}</style><a href='https://wwads.cn/page/whitelist-wwads' class='wwads-img' target='_blank' rel='nofollow'><img src='https://cdn.jsdelivr.net/gh/xugaoyi/image_store@master/blog/wwads.2a3pidhlh4ys.webp' width='130'></a><div class='wwads-content'><a href='https://wwads.cn/page/whitelist-wwads' class='wwads-text' target='_blank' rel='nofollow'>为了本站的长期运营,请将我们的网站加入广告拦截器的白名单,感谢您的支持!<span style='color: #11a8cd'>如何添加白名单?</span></a><a href='https://wwads.cn/page/end-user-privacy' class='wwads-poweredby' title='万维广告 ~ 让广告更优雅,且有用' target='_blank'><span>万维</span><span>广告</span></a></div><a class='wwads-hide' onclick='parentNode.remove()' title='隐藏广告'><svg xmlns='http://www.w3.org/2000/svg' width='6' height='7'><path d='M.879.672L3 2.793 5.121.672a.5.5 0 11.707.707L3.708 3.5l2.12 2.121a.5.5 0 11-.707.707l-2.12-2.12-2.122 2.12a.5.5 0 11-.707-.707l2.121-2.12L.172 1.378A.5.5 0 01.879.672z'></path></svg></a>"
50-
const wwadsEl = document.getElementsByClassName('wwads-cn')
51-
const wwadsContentEl = document.querySelector('.wwads-content')
52-
if (wwadsEl[0] && !wwadsContentEl) {
53-
wwadsEl[0].innerHTML = h
54-
}
55-
}
56-
57-
//check document ready
58-
function docReady(t) {
59-
'complete' === document.readyState || 'interactive' === document.readyState
60-
? setTimeout(t, 1)
61-
: document.addEventListener('DOMContentLoaded', t)
62-
}
63-
64-
// 集成 Gitalk 评论插件
65-
function integrateGitalk(router) {
66-
const linkGitalk = document.createElement('link')
67-
linkGitalk.href = 'https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css'
68-
linkGitalk.rel = 'stylesheet'
69-
document.body.appendChild(linkGitalk)
70-
const scriptGitalk = document.createElement('script')
71-
scriptGitalk.src = 'https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js'
72-
document.body.appendChild(scriptGitalk)
73-
74-
router.afterEach((to) => {
75-
if (scriptGitalk.onload) {
76-
loadGitalk(to)
77-
} else {
78-
scriptGitalk.onload = () => {
79-
loadGitalk(to)
80-
}
81-
}
82-
})
83-
84-
function loadGitalk(to) {
85-
let commentsContainer = document.getElementById('gitalk-container')
86-
if (!commentsContainer) {
87-
commentsContainer = document.createElement('div')
88-
commentsContainer.id = 'gitalk-container'
89-
commentsContainer.classList.add('content')
90-
}
91-
const $page = document.querySelector('.page')
92-
if ($page) {
93-
$page.appendChild(commentsContainer)
94-
if (typeof Gitalk !== 'undefined' && Gitalk instanceof Function) {
95-
renderGitalk(to.fullPath)
96-
}
97-
}
98-
}
99-
function renderGitalk(fullPath) {
100-
console.info(fullPath)
101-
const gitalk = new Gitalk({
102-
clientID: '7dd8c87a20cff437d2ed',
103-
clientSecret: '4e28d81a9a0280796b2b45ce2944424c6f2c1531', // come from github development
104-
repo: 'blog',
105-
owner: 'dunwu',
106-
admin: ['dunwu'],
107-
id: 'comment',
108-
distractionFreeMode: false,
109-
language: 'zh-CN',
110-
})
111-
gitalk.render('gitalk-container')
112-
}
8+
// window.Vue = vue // 使页面中可以使用Vue构造函数 (使页面中的vue demo生效)
1139
}

docs/01.数据库综合/01.Nosql技术选型.md renamed to docs/01.计算机科学/02.数据库/01.数据库综合/01.Nosql技术选型.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
22
title: Nosql技术选型
33
date: 2020-02-09 02:18:58
4-
categories:
4+
categories:
5+
- 计算机科学
56
- 数据库
67
- 数据库综合
7-
tags:
8+
tags:
89
- 数据库
910
- 综合
1011
- Nosql
11-
permalink: /pages/4a5e3f/
12+
permalink: /pages/0e1012/
1213
---
1314

1415
# Nosql 技术选型

docs/01.数据库综合/02.数据结构与数据库索引.md renamed to docs/01.计算机科学/02.数据库/01.数据库综合/02.数据结构与数据库索引.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
---
22
title: 数据结构与数据库索引
33
date: 2022-03-27 23:39:10
4-
categories:
4+
categories:
5+
- 计算机科学
56
- 数据库
67
- 数据库综合
7-
tags:
8+
tags:
89
- 数据库
910
- 综合
1011
- 数据结构
1112
- 索引
12-
permalink: /pages/4702da/
13+
permalink: /pages/d7cd88/
1314
---
1415

1516
# 数据结构与数据库索引

docs/01.数据库综合/README.md renamed to docs/01.计算机科学/02.数据库/01.数据库综合/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
---
22
title: 数据库综合
33
date: 2022-04-11 16:52:35
4-
categories:
4+
categories:
5+
- 计算机科学
56
- 数据库
67
- 数据库综合
7-
tags:
8+
tags:
89
- 数据库
910
- 综合
10-
permalink: /pages/6ed13e/
11+
permalink: /pages/3c3c45/
12+
hidden: true
1113
---
1214

1315
# 数据库综合
@@ -39,4 +41,4 @@ permalink: /pages/6ed13e/
3941

4042
## 🚪 传送
4143

42-
🏠 [DB-TUTORIAL 首页](https://github.com/dunwu/db-tutorial) ◾ 🎯 [我的博客](https://github.com/dunwu/blog)
44+
💧 [我的IT知识图谱](https://dunwu.github.io/waterdrop/) ◾ 🎯 [我的博客](https://dunwu.github.io/blog/)

docs/02.数据库中间件/01.Shardingsphere/01.ShardingSphere简介.md renamed to docs/01.计算机科学/02.数据库/02.数据库中间件/01.Shardingsphere/01.ShardingSphere简介.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
22
title: ShardingSphere 简介
33
date: 2020-10-08 20:30:30
4-
categories:
4+
categories:
5+
- 计算机科学
56
- 数据库
67
- 数据库中间件
7-
tags:
8+
- Shardingsphere
9+
tags:
810
- 数据库
911
- 中间件
1012
- 分库分表
11-
permalink: /pages/560051/
13+
permalink: /pages/5ed2a2/
1214
---
1315

1416
# ShardingSphere 简介

docs/02.数据库中间件/01.Shardingsphere/02.ShardingSphereJdbc.md renamed to docs/01.计算机科学/02.数据库/02.数据库中间件/01.Shardingsphere/02.ShardingSphereJdbc.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
22
title: ShardingSphere Jdbc
33
date: 2020-12-28 00:01:28
4-
categories:
4+
categories:
5+
- 计算机科学
56
- 数据库
67
- 数据库中间件
7-
tags:
8+
- Shardingsphere
9+
tags:
810
- 数据库
911
- 中间件
1012
- 分库分表
11-
permalink: /pages/a9584d/
13+
permalink: /pages/8448de/
1214
---
1315

1416
# ShardingSphere Jdbc

0 commit comments

Comments
 (0)