diff --git a/src/lib/templates.ts b/src/lib/templates.ts index d609644..0413cd6 100644 --- a/src/lib/templates.ts +++ b/src/lib/templates.ts @@ -229,19 +229,6 @@ function extractFrontmatterField(content, field) { return line.slice(field.length + 1).trim().replace(/^['"]|['"]$/g, "") || null; } -function parseLogEntries(wikiDir) { - const logPath = path.join(wikiDir, "log.md"); - if (!fs.existsSync(logPath)) return []; - const content = fs.readFileSync(logPath, "utf-8"); - const entries = []; - const re = /##\\s+\\[([^\\]]+)\\]\\s+([^|]+)\\|\\s*(.+)/g; - let match; - while ((match = re.exec(content)) !== null) { - entries.push({ time: match[1].trim(), type: match[2].trim(), message: match[3].trim() }); - } - return entries; -} - const wikiPrefix = WIKI_DIR.replace(/\\\\/g, "/").replace(/\\/$/, "") + "/"; function resolveLink(target, allFiles) { @@ -293,13 +280,12 @@ for (const file of files) { } } -const activity = parseLogEntries(WIKI_DIR); fs.mkdirSync(OUT_DIR, { recursive: true }); fs.writeFileSync( path.join(OUT_DIR, "graph.json"), - JSON.stringify({ nodes, edges, activity }, null, 2) + JSON.stringify({ nodes, edges }, null, 2) ); -console.log("Graph: " + nodes.length + " nodes, " + edges.length + " edges, " + activity.length + " log entries → dist/graph.json"); +console.log("Graph: " + nodes.length + " nodes, " + edges.length + " edges → dist/graph.json"); `; } @@ -650,10 +636,6 @@ const html = \` opacity: 0.65; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; } - .viz-activity { font-size: 0.74rem; line-height: 1.45; margin-bottom: 0.5rem; } - .viz-activity-item { padding: 0.2rem 0; border-bottom: 1px dashed rgba(92,61,46,0.15); } - .viz-activity-item .act-type { font-weight: 600; color: var(--wood); text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.04em; } - .viz-activity-item .act-time { opacity: 0.6; font-size: 0.68rem; } @@ -681,8 +663,6 @@ const html = \`
Sources — readings & inputs
Synthesis — cross-cutting views
Other — index, log, templates…
-

Recent Activity

-

Tip: click a node in the graph to open the full page in the reader column and spotlight its neighborhood. On small screens the reader stacks below the graph. Rebuild graph + site after edits. Click the same node again to clear.

@@ -1013,19 +993,6 @@ const html = \` }); applyFocusOpacity(); - - const feed = document.getElementById("activityFeed"); - if (feed && data.activity && data.activity.length) { - const recent = [...data.activity].reverse().slice(0, 8); - feed.innerHTML = DOMPurify.sanitize( - recent.map((a) => - '
' + - '' + a.type + ' ' + a.message + - '
' + a.time + '
' - ).join(""), - { USE_PROFILES: { html: true } } - ); - } \`;