Skip to content

Commit 1742c14

Browse files
committed
[docs feat]允许网站复制
1 parent 4f89499 commit 1742c14

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

docs/.vuepress/theme.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,14 @@ export default hopeTheme({
5151

5252
plugins: {
5353
blog: true,
54-
copyright: true,
54+
copyright: {
55+
author: "JavaGuide(javaguide.cn)",
56+
license: "MIT",
57+
triggerLength: 100,
58+
maxLength: 700,
59+
canonical: "https://javaguide.cn/",
60+
global:true
61+
},
5562
mdEnhance: {
5663
align: true,
5764
codetabs: true,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"packageManager": "pnpm@8.6.0",
2323
"dependencies": {
2424
"@vuepress/client": "2.0.0-beta.67",
25+
"@vuepress/plugin-search": "2.0.0-beta.67",
2526
"@vuepress/utils": "2.0.0-beta.67",
2627
"husky": "8.0.3",
2728
"markdownlint-cli": "0.34.0",
@@ -30,7 +31,6 @@
3031
"prettier": "2.8.8",
3132
"vue": "3.3.4",
3233
"vuepress": "2.0.0-beta.67",
33-
"@vuepress/plugin-search": "2.0.0-beta.67",
3434
"vuepress-theme-hope": "2.0.0-beta.236"
3535
}
3636
}

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)