From 3ca090278b8c6cc412fbf5e9a4554b6e08152066 Mon Sep 17 00:00:00 2001
From: Romain Deville <code@romaindeville.fr>
Date: Sat, 8 May 2021 10:49:53 +0200
Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Update=20external=5Fnav=20managemen?=
 =?UTF-8?q?t=20in=20plugins.py?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 templates/docs/_data/plugins.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/templates/docs/_data/plugins.py b/templates/docs/_data/plugins.py
index 223f303..873c622 100644
--- a/templates/docs/_data/plugins.py
+++ b/templates/docs/_data/plugins.py
@@ -153,6 +153,10 @@ def add_external_to_nav(
                         repo_parent,
                         nav_parent[1:],
                     )
+    elif repo_dict["online_url"].startswith('/'):
+        nav.append({
+            repo_dict["nav_entry"]: repo_dict["online_url"].replace('/','../',1)
+        })
     else:
         nav.append({repo_dict["nav_entry"]: repo_dict["online_url"]})
 
-- 
GitLab