@marlinjai/clearify 1.14.0 → 1.14.2
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.
|
@@ -281,7 +281,7 @@ ${hasInternal ? `
|
|
|
281
281
|
npx clearify build Build for production
|
|
282
282
|
`);
|
|
283
283
|
if (options.hub) {
|
|
284
|
-
const { registerWithHub } = await import("./hub-register-
|
|
284
|
+
const { registerWithHub } = await import("./hub-register-NTB26MZU.js");
|
|
285
285
|
await registerWithHub({ projectName: detectProjectName() });
|
|
286
286
|
} else {
|
|
287
287
|
const { createInterface } = await import("readline");
|
|
@@ -291,7 +291,7 @@ ${hasInternal ? `
|
|
|
291
291
|
});
|
|
292
292
|
rl.close();
|
|
293
293
|
if (answer.toLowerCase() === "y") {
|
|
294
|
-
const { registerWithHub } = await import("./hub-register-
|
|
294
|
+
const { registerWithHub } = await import("./hub-register-NTB26MZU.js");
|
|
295
295
|
await registerWithHub({ projectName: detectProjectName() });
|
|
296
296
|
}
|
|
297
297
|
}
|
|
@@ -225,7 +225,7 @@ jobs:
|
|
|
225
225
|
steps:
|
|
226
226
|
- name: Trigger hub rebuild
|
|
227
227
|
run: |
|
|
228
|
-
curl -X POST \\
|
|
228
|
+
curl --fail-with-body -X POST \\
|
|
229
229
|
-H "Authorization: token \${{ secrets.HUB_DISPATCH_TOKEN }}" \\
|
|
230
230
|
-H "Accept: application/vnd.github.v3+json" \\
|
|
231
231
|
https://api.github.com/repos/${hub.owner}/${hub.repo}/dispatches \\
|
package/dist/node/node/index.js
CHANGED
package/dist/node/node/init.js
CHANGED
package/package.json
CHANGED
package/src/theme/NotFound.tsx
CHANGED
|
@@ -23,7 +23,7 @@ function findSimilarRoutes(currentPath: string, maxResults = 5) {
|
|
|
23
23
|
const normalizedCurrent = currentPath.toLowerCase().replace(/\/+$/, '') || '/';
|
|
24
24
|
|
|
25
25
|
const scored = routes
|
|
26
|
-
.filter((r) => r.path !== normalizedCurrent)
|
|
26
|
+
.filter((r) => r.path !== normalizedCurrent && !r.redirectTo)
|
|
27
27
|
.map((r) => {
|
|
28
28
|
const normalizedRoute = r.path.toLowerCase().replace(/\/+$/, '') || '/';
|
|
29
29
|
const distance = levenshtein(normalizedCurrent, normalizedRoute);
|
|
@@ -41,8 +41,8 @@ function findSimilarRoutes(currentPath: string, maxResults = 5) {
|
|
|
41
41
|
return scored;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
function formatTitle(route: { path: string; frontmatter
|
|
45
|
-
if (route.frontmatter
|
|
44
|
+
function formatTitle(route: { path: string; frontmatter?: { title?: string } }): string {
|
|
45
|
+
if (route.frontmatter?.title) return route.frontmatter.title;
|
|
46
46
|
// Derive a title from the path
|
|
47
47
|
const segments = route.path.split('/').filter(Boolean);
|
|
48
48
|
if (segments.length === 0) return 'Home';
|