From d7b11c59db63a20cfd0ee0cedfe51ed6ff48e796 Mon Sep 17 00:00:00 2001 From: Robert Manigk Date: Sun, 22 Jan 2023 17:16:25 +0100 Subject: [PATCH] Add instructions regarding kotlin native build --- README.md | 34 +++++++++++++++++++++++----------- docs/index.md | 9 +++++---- 2 files changed, 28 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 3469452..7174441 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,39 @@ -# Kotlin Course +# Dezentrale Kotlin Course + +## Build The Documentation This repository contains some examples and slides built with [reveal-md.js](https://github.com/webpro/reveal-md "link to the git repository of the reveal md project"). To view the slides, the following command must be executed with the [node package manager (npm)](https://nodejs.org/en/download/package-manager/) [^1]: -```bash +```shell npm install -g reveal-md ``` -Um anschlie -execute the following command: -```bash -reveal-md docs/index.md -``` +To be able to execute the command afterwards, we have to make the path known. This can be done +either once with an -To be able to execute the command afterwards, we have to make the path known. This can be done either once with an - -```bash +```shell export PATH=:$PATH ``` -or by adding this path to `~/.profile` +or by adding this path to `~/.profile`. When this is done, you can execute the command: + +```shell +reveal-md docs/index.md +``` + +## Kotlin Native Build + +To compile this project natively, you have to go to the [current Kotlin release page](https://github.com/JetBrains/kotlin/releases) (currently +version 1.8.0) and download the distribution +that fits your operating system (you have to scroll down a bit). and download the +distribution that fits your operating system (you have to scroll down a bit). + +```shell +kotlinc-native src/nativeMain/kotlin/Main.kt -o build/Main +``` [^1]: A tutorial for the installation can be found at the [link](https://nodejs.org/en/download/package-manager/) above. \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index c4102ea..3dcd92c 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,17 +2,18 @@ title: Dezentrale Kotlin Course separator: verticalSeparator: -theme: moon +theme: night revealOptions: transition: 'fade' --- -# Dezentrale Kotlin Course + +# Kotlin Course --- -## Kotlin language basics +## Kotlin Language Basics Kotlin is a... - multiplatform programming language -- its penis is bigger as any other +-