Skip to content

Commit 3a292b7

Browse files
authored
Merge pull request Snailclimb#2 from Snailclimb/main
update
2 parents 9dfd0f4 + 5c45af9 commit 3a292b7

File tree

134 files changed

+1294
-3335
lines changed

Some content is hidden

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

134 files changed

+1294
-3335
lines changed

README.md

+64-68
Large diffs are not rendered by default.

docs/.vuepress/config.ts

+1-18
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,6 @@ module.exports = defineHopeConfig({
1010
// 是否开启默认预加载 js
1111
shouldPrefetch: (file, type) => false,
1212
head: [
13-
// 百度站点验证
14-
["meta", { name: "baidu-site-verification", content: "code-IZvTs9l2OK" }],
15-
[
16-
"script",
17-
{ src: "https://cdn.jsdelivr.net/npm/react/umd/react.production.min.js" },
18-
],
19-
[
20-
"script",
21-
{
22-
src: "https://cdn.jsdelivr.net/npm/react-dom/umd/react-dom.production.min.js",
23-
},
24-
],
25-
["script", { src: "https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js" }],
26-
[
27-
"script",
28-
{ src: "https://cdn.jsdelivr.net/npm/@babel/standalone/babel.min.js" },
29-
],
3013
// 添加百度统计
3114
[
3215
"script", {},
@@ -42,7 +25,7 @@ module.exports = defineHopeConfig({
4225
"link",
4326
{
4427
rel: "stylesheet",
45-
href: "//at.alicdn.com/t/font_2922463_lu595twe5t.css",
28+
href: "//at.alicdn.com/t/font_2922463_99aa80ii7cf.css",
4629
},
4730
],
4831
],

docs/.vuepress/navbar.ts

+5-23
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,10 @@
11
import { defineNavbarConfig } from "vuepress-theme-hope";
22

33
export const navbarConfig = defineNavbarConfig([
4-
{ text: "Java面试指南", icon: "java", link: "/home" },
5-
{
6-
text: "Java面试指北",
7-
icon: "recommend",
8-
link: "https://www.yuque.com/docs/share/f37fc804-bfe6-4b0d-b373-9c462188fec7",
9-
},
10-
{
11-
text: "官方知识星球",
12-
icon: "recommend",
13-
link: "https://www.yuque.com/docs/share/8a30ffb5-83f3-40f9-baf9-38de68b906dc",
14-
},
15-
{
16-
text: "开发工具",
17-
icon: "Tools",
18-
link: "/tools/",
19-
children: [
20-
{ text: "Java", icon: "java", link: "/tools/java/jadx/" },
21-
{ text: "Database", icon: "database", link: "/tools/database/chiner/" },
22-
{ text: "Git", icon: "git", link: "/tools/git/git-intro/" },
23-
{ text: "Docker", icon: "docker1", link: "/tools/docker/docker-intro/" },
24-
{ text: "IntelliJ IDEA", icon: "intellijidea", link: "/idea-tutorial/" },
25-
],
26-
},
4+
{ text: "面试指南", icon: "java", link: "/home.md" },
5+
{ text: "优质专栏", icon: "recommend", link: "/zhuanlan/" },
6+
{ text: "开源项目精选", icon: "github", link: "/open-source-project/" },
7+
278
{ text: "关于作者", icon: "zuozhe", link: "/about-the-author/" },
9+
{ text: "RSS订阅", icon: "rss", link: "https://javaguide.cn/feed.json" },
2810
]);

docs/.vuepress/sidebar.ts

+52-70
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@ import { defineSidebarConfig } from "vuepress-theme-hope";
33
export const sidebarConfig = defineSidebarConfig({
44
// 应该把更精确的路径放置在前边
55
"/javaguide/": ["intro", "contribution-guideline", "faq", "todo"],
6+
"/zhuanlan/": ["java-mian-shi-zhi-bei", "handwritten-rpc-framework"],
7+
"/open-source-project/": [
8+
"tutorial",
9+
"practical-project",
10+
"system-design",
11+
"tool-library",
12+
"tools",
13+
"machine-learning",
14+
"big-data",
15+
],
616
"/about-the-author/": [
717
{
818
text: "个人经历",
@@ -22,39 +32,10 @@ export const sidebarConfig = defineSidebarConfig({
2232
children: [
2333
"my-article-was-stolen-and-made-into-video-and-it-became-popular",
2434
"dog-that-copies-other-people-essay",
35+
"zhishixingqiu-two-years",
2536
],
2637
},
2738
],
28-
"/tools/": [
29-
{
30-
text: "Java",
31-
icon: "java",
32-
prefix: "java/",
33-
collapsable: false,
34-
children: ["jadx"],
35-
},
36-
{
37-
text: "Database",
38-
icon: "database",
39-
prefix: "database/",
40-
collapsable: false,
41-
children: ["chiner", "dbeaver", "screw", "datagrip"],
42-
},
43-
{
44-
text: "Git",
45-
icon: "git",
46-
prefix: "git/",
47-
collapsable: false,
48-
children: ["git-intro", "github-tips"],
49-
},
50-
{
51-
text: "Docker",
52-
icon: "docker1",
53-
prefix: "docker/",
54-
collapsable: false,
55-
children: ["docker-intro", "docker-in-action"],
56-
},
57-
],
5839
"/high-quality-technical-articles/": [
5940
{
6041
text: "练级攻略",
@@ -75,7 +56,7 @@ export const sidebarConfig = defineSidebarConfig({
7556
},
7657
{
7758
text: "面试",
78-
icon: "mianshixinxi-02",
59+
icon: "mianshi",
7960
prefix: "interview/",
8061
collapsable: false,
8162
children: [
@@ -92,46 +73,18 @@ export const sidebarConfig = defineSidebarConfig({
9273
children: ["get-into-work-mode-quickly-when-you-join-a-company"],
9374
},
9475
],
95-
"/idea-tutorial/": [
96-
{
97-
text: "IDEA小技巧",
98-
icon: "tips",
99-
prefix: "idea-tips/",
100-
collapsable: false,
101-
children: [
102-
"idea-refractor-intro",
103-
"idea-plug-in-development-intro",
104-
"idea-source-code-reading-skills",
105-
],
106-
},
76+
// 必须放在最后面
77+
"/": [
10778
{
108-
text: "IDEA插件推荐",
109-
icon: "chajian1",
110-
collapsable: false,
111-
prefix: "idea-plugins/",
79+
text: "面试准备",
80+
icon: "mianshi",
81+
prefix: "interview-preparation/",
82+
collapsable: true,
11283
children: [
113-
"shortcut-key",
114-
"idea-themes",
115-
"improve-code",
116-
"interface-beautification",
117-
"camel-case",
118-
"code-glance",
119-
"code-statistic",
120-
"git-commit-template",
121-
"gson-format",
122-
"idea-features-trainer",
123-
"jclasslib",
124-
"maven-helper",
125-
"rest-devlop",
126-
"save-actions",
127-
"sequence-diagram",
128-
"translation",
129-
"others",
84+
"teach-you-how-to-prepare-for-the-interview-hand-in-hand",
85+
"interview-experience",
13086
],
13187
},
132-
],
133-
// 必须放在最后面
134-
"/": [
13588
{
13689
text: "Java",
13790
icon: "java",
@@ -157,7 +110,6 @@ export const sidebarConfig = defineSidebarConfig({
157110
"proxy",
158111
"io",
159112
"bigdecimal",
160-
"generics",
161113
],
162114
},
163115
],
@@ -335,11 +287,41 @@ export const sidebarConfig = defineSidebarConfig({
335287
collapsable: true,
336288
children: [
337289
"redis-questions-01",
338-
"3-commonly-used-cache-read-and-write-strategies",
290+
{
291+
text: "重要知识点",
292+
icon: "important",
293+
collapsable: true,
294+
children: [
295+
"3-commonly-used-cache-read-and-write-strategies",
296+
"redis-memory-fragmentation",
297+
],
298+
},
339299
],
340300
},
341301
],
342302
},
303+
{
304+
text: "开发工具",
305+
icon: "Tools",
306+
prefix: "tools/",
307+
collapsable: true,
308+
children: [
309+
{
310+
text: "Git",
311+
icon: "git",
312+
prefix: "git/",
313+
collapsable: true,
314+
children: ["git-intro", "github-tips"],
315+
},
316+
{
317+
text: "Docker",
318+
icon: "docker1",
319+
prefix: "docker/",
320+
collapsable: true,
321+
children: ["docker-intro", "docker-in-action"],
322+
},
323+
],
324+
},
343325
{
344326
text: "系统设计",
345327
icon: "xitongsheji",
@@ -352,7 +334,7 @@ export const sidebarConfig = defineSidebarConfig({
352334
prefix: "basis/",
353335
icon: "basic",
354336
collapsable: true,
355-
children: ["RESTfulAPI", "naming"],
337+
children: ["RESTfulAPI", "naming", "refactoring"],
356338
},
357339
{
358340
text: "常用框架",

docs/.vuepress/themeConfig.ts

+30-8
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,24 @@ import { sidebarConfig } from "./sidebar";
55
export default defineThemeConfig({
66
logo: "/logo.png",
77
hostname: "https://javaguide.cn/",
8-
author: "Guide哥",
8+
author: {
9+
name: "Guide",
10+
url: "https://javaguide.cn/",
11+
},
912
repo: "https://github.com/Snailclimb/JavaGuide",
1013
docsDir: "docs",
1114
iconPrefix: "iconfont icon-",
1215
pure: true,
1316
navbar: navbarConfig,
1417
sidebar: sidebarConfig,
18+
pageInfo: [
19+
"Author",
20+
"Category",
21+
"Tag",
22+
"Date",
23+
"Original",
24+
"Word",
25+
],
1526
blog: {
1627
intro: "/about-the-author/",
1728
sidebarDisplay: "mobile",
@@ -34,15 +45,26 @@ export default defineThemeConfig({
3445
plugins: ["highlight", "math", "search", "notes", "zoom"],
3546
},
3647
},
37-
// docsearch: {
38-
// appId: "",
39-
// apiKey: "",
40-
// indexName: "",
41-
// },
48+
feed: {
49+
json: true,
50+
},
51+
search: {
52+
// https://v2.vuepress.vuejs.org/zh/reference/plugin/search.html
53+
// 排除首页
54+
isSearchable: (page) => page.path !== "/",
55+
maxSuggestions: 10,
56+
hotKeys: ["s", "/"],
57+
// 用于在页面的搜索索引中添加额外字段
58+
getExtraFields: () => [],
59+
locales: {
60+
"/": {
61+
placeholder: "搜索",
62+
},
63+
},
64+
},
4265
pwa: {
4366
favicon: "/favicon.ico",
44-
cachePic: false,
45-
cacheHTML: false,
67+
cachePic: true,
4668
apple: {
4769
icon: "/assets/icon/apple-icon-152.png",
4870
statusBarColor: "black",

0 commit comments

Comments
 (0)