Skip to content

Commit

Permalink
Reduce samples package
Browse files Browse the repository at this point in the history
  • Loading branch information
anti-social committed Sep 10, 2021
1 parent f07a4eb commit 2b166fe
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
4 changes: 3 additions & 1 deletion docs/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Getting started

First you need to describe a document:

```kotlin
--8<-- "../samples/src/main/kotlin/dev/evo/elasticmagic/samples/GettingStarted.kt"
--8<-- "../samples/src/main/kotlin/samples/started/UserDoc.kt"
```
2 changes: 1 addition & 1 deletion samples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ dependencies {
}

application {
mainClass.set("dev.evo.elasticmagic.samples.GettingStartedMainKt")
mainClass.set("samples.started.MainKt")
}

This file was deleted.

This file was deleted.

3 changes: 3 additions & 0 deletions samples/src/main/kotlin/samples/started/Main.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package samples.started

fun main() {}
9 changes: 9 additions & 0 deletions samples/src/main/kotlin/samples/started/UserDoc.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package samples.started

import dev.evo.elasticmagic.Document

object UserDoc : Document() {
val id by int()
val name by keyword()
val about by text()
}

0 comments on commit 2b166fe

Please sign in to comment.