@farming-labs/theme 0.1.109 → 0.1.112

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.
package/dist/docs-api.mjs CHANGED
@@ -1019,9 +1019,9 @@ function resolveMarkdownRequest(entry, url, request) {
1019
1019
  }
1020
1020
  function normalizeDocsPublicPath(value, entry) {
1021
1021
  if (typeof value !== "string") return `/${normalizePathSegment(entry)}`;
1022
- const cleaned = value.trim();
1023
- if (cleaned === "" || cleaned === "/") return "";
1024
- return `/${cleaned.replace(/^\/+|\/+$/g, "")}`;
1022
+ const cleaned = value.trim().replace(/^\/+|\/+$/g, "").replace(/\/+/g, "/");
1023
+ if (cleaned === "") return "";
1024
+ return `/${cleaned}`;
1025
1025
  }
1026
1026
  function publicDocsRoute(publicPath, slugParts = []) {
1027
1027
  const slug = slugParts.join("/");
@@ -91,9 +91,9 @@ function resolveDocsLocaleContext(config, locale) {
91
91
  }
92
92
  function normalizeDocsPublicPath(value, entry) {
93
93
  if (typeof value !== "string") return `/${entry.replace(/^\/+|\/+$/g, "") || "docs"}`;
94
- const cleaned = value.trim();
95
- if (cleaned === "" || cleaned === "/") return "";
96
- return `/${cleaned.replace(/^\/+|\/+$/g, "")}`;
94
+ const cleaned = value.trim().replace(/^\/+|\/+$/g, "").replace(/\/+/g, "/");
95
+ if (cleaned === "") return "";
96
+ return `/${cleaned}`;
97
97
  }
98
98
  function publicDocsRoute(ctx, slugParts = []) {
99
99
  const slug = slugParts.join("/");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/theme",
3
- "version": "0.1.109",
3
+ "version": "0.1.112",
4
4
  "description": "Theme package for @farming-labs/docs — layout, provider, MDX components, and styles",
5
5
  "keywords": [
6
6
  "docs",
@@ -139,7 +139,7 @@
139
139
  "tsdown": "^0.20.3",
140
140
  "typescript": "^5.9.3",
141
141
  "vitest": "^3.2.4",
142
- "@farming-labs/docs": "0.1.109"
142
+ "@farming-labs/docs": "0.1.112"
143
143
  },
144
144
  "peerDependencies": {
145
145
  "@farming-labs/docs": ">=0.0.1",