diff --git a/codes/javaee/javaee-taglib/pom.xml b/codes/javaee/javaee-taglib/pom.xml index ab7de1e7..8fc2bab8 100644 --- a/codes/javaee/javaee-taglib/pom.xml +++ b/codes/javaee/javaee-taglib/pom.xml @@ -110,7 +110,7 @@ xerces xercesImpl - 2.11.0 + 2.12.1 diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 5d3766dc..8ed2745b 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -2,62 +2,147 @@ * @see https://vuepress.vuejs.org/zh/ */ module.exports = { - port: "4000", - dest: "dist", - base: "/java-tutorial/", - title: "JAVA-TUTORIAL", - description: "Java 教程", - head: [["link", {rel: "icon", href: `/favicon.ico`}]], + port: '4000', + dest: 'dist', + base: '/java-tutorial/', + title: 'JAVA-TUTORIAL', + description: 'Java 教程', + head: [['link', { rel: 'icon', href: `/favicon.ico` }]], markdown: { externalLinks: { - target: "_blank", rel: "noopener noreferrer" - } + target: '_blank', + rel: 'noopener noreferrer', + }, }, themeConfig: { - logo: "images/dunwu-logo-100.png", - repo: "dunwu/java-tutorial", - repoLabel: "Github", - docsDir: "docs", - docsBranch: "master", + logo: 'https://raw.githubusercontent.com/dunwu/images/dev/common/dunwu-logo-200.png', + repo: 'dunwu/java-tutorial', + repoLabel: 'Github', + docsDir: 'docs', + docsBranch: 'master', editLinks: true, smoothScroll: true, locales: { - "/": { - label: "简体中文", selectText: "Languages", editLinkText: "帮助我们改善此页面!", lastUpdated: "上次更新", nav: [{ - text: "工具", link: "/javatool/", items: [{ - text: "构建", link: "/javatool/build/" - }, { - text: "IDE", link: "/javatool/ide/" - }, { - text: "监控", link: "/javatool/monitor/" - }] - }, { - text: "JavaEE", link: "/javaee/" - }, { - text: "✨ Java系列", ariaLabel: "Java", items: [{ - text: "Java 教程 📚", link: "https://dunwu.github.io/java-tutorial/", target: "_blank", rel: "" - }, { - text: "JavaCore 教程 📚", link: "https://dunwu.github.io/javacore/", target: "_blank", rel: "" - }, { - text: "JavaTech 教程 📚", link: "https://dunwu.github.io/javatech/", target: "_blank", rel: "" - }, { - text: "Spring 教程 📚", link: "https://dunwu.github.io/spring-tutorial/", target: "_blank", rel: "" - }, { - text: "Spring Boot 教程 📚", link: "https://dunwu.github.io/spring-boot-tutorial/", target: "_blank", rel: "" - }] - }, { - text: "🎯 博客", link: "https://github.com/dunwu/blog", target: "_blank", rel: "" - }], sidebar: "auto", sidebarDepth: 2 - } - } + '/': { + label: '简体中文', + selectText: 'Languages', + editLinkText: '帮助我们改善此页面!', + lastUpdated: '上次更新', + nav: [ + { + text: '工具', + link: '/javatool/', + items: [ + { + text: '构建', + link: '/javatool/build/', + }, + { + text: 'IDE', + link: '/javatool/ide/', + }, + { + text: '监控', + link: '/javatool/monitor/', + }, + ], + }, + { + text: 'JavaEE', + link: '/javaee/', + }, + { + text: '✨ Java系列', + ariaLabel: 'Java', + items: [ + { + text: 'Java 教程 📚', + link: 'https://dunwu.github.io/java-tutorial/', + target: '_blank', + rel: '', + }, + { + text: 'JavaCore 教程 📚', + link: 'https://dunwu.github.io/javacore/', + target: '_blank', + rel: '', + }, + { + text: 'JavaTech 教程 📚', + link: 'https://dunwu.github.io/javatech/', + target: '_blank', + rel: '', + }, + { + text: 'Spring 教程 📚', + link: 'https://dunwu.github.io/spring-tutorial/', + target: '_blank', + rel: '', + }, + { + text: 'Spring Boot 教程 📚', + link: 'https://dunwu.github.io/spring-boot-tutorial/', + target: '_blank', + rel: '', + }, + ], + }, + { + text: '🎯 博客', + link: 'https://github.com/dunwu/blog', + target: '_blank', + rel: '', + }, + ], + sidebar: 'auto', + sidebarDepth: 2, + }, + }, }, - plugins: [["@vuepress/active-header-links", { - sidebarLinkSelector: ".sidebar-link", headerAnchorSelector: ".header-anchor" - }], ["@vuepress/back-to-top", true], ["@vuepress/pwa", { - serviceWorker: true, updatePopup: true - }], ["@vuepress/medium-zoom", true], ["container", { - type: "vue", before: '
', after: "
" - }], ["container", { - type: "upgrade", before: info => ``, after: "" - }], ["flowchart"]] -}; + plugins: [ + [ + '@vuepress/active-header-links', + { + sidebarLinkSelector: '.sidebar-link', + headerAnchorSelector: '.header-anchor', + }, + ], + ['@vuepress/back-to-top', true], + [ + '@vuepress/pwa', + { + serviceWorker: true, + updatePopup: true, + }, + ], + [ + '@vuepress/last-updated', + { + transformer: (timestamp, lang) => { + // 不要忘了安装 moment + const moment = require('moment') + moment.locale(lang) + return moment(timestamp).fromNow() + }, + }, + ], + ['@vuepress/medium-zoom', true], + [ + 'container', + { + type: 'vue', + before: '
',
+        after: '
', + }, + ], + [ + 'container', + { + type: 'upgrade', + before: (info) => ``, + after: '', + }, + ], + ['flowchart'], + ], +} diff --git a/docs/package.json b/docs/package.json index a5efdc14..fec8bc57 100644 --- a/docs/package.json +++ b/docs/package.json @@ -12,16 +12,19 @@ "view-info": "vuepress view-info ./ --temp .temp" }, "devDependencies": { - "@vuepress/plugin-active-header-links": "^1.5.2", - "@vuepress/plugin-back-to-top": "^1.5.0", - "@vuepress/plugin-medium-zoom": "^1.5.0", - "@vuepress/plugin-pwa": "^1.5.0", - "@vuepress/theme-vue": "^1.5.0", - "markdownlint-cli": "^0.23.1", + "@vuepress/plugin-active-header-links": "^1.8.2", + "@vuepress/plugin-back-to-top": "^1.8.2", + "@vuepress/plugin-medium-zoom": "^1.8.2", + "@vuepress/plugin-pwa": "^1.8.2", + "@vuepress/theme-vue": "^1.8.2", + "markdownlint-cli": "^0.25.0", "markdownlint-rule-emphasis-style": "^1.0.1", "rimraf": "^3.0.1", "vue-toasted": "^1.1.25", - "vuepress": "^1.5.0", + "vuepress": "^1.8.2", "vuepress-plugin-flowchart": "^1.4.2" + }, + "dependencies": { + "moment": "^2.29.1" } }