fix: update index.html and README.md

This commit is contained in:
yanglbme
2020-06-17 14:28:15 +08:00
parent d109c3e688
commit cb033cf05c
2 changed files with 8 additions and 4 deletions

View File

@@ -64,7 +64,7 @@
'/docs/high-concurrency/',
'/docs/distributed-system/',
'/docs/high-availability/',
'/docs/micor-services/',
'/docs/micro-services/',
'/docs/big-data/',
],
depth: 3
@@ -85,8 +85,12 @@
} else {
url = 'https://github.com/doocs/advanced-java/blob/master/' + vm.route.file
}
const edit = en ? 'Edit on GitHub' : ' GitHub 编辑'
const editHtml = `[:memo: ${edit}](${url})\n`
const github = `[GitHub](${url})`
const gitee = `[Gitee](${url.replace("github", "gitee")})`
const editHtml = en ? `:memo: ${github} / ${gitee} 编辑\n` : `:memo: Edit on ${github} / ${gitee}\n`;
if (vm.route.path == '/') {
return editHtml + content;
}