Skip to content

Commit e7ce9ba

Browse files
author
DavidQ
committed
Remove tool-card sample backlink logic from tools index renderer
- update `tools/renderToolsIndex.js` - eliminate sample backlink path entirely (not just filtering) - remove `sampleEntryPoints` merge from card-link construction - keep tool card links limited to tool docs (`How To Use`, `README`) - remove unused `toHostHref` helper to reduce renderer tech debt
1 parent 089a3bf commit e7ce9ba

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

tools/renderToolsIndex.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ function toStandaloneHref(entryPoint) {
66
return normalized ? `/tools/${normalized}` : "#";
77
}
88

9-
function toHostHref(toolId) {
10-
return `/tools/Workspace%20Manager/index.html?tool=${encodeURIComponent(toolId)}`;
11-
}
12-
139
function buildDocumentationLinks(tool) {
1410
const folder = String(tool.folderName || tool.path || "").trim();
1511
if (!folder) {
@@ -22,11 +18,9 @@ function buildDocumentationLinks(tool) {
2218
}
2319

2420
function buildCardLinks(tool) {
25-
const existing = Array.isArray(tool.sampleEntryPoints) ? tool.sampleEntryPoints : [];
2621
const docs = buildDocumentationLinks(tool);
27-
const merged = [...docs, ...existing];
2822
const seen = new Set();
29-
return merged.filter((entry) => {
23+
return docs.filter((entry) => {
3024
const label = String(entry?.label || "").trim();
3125
const path = String(entry?.path || "").trim();
3226
if (!label || !path) {

0 commit comments

Comments
 (0)