Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
/node_modules
/package-lock.json
node_modules/
# *.drawio
*.drawio.bkp
.DS_Store
# VS Code Config file
.vscode/
# Vuepress Cache
.cache/
# Vuepress Temp
.temp/
# Vuepress Output
# VuePress Cache
**/.vuepress/.cache/
# VuePress Temp
**/.vuepress/.temp/
# VuePress Output
dist/
# Build files
packages/*/lib/
Expand Down
33 changes: 12 additions & 21 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { defineUserConfig } from "vuepress";
import { themeConfig } from "./themeConfig";
import { searchPlugin } from "@vuepress/plugin-search";
import { searchProPlugin } from "vuepress-plugin-search-pro";

import theme from "./theme.js";

export default defineUserConfig({
dest: "./dist",
theme: themeConfig,
shouldPrefetch: false,

title: "JavaGuide(Java面试+学习指南)",
description:
"「Java学习指北+Java面试指南」一份涵盖大部分 Java 程序员所需要掌握的核心知识。准备 Java 面试,复习 Java 知识点,首选 JavaGuide! ",

head: [
// meta
["meta", { name: "robots", content: "all" }],
Expand Down Expand Up @@ -43,28 +44,18 @@ export default defineUserConfig({
s.parentNode.insertBefore(hm, s);
})();`,
],
["link", { rel: "stylesheet", href: "/iconfont/iconfont.css" }],
["link", { rel: "icon", href: "/favicon.ico" }],
],

locales: {
"/": {
lang: "zh-CN",
},
},
plugins: [
searchPlugin({
// https://v2.vuepress.vuejs.org/zh/reference/plugin/search.html
// 排除首页
isSearchable: (page) => page.path !== "/",
maxSuggestions: 10,
hotKeys: ["s", "/"],
// 用于在页面的搜索索引中添加额外字段
getExtraFields: () => [],
locales: {
"/": {
placeholder: "搜索",
},
},
}),
],

theme,

plugins: [searchProPlugin({ indexContent: true })],

shouldPrefetch: false,
});
8 changes: 6 additions & 2 deletions docs/.vuepress/navbar.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import { navbar } from "vuepress-theme-hope";

export const navbarConfig = navbar([
export default navbar([
{ text: "面试指南", icon: "java", link: "/home.md" },
{ text: "开源项目", icon: "github", link: "/open-source-project/" },
{ text: "技术书籍", icon: "book", link: "/books/" },
{ text: "程序人生", icon: "article", link: "/high-quality-technical-articles/" },
{
text: "程序人生",
icon: "article",
link: "/high-quality-technical-articles/",
},
{
text: "网站相关",
icon: "about",
Expand Down
223 changes: 0 additions & 223 deletions docs/.vuepress/public/iconfont/iconfont.css

This file was deleted.

Binary file removed docs/.vuepress/public/iconfont/iconfont.ttf
Binary file not shown.
Binary file removed docs/.vuepress/public/iconfont/iconfont.woff
Binary file not shown.
Binary file removed docs/.vuepress/public/iconfont/iconfont.woff2
Binary file not shown.
10 changes: 6 additions & 4 deletions docs/.vuepress/sidebar/about-the-author.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
export const aboutTheAuthor = [
import { arraySidebar } from "vuepress-theme-hope";

export const aboutTheAuthor = arraySidebar([
{
text: "个人经历",
icon: "zuozhe",
collapsable: false,
collapsible: false,
children: [
"internet-addiction-teenager",
"my-college-life",
Expand All @@ -14,12 +16,12 @@ export const aboutTheAuthor = [
{
text: "杂谈",
icon: "chat",
collapsable: false,
collapsible: false,
children: [
"writing-technology-blog-six-years",
"my-article-was-stolen-and-made-into-video-and-it-became-popular",
"dog-that-copies-other-people-essay",
"zhishixingqiu-two-years",
],
},
];
]);
6 changes: 4 additions & 2 deletions docs/.vuepress/sidebar/books.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export const books = [
import { arraySidebar } from "vuepress-theme-hope";

export const books = arraySidebar([
{
text: "计算机基础",
link: "cs-basics",
Expand Down Expand Up @@ -30,4 +32,4 @@ export const books = [
link: "distributed-system",
icon: "distributed-network",
},
];
]);
Loading