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
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
## 锁定版本
engine-strict = true
shamefully-hoist=true
registry=https://registry.npmmirror.com
4 changes: 2 additions & 2 deletions docs/.vuepress/theme/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { sidebar } from 'vuepress-theme-hope'
import { ServerEndSidebar } from '../../server-end/server-end.sidebar'
import { EggSidebar } from '../../server-end/framework/egg/eggSidebar'
import { DevelopSkillSidebar } from '../../develop-skill/develop-skill.sidebar'
// import {soloAlgorithmSidebar} from "../../solo-algorithm/solo-algorithm.sidebar";
import { soloAlgorithmSidebar } from '../../solo-algorithm/solo-algorithm.sidebar'
import { JobChanceSidebar } from '../../job-chance/job-chance.sidebar'
import { ReadBooksSidebar } from '../../read-books/read-books.sidebar'
import { MicroserviceSidebar } from '../../microservice/microserviceSidebar'
Expand Down Expand Up @@ -41,7 +41,7 @@ export default sidebar({
'/server-end/orm/sequelize': SequelizeOrmSidebar,
'/server-end/orm/typeorm': TypeormSidebar,
'/develop-skill': DevelopSkillSidebar,
// "/solo-algorithm": soloAlgorithmSidebar,
'/solo-algorithm': soloAlgorithmSidebar,
'/read-books': ReadBooksSidebar,
'/job-chance': JobChanceSidebar,
'/microservice': MicroserviceSidebar,
Expand Down
58 changes: 49 additions & 9 deletions docs/.vuepress/theme/theme.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { hopeTheme } from 'vuepress-theme-hope'
import { markdownImagePlugin } from '@vuepress/plugin-markdown-image'
import { AUTHOR_INFO, COPYRIGHT, FOOTER_HTML_INFO } from './constant'
import { i18n, searchProCNLocals } from './i18n'
import navbar from './navbar'
Expand Down Expand Up @@ -74,19 +75,23 @@ export const themeConfig = {
copyright: false,
// 开启博客功能
blog: false,
// 代码块
mdEnhance: {
// card:true,
codetabs: true,
tasklist: true, // 支持任务列表
// 图片增强,参考:https://ecosystem.vuejs.press/zh/plugins/markdown/markdown-image.html
markdownImage: markdownImagePlugin({
// 启用 figure
figure: true,
// 启用图片懒加载
imgLazyload: true,
lazyload: true,
// 启用图片标记
imgMark: true,
mark: true,
// 启用图片大小
imgSize: true,
size: true,
}),
// 代码块
mdEnhance: {
// card:true,
codetabs: true,
// 支持任务列表
tasklist: true,
playground: {
presets: ['ts', 'vue'],
},
Expand Down Expand Up @@ -168,13 +173,48 @@ export const themeConfig = {
},
// 代码高亮:https://theme-hope.vuejs.press/zh/guide/feature/code-block.html
shiki: {
langs: ['ts', 'js', 'json', 'vue', 'json5', 'bash', 'diff', 'c', 'c++', 'dockerfile', 'nginx', 'proto'],
langs: ['ts', 'js', 'json', 'vue', 'json5', 'bash', 'diff', 'c', 'c++', 'dockerfile', 'nginx', 'proto', 'java', 'javascript', 'typescript'],
// 你想要使用的主题
themes: {
light: 'one-light',
dark: 'one-dark-pro',
},
},
// shiki: shikiPlugin({
// // 配置项
// langs: [
// 'java',
// 'javascript',
// 'typescript',
// 'html',
// 'css',
// 'json',
// 'yaml',
// 'markdown',
// 'xml',
// 'bat',
// 'shell',
// 'powershell',
// 'sql',
// 'properties',
// 'md',
// 'vue',
// 'tsx',
// 'jsx',
// 'scss',
// 'less',
// 'sass',
// 'vue-html',
// 'nginx',
// 'tex',
// ],
// themes: {
// // light: 'one-light',
// // dark: 'one-dark-pro',
// dark: 'dark-plus',
// light: 'light-plus',
// },
// }),
},
}),
}
19 changes: 9 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,40 +21,39 @@
"dev": "vuepress dev docs",
"lint": "npx fa lint",
"lint:fix": "npx fa lint --fix",
"build": "vuepress build docs --clean-temp --clean-cache",
"build": "npx vuepress build docs --clean-temp --clean-cache",
"build:proxy": "PROXY_DOMAIN=true vuepress build docs --clean-temp --clean-cache",
"deploy:vercel": "vercel --prod",
"release": "npx fa release --vip"
},
"devDependencies": {
"@142vip/fairy-cli": "^0.0.3-alpha.11",
"@142vip/release-version": "^0.0.1-alpha.9",
"@142vip/utils": "^0.0.1-alpha.4",
"@142vip/utils": "0.0.1-alpha.4",
"@antfu/eslint-config": "^2.27.3",
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.3",
"@vue/repl": "^4.3.1",
"@vuepress/bundler-vite": "2.0.0-rc.14",
"@vuepress/bundler-vite": "2.0.0-rc.15",
"@vuepress/plugin-markdown-image": "2.0.0-rc.30",
"dashjs": "^4.7.4",
"enquirer": "^2.4.1",
"eslint": "^8.55.0",
"eslint": "8.55.0",
"eslint-plugin-format": "^0.1.2",
"hls.js": "^1.5.13",
"husky": "^8.0.3",
"lint-staged": "^15.2.7",
"markmap-cli": "^0.15.8",
"mermaid": "^10.9.1",
"reveal.js": "^5.1.0",
"sass-embedded": "^1.79.3",
"shelljs": "^0.8.5",
"typescript": "^5.5.4",
"vercel": "^32.7.2",
"vidstack": "^1.11.30",
"vue": "^3.4.34",
"vuepress": "2.0.0-rc.14",
"vuepress-plugin-components": "2.0.0-rc.52",
"vuepress-plugin-md-enhance": "2.0.0-rc.52",
"vuepress-plugin-search-pro": "2.0.0-rc.52",
"vuepress-theme-hope": "2.0.0-rc.52",
"vuepress": "2.0.0-rc.15",
"vuepress-plugin-search-pro": "2.0.0-rc.53",
"vuepress-theme-hope": "2.0.0-rc.53",
"webpack": "^5.93.0",
"xmind-embed-viewer": "^1.2.0"
}
Expand Down
Loading