Skip to content

Commit

Permalink
Replace relative documentation links with absolute ones pointing to t…
Browse files Browse the repository at this point in the history
…he external documentation (#2180)

Co-authored-by: CaCO3 <caco@ruinelli.ch>
  • Loading branch information
caco3 and CaCO3 committed Mar 13, 2023
1 parent e81a7ee commit 933215c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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\">")

Expand Down

0 comments on commit 933215c

Please sign in to comment.