From ca84da5b31fa00ca6c729a9b500efeb28f90b41b Mon Sep 17 00:00:00 2001
From: Nikola Georgiev <42315052+nikolageorgiev2000@users.noreply.github.com>
Date: Mon, 12 Sep 2022 00:05:14 +0000
Subject: [PATCH] feat: Hide full path to file in Wikilinks by default (#195)

---
 data/graphConfig.yaml |   46 ++++++++++++++++++++++++++++++++++++----------
 1 files changed, 36 insertions(+), 10 deletions(-)

diff --git a/data/graphConfig.yaml b/data/graphConfig.yaml
index 67f481b..a6f916a 100644
--- a/data/graphConfig.yaml
+++ b/data/graphConfig.yaml
@@ -1,11 +1,37 @@
-enableLegend: false
-enableDrag: true
-enableZoom: true
-base:
-  node: "#284b63"
-  activeNode: "#f28482"
-  inactiveNode: "#a8b3bd"
-  link: "#babdbf"
-  activeLink: "#5a7282"
+# if true, a Global Graph will be shown on home page with full width, no backlink.
+# A different set of Local Graphs will be shown on sub pages.
+# if false, Local Graph will be default on every page as usual
+enableGlobalGraph: false
+
+### Local Graph ###
+
+localGraph:
+    enableLegend: false
+    enableDrag: true
+    enableZoom: true
+    depth: 1 # set to -1 to show full graph
+    scale: 1.2
+    repelForce: 2
+    centerForce: 1
+    linkDistance: 1
+    fontSize: 0.6
+    opacityScale: 3
+
+### Global Graph ###
+
+globalGraph:
+    enableLegend: false
+    enableDrag: true
+    enableZoom: true
+    depth: -1 # set to -1 to show full graph
+    scale: 1.4
+    repelForce: 1
+    centerForce: 1
+    linkDistance: 1
+    fontSize: 0.5
+    opacityScale: 3
+
+### For all graphs ###
+
 paths:
-  - /moc: "#4388cc"
\ No newline at end of file
+  - /moc: "#4388cc"

--
Gitblit v1.10.0