Installation¶
kslides targets the JVM (Kotlin 2.x, JDK 17+). Either scaffold a ready-to-run project, or add the core artifact to an existing Gradle build.
Scaffold a new project¶
kslides-init.sh clones kslides-template, strips its git history, renames the project and presentation title, and initializes a fresh repository — so you get a working deck with build config and a GitHub Pages workflow already wired up:
curl -fsSL https://raw.githubusercontent.com/kslides/kslides/master/kslides-init.sh | bash -s -- my-talk --title "My Talk"
Then:
The script refuses to overwrite an existing directory and cleans up after itself if anything fails partway. It runs on macOS's stock bash and modern Linux bash; on Windows, use WSL or generate from the template on GitHub instead.
Gradle (Kotlin DSL)¶
To add kslides to a project you already have:
repositories {
mavenCentral()
}
dependencies {
implementation("com.kslides:kslides-core:1.5.0")
// Optional: Lets-Plot integration
implementation("com.kslides:kslides-letsplot:1.5.0")
// Optional: PDF export via headless Chromium (see the PDF export page)
implementation("com.kslides:kslides-export:1.5.0")
}
kotlin {
jvmToolchain(17)
}
Gradle (version catalog)¶
If you use gradle/libs.versions.toml:
[versions]
kslides = "1.5.0"
[libraries]
kslides-core = { module = "com.kslides:kslides-core", version.ref = "kslides" }
kslides-letsplot = { module = "com.kslides:kslides-letsplot", version.ref = "kslides" }
kslides-export = { module = "com.kslides:kslides-export", version.ref = "kslides" }
then in your build script:
Snapshot builds¶
Snapshots are published to Sonatype's snapshot repository. Add it explicitly:
What's next?¶
Head to the Quickstart to build your first deck.