Skip to content

Commit 93fb4d3

Browse files
committed
feat: adjust javadoc shortcode for external pi4j repo
1 parent c0f83cc commit 93fb4d3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ url = "https://www.fhnw.ch/en/"
4545
[params]
4646
repoURL = "https://github.com/Pi4J/pi4j-example-crowpi"
4747
codeURL = "https://github.com/Pi4J/pi4j-example-crowpi/blob/main/"
48+
docsURL = "https://pi4j.com/pi4j-example-crowpi/"
4849
editURL = "https://github.com/FHNW-IP5-IP6/CrowPiGoesJavaTutorial/edit/main/content/german/"
4950
author = "Pascal Mathis, Tobias Siegrist"
5051
description = "CrowPi goes Java: An easy introduction to electronics programming"

layouts/shortcodes/javadoc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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">

0 commit comments

Comments
 (0)