@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.
- package/.docu/lib/fs-scanner.ts +2 -2
- package/package.json +1 -1
package/.docu/lib/fs-scanner.ts
CHANGED
|
@@ -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 =
|
|
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 =
|
|
119
|
+
const dirHref = `/${segment}`;
|
|
120
120
|
|
|
121
121
|
const children = fileNodesToRoutes(node.children || [], dirHref);
|
|
122
122
|
|