From e98c1b629792691259c253a488ef65bc1d914440 Mon Sep 17 00:00:00 2001 From: Safi Date: Sun, 5 Apr 2026 14:22:42 +0100 Subject: [PATCH] fix: HTML always generated by default in Step 6, not flag-gated --- graphify/skill.md | 10 +++++----- skills/graphify/skill.md | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/graphify/skill.md b/graphify/skill.md index 61ca3a5ba..7e7c62fdc 100644 --- a/graphify/skill.md +++ b/graphify/skill.md @@ -17,7 +17,7 @@ Turn any folder of files into a navigable knowledge graph with community detecti /graphify --update # incremental - re-extract only new/changed files /graphify --cluster-only # rerun clustering on existing graph /graphify --no-viz # skip visualization, just report + JSON -/graphify --html # also export graph.html (interactive vis.js, browser-based) +/graphify --html # (HTML is generated by default - this flag is a no-op) /graphify --svg # also export graph.svg (embeds in Notion, GitHub) /graphify --graphml # export graph.graphml (Gephi, yEd) /graphify --neo4j # generate graphify-out/cypher.txt for Neo4j @@ -416,13 +416,13 @@ print(' _COMMUNITY_* - overview notes with cohesion scores and dataview queries " ``` -**Only if `--html` flag was passed**, also generate : +Also generate the HTML graph (always, unless `--no-viz`): ```bash python3 -c " import sys, json from graphify.build import build_from_json -from graphify.export import generate_html +from graphify.export import to_html from pathlib import Path extraction = json.loads(Path('.graphify_extract.json').read_text()) @@ -436,8 +436,8 @@ labels = {int(k): v for k, v in labels_raw.items()} if G.number_of_nodes() > 5000: print(f'Graph has {G.number_of_nodes()} nodes - too large for HTML viz. Use Obsidian vault instead.') else: - generate_html(G, communities, 'graphify-out/graph.html', community_labels=labels or None) - print('graph.html written') + to_html(G, communities, 'graphify-out/graph.html', community_labels=labels or None) + print('graph.html written - open in any browser, no server needed') " ``` diff --git a/skills/graphify/skill.md b/skills/graphify/skill.md index 61ca3a5ba..7e7c62fdc 100644 --- a/skills/graphify/skill.md +++ b/skills/graphify/skill.md @@ -17,7 +17,7 @@ Turn any folder of files into a navigable knowledge graph with community detecti /graphify --update # incremental - re-extract only new/changed files /graphify --cluster-only # rerun clustering on existing graph /graphify --no-viz # skip visualization, just report + JSON -/graphify --html # also export graph.html (interactive vis.js, browser-based) +/graphify --html # (HTML is generated by default - this flag is a no-op) /graphify --svg # also export graph.svg (embeds in Notion, GitHub) /graphify --graphml # export graph.graphml (Gephi, yEd) /graphify --neo4j # generate graphify-out/cypher.txt for Neo4j @@ -416,13 +416,13 @@ print(' _COMMUNITY_* - overview notes with cohesion scores and dataview queries " ``` -**Only if `--html` flag was passed**, also generate : +Also generate the HTML graph (always, unless `--no-viz`): ```bash python3 -c " import sys, json from graphify.build import build_from_json -from graphify.export import generate_html +from graphify.export import to_html from pathlib import Path extraction = json.loads(Path('.graphify_extract.json').read_text()) @@ -436,8 +436,8 @@ labels = {int(k): v for k, v in labels_raw.items()} if G.number_of_nodes() > 5000: print(f'Graph has {G.number_of_nodes()} nodes - too large for HTML viz. Use Obsidian vault instead.') else: - generate_html(G, communities, 'graphify-out/graph.html', community_labels=labels or None) - print('graph.html written') + to_html(G, communities, 'graphify-out/graph.html', community_labels=labels or None) + print('graph.html written - open in any browser, no server needed') " ```