Skip to content

Commit 12352ad

Browse files
committed
blog update
1 parent 6eb4747 commit 12352ad

File tree

257 files changed

+564
-162
lines changed

Some content is hidden

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

257 files changed

+564
-162
lines changed

deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ git add -A
1717
git commit -m 'deploy'
1818

1919
# 如果发布到 https://<USERNAME>.github.io
20-
git push -f git@github.com:Jstarfish/Jstarfish.github.io.git master
20+
#git push -f git@github.com:Jstarfish/Jstarfish.github.io.git master
2121

2222
# 如果发布到 https://<USERNAME>.github.io/<REPO>
2323
#git push -f git@github.com:Jstarfish/JavaKeeper.git master:gh-pages

docs/.vuepress/config.js

Lines changed: 108 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,93 @@
11
module.exports = {
22
theme: require.resolve('./theme/vuepress-theme-reco'),
33
//theme: 'reco',
4-
base: "/JavaKeeper/",
4+
base: "/",
55
title: 'JavaKeeper',
6-
author: '海星',
76
//description: 'Keep On Growing:Java Keeper',
7+
head: [
8+
["link", { rel: "icon", href: `/icon.svg` }],
9+
['meta', { name: 'keywords', content: 'JavaKeeper,Java,Java开发,算法,blog' }],
10+
['script', {}, `
11+
var _hmt = _hmt || [];
12+
(function() {
13+
var hm = document.createElement("script");
14+
hm.src = "https://hm.baidu.com/hm.js?a949a9b30eb86ac0159e735ff8670c03";
15+
var s = document.getElementsByTagName("script")[0];
16+
s.parentNode.insertBefore(hm, s);
17+
// 引入谷歌,不需要可删除这段
18+
var hm1 = document.createElement("script");
19+
hm1.src = "https://www.googletagmanager.com/gtag/js?id=UA-169923503-1";
20+
var s1 = document.getElementsByTagName("script")[0];
21+
s1.parentNode.insertBefore(hm1, s1);
22+
})();
23+
// 谷歌加载,不需要可删除
24+
window.dataLayer = window.dataLayer || [];
25+
function gtag(){dataLayer.push(arguments);}
26+
gtag('js', new Date());
27+
gtag('config', 'UA-169923503-1');
28+
`],
29+
],
830
themeConfig: {
9-
31+
author: '海星',
32+
repo: 'Jstarfish/JavaKeeper',
1033
//logo: './public/img/logo.png',
34+
subSidebar: 'auto',//在所有页面中启用自动生成子侧边栏,原 sidebar 仍然兼容
1135
nav: [
1236
{ text: 'Java', link: '/java/' },
37+
{ text: '数据结构与算法', link: '/data-structure-algorithms/' },
1338
{ text: '数据存储与缓存', link: '/data-store' },
14-
{ text: '数据结构与算法', link: '/data-structure' },
15-
{ text: '直击面试', link: '/interview' },
39+
{ text: '直击面试', link: '/interview/' },
1640
],
1741
sidebar: {
1842
"/java/": genJavaSidebar(),
19-
"/data-store/": genDataStructureSidebar()
20-
},
43+
"/data-structure-algorithms/": genDSASidebar(),
44+
"/data-store/": genDataStoreSidebar(),
45+
"/interview/": genInterviewSidebar(),
46+
},
2147
blogConfig: {
22-
// category: {
23-
// location: 2, // 在导航栏菜单中所占的位置,默认2
24-
// text: 'Category' // 默认文案 “分类”
25-
// },
26-
// tag: {
27-
// location: 3, // 在导航栏菜单中所占的位置,默认3
28-
// text: 'Tag' // 默认文案 “标签”
29-
// }
48+
// category: {
49+
// location: 2, // 在导航栏菜单中所占的位置,默认2
50+
// text: 'Category' // 默认文案 “分类”
51+
// },
52+
// tag: {
53+
// location: 3, // 在导航栏菜单中所占的位置,默认3
54+
// text: 'Tag' // 默认文案 “标签”
55+
// }
3056
}
3157
},
3258
plugins: [
33-
['@vuepress-reco/vuepress-plugin-bulletin-popover', {
34-
width: '260px', // 默认 260px
35-
title: '消息提示',
36-
body: [
37-
{
38-
type: 'title',
39-
content: '欢迎加入Java 技术有限委员会 🎉</br>500 + 电子书,30+ 视频教学和源码无套路获取',
40-
style: 'text-aligin: center;width: 100%;'
41-
},
42-
{
43-
type: 'image',
44-
src: '/qrcode.jpg'
45-
}
46-
]
47-
,
48-
// footer: [
49-
// {
50-
// type: 'button',
51-
// text: '打赏',
52-
// link: '/donate'
53-
// }
54-
// ]
55-
}]
56-
]
59+
['@vuepress-reco/vuepress-plugin-bulletin-popover', {
60+
width: '260px', // 默认 260px
61+
title: '消息提示',
62+
body: [
63+
{
64+
type: 'title',
65+
content: '<h4>欢迎加入Java 技术有限委员会 🎉</h4> <h4>500 + 电子书,30+ 视频教学和源码无套路获取</h4>',
66+
style: 'text-aligin: center;width: 100%;'
67+
},
68+
{
69+
type: 'image',
70+
src: '/qcode.png'
71+
}
72+
]
73+
//,
74+
// footer: [
75+
// {
76+
// type: 'button',
77+
// text: '打赏',
78+
// link: '/donate'
79+
// }
80+
// ]
81+
}]
82+
]
5783
}
5884

5985
function genJavaSidebar() {
6086
return [
6187
{
6288
title: "JVM",
6389
collapsable: false,
64-
sidebarDepth: 1, // 可选的, 默认值是 1
90+
sidebarDepth: 2, // 可选的, 默认值是 1
6591
children: ["JVM/Runtime-Data-Areas", "JVM/OOM"]
6692
},
6793
{
@@ -75,12 +101,51 @@ function genJavaSidebar() {
75101
];
76102
}
77103

78-
function genDataStructureSidebar() {
104+
function genDSASidebar() {
79105
return [
80106
{
81-
title: "配置",
107+
title: "数据结构",
108+
collapsable: false,
109+
sidebarDepth: 1, // 可选的, 默认值是 1
110+
children: ["","Array", "Stack"]
111+
},
112+
{
113+
title: "算法",
82114
collapsable: false,
83-
children: [""]
115+
children: [
116+
['Recursion', '递归'],
117+
['Dynamic-Programming', '动态规划']
118+
]
84119
}
120+
];
121+
}
122+
123+
function genDataStoreSidebar(){
124+
return [
125+
{
126+
title: "数据结构",
127+
collapsable: false,
128+
sidebarDepth: 2, // 可选的, 默认值是 1
129+
children: ["hello-dataStructure.md","Array", "Stack"]
130+
},
131+
{
132+
title: "算法",
133+
collapsable: false,
134+
children: [
135+
"JUC/Java-Memory-Model",
136+
"JUC/CountDownLatch、CyclicBarrier、Semaphore"
137+
]
138+
}
139+
];
140+
}
141+
142+
143+
144+
function genInterviewSidebar(){
145+
return [
146+
['Kafka-FAQ', 'Kafka 面试'],
147+
['JVM-FAQ', 'JVM 面试'],
148+
149+
85150
];
86151
}

docs/.vuepress/dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 3b9df28cd557503b51b8ccdc4653802a58191371
1+
Subproject commit 065c5b78b530725db55741fcf6614626e54f8180

docs/.vuepress/plugins/vuepress-plugin-mode/bin/enhanceAppFile.js

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

docs/.vuepress/plugins/vuepress-plugin-mode/index.js

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

docs/.vuepress/public/hero.png

-15.1 KB
Binary file not shown.

docs/.vuepress/public/icon.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/.vuepress/public/qcode.png

41.5 KB
Loading

docs/.vuepress/styles/palette.styl

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

docs/.vuepress/theme/vuepress-theme-reco/styles/theme.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ body
1313
font-family Ubuntu, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif
1414
-webkit-font-smoothing antialiased
1515
-moz-osx-font-smoothing grayscale
16-
font-size 15px
16+
font-size 16px
1717
color var(--text-color)
1818
background-color var(--background-color)
1919

0 commit comments

Comments
 (0)