Replace relative documentation links with absolute ones pointing to the external documentation (#2180)

Co-authored-by: CaCO3 <caco@ruinelli.ch>
This commit is contained in:
CaCO3
2023-03-13 21:45:34 +01:00
committed by GitHub
parent e81a7eebe8
commit 933215c116

View File

@@ -36,6 +36,9 @@ def generateHtmlTooltip(section, parameter, markdownFile):
# Make all links to be opened in a new page
htmlTooltip = htmlTooltip.replace("a href", "a target=_blank href")
# Replace relative documentation links with absolute ones pointing to the external documentation
htmlTooltip = htmlTooltip.replace("href=\"../", "href=\"https://jomjol.github.io/AI-on-the-edge-device-docs/")
# Add custom styles
htmlTooltip = htmlTooltip.replace("<h3>", "<h3 style=\"margin: 0\">")