@docubook/flame 1.0.0-beta.50 → 1.0.0-beta.60

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.
@@ -107,7 +107,7 @@ function fileNodesToRoutes(nodes: FileNode[], parentHref = ""): DocuRoute[] {
107
107
  if (isIndexFile) continue;
108
108
 
109
109
  const segment = node.relPath.split("/").pop()!;
110
- const href = parentHref ? `${parentHref}/${segment}` : `/${node.relPath}`;
110
+ const href = `/${segment}`;
111
111
 
112
112
  routes.push({
113
113
  title: toTitleCase(baseName),
@@ -116,7 +116,7 @@ function fileNodesToRoutes(nodes: FileNode[], parentHref = ""): DocuRoute[] {
116
116
  } else {
117
117
  const dirTitle = toTitleCase(node.name);
118
118
  const segment = node.relPath.split("/").pop()!;
119
- const dirHref = parentHref ? `${parentHref}/${segment}` : `/${node.relPath}`;
119
+ const dirHref = `/${segment}`;
120
120
 
121
121
  const children = fileNodesToRoutes(node.children || [], dirHref);
122
122
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docubook/flame",
3
- "version": "1.0.0-beta.50",
3
+ "version": "1.0.0-beta.60",
4
4
  "description": "A blazing-fast React + MDX framework powered by Bun, built for modern documentation experiences.",
5
5
  "type": "module",
6
6
  "bin": {