Skip to content

Commit 1b05267

Browse files
committed
dp
1 parent 486bb14 commit 1b05267

35,363 files changed

Lines changed: 3225294 additions & 140 deletions

File tree

Some content is hidden

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

README 2.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Java

deploy.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env sh
2+
3+
# 确保脚本抛出遇到的错误
4+
set -e
5+
6+
# 生成静态文件
7+
npm run docs:build
8+
9+
# 进入生成的文件夹
10+
cd docs/.vuepress/dist
11+
12+
# 如果是发布到自定义域名
13+
# echo 'www.example.com' > CNAME
14+
15+
git init
16+
git add -A
17+
git commit -m 'deploy'
18+
19+
# 如果发布到 https://<USERNAME>.github.io
20+
git push -f git@github.com:Jstarfish/Jstarfish.github.io.git master
21+
22+
# 如果发布到 https://<USERNAME>.github.io/<REPO>
23+
# git push -f git@github.com:<USERNAME>/<REPO>.git master:gh-pages
24+
25+
cd -

docs/.vuepress/config.js

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
module.exports = {
2+
//theme: require.resolve('./theme/vuepress-theme-reco'),
3+
theme: 'reco',
4+
base: "/",
5+
title: 'JavaKeeper',
6+
author: '海星',
7+
//description: 'Keep On Growing:Java Keeper',
8+
themeConfig: {
9+
10+
//logo: './public/img/logo.png',
11+
nav: [
12+
{ text: 'Java', link: '/java/' },
13+
{ text: '数据存储与缓存', link: '/data-store' },
14+
{ text: '数据结构与算法', link: '/data-structure' },
15+
{ text: '直击面试', link: '/interview' },
16+
],
17+
sidebar: {
18+
"/java/": genJavaSidebar(),
19+
"/data-store/": genDataStructureSidebar()
20+
},
21+
blogConfig: {
22+
// category: {
23+
// location: 2, // 在导航栏菜单中所占的位置,默认2
24+
// text: 'Category' // 默认文案 “分类”
25+
// },
26+
// tag: {
27+
// location: 3, // 在导航栏菜单中所占的位置,默认3
28+
// text: 'Tag' // 默认文案 “标签”
29+
// }
30+
}
31+
},
32+
plugins: [
33+
['@vuepress-reco/vuepress-plugin-bulletin-popover', {
34+
width: '200px', // 默认 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+
]
57+
}
58+
59+
function genJavaSidebar() {
60+
return [
61+
{
62+
title: "JVM",
63+
//collapsable: true,
64+
sidebarDepth: 1, // 可选的, 默认值是 1
65+
children: ["JVM/Runtime-Data-Areas", "JVM/OOM"]
66+
},
67+
{
68+
title: "JUC",
69+
//collapsable: false,
70+
children: [
71+
"JUC/Java-Memory-Model",
72+
"JUC/CountDownLatch、CyclicBarrier、Semaphore"
73+
]
74+
}
75+
];
76+
}
77+
78+
function genDataStructureSidebar() {
79+
return [
80+
{
81+
title: "配置",
82+
collapsable: false,
83+
children: [""]
84+
}
85+
];
86+
}

docs/.vuepress/dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 62de97bd7c55401565f5268f9bc4969f1a093faa
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export default ({ Vue }) => {
2+
Vue.mixin({
3+
computed: {
4+
set $mode (val) {
5+
return 'dark'
6+
}
7+
}
8+
})
9+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const { path } = require('@vuepress/shared-utils')
2+
3+
module.exports = (options, context) => ({
4+
name: '@vuepress-reco/vuepress-plugin-mode',
5+
enhanceAppFiles: [
6+
path.resolve(__dirname, './bin/enhanceAppFile.js')
7+
]
8+
})

docs/.vuepress/public/favicon.ico

4.19 KB
Binary file not shown.

docs/.vuepress/public/head.png

159 KB
Loading

0 commit comments

Comments
 (0)