Skip to content

Commit 473403c

Browse files
author
Frank Delporte
committed
Improve Kotlin docs
1 parent d0d0133 commit 473403c

6 files changed

Lines changed: 17 additions & 27 deletions

File tree

content/kotlin/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ One of the main similarities between Java and Kotlin is their ability to run on
1111

1212
### Kotlin DSL: Simplifying Development
1313

14-
Kotlin stands out from Java due to its Domain Specific Language (DSL) capabilities. The Pi4J-Kotlin library provides a set of DSLs that simplify the development process by providing cleaner, easier-to-read APIs. These DSLs are inlined at compile-time, eliminating any runtime overhead.
14+
Kotlin stands out from Java due to its Domain Specific Language (DSL) capabilities. The [Pi4J-Kotlin library](https://github.com/Pi4J/pi4j-kotlin/) is created by [Muhammad Hashim](https://www.linkedin.com/in/mhashim6/) and provides a set of DSLs that simplify the development process by providing cleaner, easier-to-read APIs. These DSLs are inlined at compile-time, eliminating any runtime overhead.
1515

1616
### Kotlin Examples
1717

18-
Thanks to the examples created by [Oleksandr Neiko](https://www.linkedin.com/in/alexander-neiko/), a full set of Pi4J + Kotlin examples are available.
18+
Thanks to the examples created by [Oleksandr Neiko](https://www.linkedin.com/in/alexander-neiko/), a full set of [Pi4J + Kotlin examples](/kotlin/kotlin-examples/) are available with a video and code examples on GitHub.
1919

2020
## Read More
2121

content/kotlin/kotlin-dsl/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Pi4J Kotlin DSL
33
description: "Pi4J Kotlin DSL & API Example & Documentation"
4-
weight: 45
4+
weight: 46
55
---
66

77
Pi4J-Kotlin (aka Pi4K) is an implementation on top of Pi4J to facilitate the development of Kotlin applications for the Raspberry Pi that can interact with the GPIOs.
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Kotlin Examples
3-
weight: 46
3+
weight: 47
44
---
55

6-
Examples created by [Oleksandr Neiko](https://www.linkedin.com/in/alexander-neiko/), all the videos are available in [this YouTube playlist](https://www.youtube.com/watch?v=SkpH_MdL6hc&list=PLNosCXSunX6m3UdIO1FtVWh3oc3EHEJQq) and the [sources on GitHub](https://github.com/RoboticsLife).
6+
Examples created by [Oleksandr Neiko](https://www.linkedin.com/in/alexander-neiko/). All the videos are available in [this YouTube playlist](https://www.youtube.com/watch?v=SkpH_MdL6hc&list=PLNosCXSunX6m3UdIO1FtVWh3oc3EHEJQq) and the [sources on GitHub](https://github.com/RoboticsLife).
7+
8+
{{% youtube-playlist PLNosCXSunX6m3UdIO1FtVWh3oc3EHEJQq %}}

content/kotlin/kotlin-examples/getting-started.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

content/kotlin/kotlin-examples/useful-tips.md

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{{- $pc := .Page.Site.Config.Privacy.YouTube -}}
2+
{{- if not $pc.Disable -}}
3+
{{- $ytHost := cond $pc.PrivacyEnhanced "www.youtube-nocookie.com" "www.youtube.com" -}}
4+
{{- $id := .Get "id" | default (.Get 0) -}}
5+
{{- $class := .Get "class" | default (.Get 1) -}}
6+
{{- $title := .Get "title" | default "YouTube Video" }}
7+
<div {{ with $class }}class="{{ . }}"{{ else }}style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"{{ end }}>
8+
<iframe src="https://{{ $ytHost }}/embed/videoseries?list={{ $id }}{{ with .Get "autoplay" }}{{ if eq . "true" }}&autoplay=1{{ end }}{{ end }}" {{ if not $class }}style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" {{ end }}allowfullscreen title="{{ $title }}"></iframe>
9+
</div>
10+
{{ end -}}

0 commit comments

Comments
 (0)