@farming-labs/next 0.1.111 → 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/config.mjs CHANGED
@@ -924,9 +924,9 @@ function normalizeRouteSegment(value, fallback = "docs") {
924
924
  }
925
925
  function normalizeDocsPath(value, entry) {
926
926
  if (typeof value !== "string") return `/${normalizeRouteSegment(entry)}`;
927
- const cleaned = value.trim();
928
- if (cleaned === "" || cleaned === "/") return "";
929
- return `/${cleaned.replace(/^\/+|\/+$/g, "")}`;
927
+ const cleaned = value.trim().replace(/^\/+|\/+$/g, "").replace(/\/+/g, "/");
928
+ if (cleaned === "") return "";
929
+ return `/${cleaned}`;
930
930
  }
931
931
  function docsRootSource(entry) {
932
932
  return [
@@ -9,9 +9,9 @@ function normalizeSegment(value, fallback) {
9
9
  }
10
10
  function normalizeDocsPath(value, entry) {
11
11
  if (typeof value !== "string") return `/${entry}`;
12
- const cleaned = value.trim();
13
- if (cleaned === "" || cleaned === "/") return "";
14
- return `/${cleaned.replace(/^\/+|\/+$/g, "")}`;
12
+ const cleaned = value.trim().replace(/^\/+|\/+$/g, "").replace(/\/+/g, "/");
13
+ if (cleaned === "") return "";
14
+ return `/${cleaned}`;
15
15
  }
16
16
  function joinDocsPath(docsPath, slug) {
17
17
  if (!slug) return docsPath || "/";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/next",
3
- "version": "0.1.111",
3
+ "version": "0.1.112",
4
4
  "description": "Next.js adapter for @farming-labs/docs — MDX config wrapper",
5
5
  "keywords": [
6
6
  "docs",
@@ -100,8 +100,8 @@
100
100
  "tsdown": "^0.20.3",
101
101
  "typescript": "^5.9.3",
102
102
  "vitest": "^3.2.4",
103
- "@farming-labs/docs": "0.1.111",
104
- "@farming-labs/theme": "0.1.111"
103
+ "@farming-labs/docs": "0.1.112",
104
+ "@farming-labs/theme": "0.1.112"
105
105
  },
106
106
  "peerDependencies": {
107
107
  "@farming-labs/docs": ">=0.0.1",