mirror of
https://github.com/safishamsi/graphify.git
synced 2026-09-28 08:25:48 +00:00
fix: HTML always generated by default in Step 6, not flag-gated
This commit is contained in:
+5
-5
@@ -17,7 +17,7 @@ Turn any folder of files into a navigable knowledge graph with community detecti
|
||||
/graphify <path> --update # incremental - re-extract only new/changed files
|
||||
/graphify <path> --cluster-only # rerun clustering on existing graph
|
||||
/graphify <path> --no-viz # skip visualization, just report + JSON
|
||||
/graphify <path> --html # also export graph.html (interactive vis.js, browser-based)
|
||||
/graphify <path> --html # (HTML is generated by default - this flag is a no-op)
|
||||
/graphify <path> --svg # also export graph.svg (embeds in Notion, GitHub)
|
||||
/graphify <path> --graphml # export graph.graphml (Gephi, yEd)
|
||||
/graphify <path> --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')
|
||||
"
|
||||
```
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ Turn any folder of files into a navigable knowledge graph with community detecti
|
||||
/graphify <path> --update # incremental - re-extract only new/changed files
|
||||
/graphify <path> --cluster-only # rerun clustering on existing graph
|
||||
/graphify <path> --no-viz # skip visualization, just report + JSON
|
||||
/graphify <path> --html # also export graph.html (interactive vis.js, browser-based)
|
||||
/graphify <path> --html # (HTML is generated by default - this flag is a no-op)
|
||||
/graphify <path> --svg # also export graph.svg (embeds in Notion, GitHub)
|
||||
/graphify <path> --graphml # export graph.graphml (Gephi, yEd)
|
||||
/graphify <path> --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')
|
||||
"
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user