Skip to content

Commit 442f165

Browse files
committed
Split hardware testing
1 parent a61da77 commit 442f165

4 files changed

Lines changed: 21 additions & 4 deletions

File tree

content/about/_index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@ only find info on Pi4J, but also **getting started examples** for basic Java Pi4
1515
applications, FXGL games, etc.
1616

1717
This is a true open-source project, meaning it **can only evolve, grow and improve by the support of the community**.
18-
Any idea, documentation improvement, bug fix... is greatly welcomed through the normal GitHub flow!
18+
Any idea, documentation improvement, bug fix... is greatly welcomed through the normal GitHub flow!
19+
20+
## Read More
21+
22+
{{% children depth="3" sort="date" order="desc" %}}

content/hardware-testing/_index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: Hardware Testing
3+
weight: 38
4+
tags: ["Pi4J OS"]
5+
aliases:
6+
- /architecture/about-the-code/hardware-testing/
7+
---
8+
9+
Testing hardware interactions can be tricky, especially when you want to automate tests or run them in environments where the actual hardware is not available. In this section, we will explore strategies and tools for testing Pi4J applications that interact with hardware components.
10+
11+
{{% children depth="3" sort="date" order="desc" %}}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Hardware Testing
3-
weight: 50
2+
title: Pi4J Smoke Test
3+
weight: 10
44
---
55

66
{{< github-readme "https://github.com/Pi4J/pi4j/blob/develop/pi4j-test/README.md" >}}

themes/hugo-theme-learn/layouts/shortcodes/github-readme.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
The content on this page was generated based on the content from <a href="{{ $url }}" target="_blank">{{ $url }}</a>.
1818
</p>
1919
</div>
20-
{{- .Content | markdownify -}}
20+
{{- $content := .Content -}}
21+
{{- $contentWithoutH1 := replaceRE "(?m)^#\\s+.+\\r?\\n?" "" $content 1 -}}
22+
{{- $contentWithoutH1 | markdownify -}}
2123
{{- else -}}
2224
{{- errorf "Unable to get remote resource %q" $rawURL -}}
2325
{{- end -}}

0 commit comments

Comments
 (0)