Commit e264e432f59f856d85865ab28fca0716251dfc18

Authored by ly525
1 parent b606cad1

docs: fix refresh /zh/ page, get 404 error

docs/.vuepress/config.js
@@ -126,6 +126,8 @@ module.exports = { @@ -126,6 +126,8 @@ module.exports = {
126 clientSecret: '08bbe2bf798d61f2814c8d4914c5fff145f4904e', 126 clientSecret: '08bbe2bf798d61f2814c8d4914c5fff145f4904e',
127 prefix: '[From Comment]', 127 prefix: '[From Comment]',
128 }, 128 },
  129 + // reference: https://github.com/vuejs/vuepress/issues/1435
  130 + 'dehydrate': {}
129 }, 131 },
130 // plugins: [ 132 // plugins: [
131 // [ 133 // [
docs/package.json
@@ -19,6 +19,7 @@ @@ -19,6 +19,7 @@
19 "markdown-it-task-lists": "^2.1.1", 19 "markdown-it-task-lists": "^2.1.1",
20 "vue-tabs-component": "^1.5.0", 20 "vue-tabs-component": "^1.5.0",
21 "vuepress": "^1.0.3", 21 "vuepress": "^1.0.3",
  22 + "vuepress-plugin-dehydrate": "^1.0.3",
22 "vuepress-tabs": "^0.1.6" 23 "vuepress-tabs": "^0.1.6"
23 }, 24 },
24 "devDependencies": { 25 "devDependencies": {
docs/yarn.lock
@@ -931,6 +931,21 @@ @@ -931,6 +931,21 @@
931 resolved "https://registry.npm.taobao.org/@vuepress/plugin-search/download/@vuepress/plugin-search-1.0.3.tgz#f8cd98380cc00db067fb243e4fd298c6b8b7179a" 931 resolved "https://registry.npm.taobao.org/@vuepress/plugin-search/download/@vuepress/plugin-search-1.0.3.tgz#f8cd98380cc00db067fb243e4fd298c6b8b7179a"
932 integrity sha1-+M2YOAzADbBn+yQ+T9KYxri3F5o= 932 integrity sha1-+M2YOAzADbBn+yQ+T9KYxri3F5o=
933 933
  934 +"@vuepress/shared-utils@^1.0.2":
  935 + version "1.2.0"
  936 + resolved "https://registry.npm.taobao.org/@vuepress/shared-utils/download/@vuepress/shared-utils-1.2.0.tgz#8d9ab40c24f75f027ef32c2ad0169f0f08e949fa"
  937 + integrity sha1-jZq0DCT3XwJ+8ywq0BafDwjpSfo=
  938 + dependencies:
  939 + chalk "^2.3.2"
  940 + diacritics "^1.3.0"
  941 + escape-html "^1.0.3"
  942 + fs-extra "^7.0.1"
  943 + globby "^9.2.0"
  944 + gray-matter "^4.0.1"
  945 + hash-sum "^1.0.2"
  946 + semver "^6.0.0"
  947 + upath "^1.1.0"
  948 +
934 "@vuepress/shared-utils@^1.0.3": 949 "@vuepress/shared-utils@^1.0.3":
935 version "1.0.3" 950 version "1.0.3"
936 resolved "https://registry.npm.taobao.org/@vuepress/shared-utils/download/@vuepress/shared-utils-1.0.3.tgz#224d2fc10fcf26d871eae8dd93b810616731123f" 951 resolved "https://registry.npm.taobao.org/@vuepress/shared-utils/download/@vuepress/shared-utils-1.0.3.tgz#224d2fc10fcf26d871eae8dd93b810616731123f"
@@ -7157,6 +7172,13 @@ vuepress-plugin-container@^2.0.0: @@ -7157,6 +7172,13 @@ vuepress-plugin-container@^2.0.0:
7157 dependencies: 7172 dependencies:
7158 markdown-it-container "^2.0.0" 7173 markdown-it-container "^2.0.0"
7159 7174
  7175 +vuepress-plugin-dehydrate@^1.0.3:
  7176 + version "1.0.3"
  7177 + resolved "https://registry.npm.taobao.org/vuepress-plugin-dehydrate/download/vuepress-plugin-dehydrate-1.0.3.tgz#75dafa70272e3bdd33401e732c98bc649c501b9c"
  7178 + integrity sha1-ddr6cCcuO90zQB5zLJi8ZJxQG5w=
  7179 + dependencies:
  7180 + "@vuepress/shared-utils" "^1.0.2"
  7181 +
7160 vuepress-tabs@^0.1.6: 7182 vuepress-tabs@^0.1.6:
7161 version "0.1.6" 7183 version "0.1.6"
7162 resolved "https://registry.npm.taobao.org/vuepress-tabs/download/vuepress-tabs-0.1.6.tgz#7908e406d0261763b43bf36c86df183c0db5bd56" 7184 resolved "https://registry.npm.taobao.org/vuepress-tabs/download/vuepress-tabs-0.1.6.tgz#7908e406d0261763b43bf36c86df183c0db5bd56"