@vuepress/core 2.0.0-beta.63 → 2.0.0-beta.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +8 -6
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -92,11 +92,6 @@ var resolvePageRouteItem = ({
92
92
  }) => {
93
93
  const redirectsSet = /* @__PURE__ */ new Set();
94
94
  redirectsSet.add(decodeURI(path9));
95
- if (path9.endsWith("/")) {
96
- redirectsSet.add(path9 + "index.html");
97
- } else {
98
- redirectsSet.add(path9.replace(/.html$/, ""));
99
- }
100
95
  if (pathInferred !== null) {
101
96
  redirectsSet.add(pathInferred);
102
97
  redirectsSet.add(encodeURI(pathInferred));
@@ -107,7 +102,14 @@ var resolvePageRouteItem = ({
107
102
  redirectsSet.add(encodeURI(filenamePath));
108
103
  }
109
104
  redirectsSet.delete(path9);
110
- return [key, path9, routeMeta, [...redirectsSet]];
105
+ return [
106
+ key,
107
+ path9,
108
+ routeMeta,
109
+ [...redirectsSet].map(
110
+ (item) => item.replace(/\.md$/, ".html") === path9 ? ":md" : item
111
+ )
112
+ ];
111
113
  };
112
114
  var preparePagesRoutes = async (app) => {
113
115
  const routeItems = app.pages.map(resolvePageRouteItem);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/core",
3
- "version": "2.0.0-beta.63",
3
+ "version": "2.0.0-beta.65",
4
4
  "description": "Core package of VuePress",
5
5
  "keywords": [
6
6
  "vuepress",
@@ -28,10 +28,10 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "vue": "^3.3.4",
31
- "@vuepress/client": "2.0.0-beta.63",
32
- "@vuepress/markdown": "2.0.0-beta.63",
33
- "@vuepress/shared": "2.0.0-beta.63",
34
- "@vuepress/utils": "2.0.0-beta.63"
31
+ "@vuepress/client": "2.0.0-beta.65",
32
+ "@vuepress/markdown": "2.0.0-beta.65",
33
+ "@vuepress/utils": "2.0.0-beta.65",
34
+ "@vuepress/shared": "2.0.0-beta.65"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"