Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenSino committed Mar 22, 2024
1 parent fe7dbda commit 675d699
Show file tree
Hide file tree
Showing 5 changed files with 376 additions and 71 deletions.
9 changes: 1 addition & 8 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { defineUserConfig } from "vuepress";
import theme from "./theme";
import { searchPlugin } from "@vuepress/plugin-search";
import { viteBundler } from '@vuepress/bundler-vite'

export default defineUserConfig({
Expand All @@ -10,13 +9,7 @@ export default defineUserConfig({
base: "/",
theme,
plugins: [
searchPlugin({
// 你的选项
}),
// componentsPlugin({
// components: ["CodePen","Badge","FontIcon"],
// backToTop: true
// }),

],
bundler: viteBundler({
viteOptions: {},
Expand Down
52 changes: 26 additions & 26 deletions docs/.vuepress/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,28 @@ export default sidebar({
text: "Java 基础",
icon: "discover",
prefix: "base/",
collapsable: true,
collapsible: true,
children: "structure",
},
{
text: "Java 进阶",
icon: "blog",
prefix: "advance/",
collapsable: true,
collapsible: true,
children: "structure",
},
{
text: "Java 虚拟机",
icon: "write",
prefix: "jvm/",
collapsable: true,
collapsible: true,
children: "structure",
},
{
text: "Java框架",
icon: "write",
prefix: "framework/",
collapsable: true,
collapsible: true,
children: "structure",
},
],
Expand All @@ -37,21 +37,21 @@ export default sidebar({
text: "Maven",
icon: "discover",
prefix: "maven/",
collapsable: true,
collapsible: true,
children: "structure",
},
{
text: "Gradle",
icon: "discover",
prefix: "gradle/",
collapsable: true,
collapsible: true,
children: "structure",
},
{
text: "Java问题定位",
icon: "java",
prefix: "locateproblem/",
collapsable: true,
collapsible: true,
children: "structure",
},
],
Expand All @@ -60,35 +60,35 @@ export default sidebar({
text: "Vue",
icon: "vue",
prefix: "vue/",
collapsable: true,
collapsible: true,
children: "structure",
},
{
text: "Vite",
icon: "vue",
prefix: "vite/",
collapsable: true,
collapsible: true,
children: [],
},
{
text: "ECMAScript 5",
icon: "write",
prefix: "es5/",
collapsable: true,
collapsible: true,
children: "structure",
},
{
text: "ECMAScript 6",
icon: "blog",
prefix: "es6/",
collapsable: true,
collapsible: true,
children: "structure",
},
{
text: "TypeScript",
icon: "typescript",
prefix: "typeScript/",
collapsable: true,
collapsible: true,
children: "structure",
},
],
Expand All @@ -98,7 +98,7 @@ export default sidebar({
text: "java设计模式",
icon: "java",
prefix: "",
collapsable: true,
collapsible: true,
children: "structure",
},
],
Expand All @@ -107,14 +107,14 @@ export default sidebar({
text: "基础语法学习",
icon: "app",
prefix: "study/",
collapsable: true,
collapsible: true,
children: "structure",
},
{
text: "其他",
icon: "app",
prefix: "other/",
collapsable: true,
collapsible: true,
children: "structure",
},
],
Expand All @@ -123,77 +123,77 @@ export default sidebar({
text: "Git",
icon: "git",
prefix: "git/",
collapsable: true,
collapsible: true,
children: "structure",
},
{
text: "Linux",
icon: "linux",
prefix: "linux/",
collapsable: true,
collapsible: true,
children: "structure",
},
{
text: "数据库",
icon: "repo",
prefix: "database/",
collapsable: true,
collapsible: true,
children: "structure",
},
{
text: "MarkDown",
icon: "markdown",
prefix: "markdown/",
collapsable: true,
collapsible: true,
children: "structure",
},
{
text: "工具软件",
icon: "software",
prefix: "tools/",
collapsable: true,
collapsible: true,
children: "structure",
},
{
text: "小组分享",
icon: "share",
prefix: "training/",
collapsable: true,
collapsible: true,
children: "structure",
},
{
text: "随笔分享",
icon: "share",
prefix: "essay/",
collapsable: true,
collapsible: true,
children: "structure",
},
{
text: "web",
icon: "share",
prefix: "web/",
collapsable: true,
collapsible: true,
children: "structure",
},
{
text: "分布式微服务",
icon: "share",
prefix: "distributeservice/",
collapsable: true,
collapsible: true,
children: "structure",
},
{
text: "OAuth2.0",
icon: "share",
prefix: "oauth2/",
collapsable: true,
collapsible: true,
children: "structure",
},
{
text: "Docker",
icon: "ubuntu",
prefix: "docker/",
collapsable: true,
collapsible: true,
children: "structure",
},
],
Expand Down
47 changes: 12 additions & 35 deletions docs/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,18 @@ export default hopeTheme({
},
},
plugins: {
search:{
locales: {
'/': {
placeholder: 'Search',
},
'/zh/': {
placeholder: '搜索',
},
},
},
blog: {
autoExcerpt: true,

},
// 如果你不需要评论,可以直接删除 comment 配置,
// 以下配置仅供体验,如果你需要评论,请自行配置并使用自己的环境,详见文档。
Expand All @@ -77,45 +87,12 @@ export default hopeTheme({
repoId: "R_kgDOHwOlTQ",
category: "Announcements",
categoryId: "DIC_kwDOHwOlTc4CQkSn",

/**
* Using Twikoo
*/
// provider: "Twikoo",
// envId: "https://twikoo.ccknbc.vercel.app",

/**
* Using Waline
*/
// provider: "Waline",
// serverURL: "https://vuepress-theme-hope-comment.vercel.app",
},
photoSwipe: {

},
mdEnhance: {
enableAll: true,
// tabs: true,
// chart: true,
// echarts: true,
// mermaid: true,
// codetabs: true,
// demo: true,
// tasklist: true,
// // 启用图片标记
// imageMark: true,
// // 启用图片大小
// imageSize: true,
// //幻灯片
// presentation: {
// plugins: ["highlight", "math", "search", "notes", "zoom"],
// },
// //语法高亮
// mark: true,
// //流程图
// flowchart: true,
// //自定义容器
// container: true

},
},
});
Loading

0 comments on commit 675d699

Please sign in to comment.