Удалить устаревшие файлы графа заметок: _pages/graph.md и _plugins/note_graph.rb

This commit is contained in:
ada
2025-08-22 17:32:16 +03:00
parent 69cca94f92
commit 9d296c8078
2 changed files with 0 additions and 73 deletions
-34
View File
@@ -1,34 +0,0 @@
---
layout: single
title: "Граф заметок"
permalink: /graph/
---
<div id="graph" style="height:70vh"></div>
<script src="https://unpkg.com/force-graph"></script>
<script>
fetch('{{ "/assets/js/graph-data.json" | relative_url }}')
.then(r => r.json())
.then(data => {
const el = document.getElementById('graph');
const Graph = ForceGraph()(el)
.graphData(data)
.nodeId('id')
.nodeLabel(n => n.title)
.nodeAutoColorBy('group')
.backgroundColor(getComputedStyle(document.body).backgroundColor || '#111')
.linkColor(() => 'rgba(173,216,230,0.6)')
.linkDirectionalParticles(2)
.linkDirectionalParticleSpeed(0.004)
.onNodeClick(n => window.location = n.url);
// чуть уменьшить размеры узлов/шрифтов для тёмной темы
Graph.nodeRelSize(6);
});
</script>
<style>
#note-graph { height: 70vh; min-height: 420px; }
</style>
<div id="note-graph"></div>