File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ url = "https://www.fhnw.ch/en/"
4545[params ]
4646repoURL = " https://github.com/Pi4J/pi4j-example-crowpi"
4747codeURL = " https://github.com/Pi4J/pi4j-example-crowpi/blob/main/"
48+ docsURL = " https://pi4j.com/pi4j-example-crowpi/"
4849editURL = " https://github.com/FHNW-IP5-IP6/CrowPiGoesJavaTutorial/edit/main/content/german/"
4950author = " Pascal Mathis, Tobias Siegrist"
5051description = " CrowPi goes Java: An easy introduction to electronics programming"
Original file line number Diff line number Diff line change 22{{ $class := .Get "class" }}
33{{ $subclass := .Get "subclass" | default "" }}
44{{ $classURL := print (replace $class "." "/") (cond (not (eq $subclass "")) (print "." $subclass) "") ".html" }}
5- {{ $docsURL := relURL (print "/apidocs/" $module "/" $ classURL) }}
5+ {{ $docsURL := printf "%s/%s/%s" (strings.TrimSuffix "/" .Site.Params.docsURL) $module $ classURL }}
66
77{{ (print "```" $class "```") | markdownify }}
88< a href ="{{ $docsURL }} " target ="_blank " class ="btn btn-default btn-small ">
You can’t perform that action at this time.
0 commit comments