Skip to content

Commit

Permalink
updated to vuepress2
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrah committed Nov 15, 2024
1 parent 259f27e commit 6dd5967
Show file tree
Hide file tree
Showing 7 changed files with 5,987 additions and 13,629 deletions.
19,565 changes: 5,954 additions & 13,611 deletions docs/package-lock.json

Large diffs are not rendered by default.

21 changes: 12 additions & 9 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@
},
"license": "MIT",
"devDependencies": {
"@types/node": "^18.11.18",
"@vuepress/client": "^2.0.0-beta.60",
"@vuepress/plugin-docsearch": "^2.0.0-beta.60",
"@vuepress/plugin-nprogress": "^2.0.0-beta.60",
"@vuepress/plugin-pwa": "^2.0.0-beta.60",
"@vuepress/plugin-search": "^2.0.0-beta.60",
"vue": "^3.2.45",
"vuepress": "^2.0.0-beta.60",
"vuepress-plugin-seo2": "^2.0.0-beta.155"
"@types/node": "^22.9.0",
"@vuepress/bundler-vite": "^2.0.0-rc.18",
"@vuepress/client": "^2.0.0-rc.18",
"@vuepress/plugin-docsearch": "^2.0.0-rc.18",
"@vuepress/plugin-nprogress": "^2.0.0-rc.18",
"@vuepress/plugin-pwa": "^2.0.0-rc.18",
"@vuepress/plugin-search": "^2.0.0-rc.18",
"@vuepress/plugin-seo": "^2.0.0-rc.60",
"@vuepress/theme-default": "^2.0.0-rc.60",
"sass-embedded": "^1.81.0",
"vue": "^3.5.12",
"vuepress": "^2.0.0-rc.18"
}
}
8 changes: 7 additions & 1 deletion docs/src/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { defaultTheme } from "@vuepress/theme-default";
import { searchPlugin } from "@vuepress/plugin-search";
import { nprogressPlugin } from "@vuepress/plugin-nprogress";
import { pwaPlugin } from "@vuepress/plugin-pwa";
import { seoPlugin } from "vuepress-plugin-seo2";
import { seoPlugin } from "@vuepress/plugin-seo";
import { defineUserConfig } from "vuepress";
import { viteBundler } from '@vuepress/bundler-vite'

export default defineUserConfig({

Expand Down Expand Up @@ -38,6 +39,11 @@ export default defineUserConfig({
],
}),

bundler: viteBundler({
viteOptions: {},
vuePluginOptions: {},
}),

plugins: [
seoPlugin({
hostname: "https://worldline.github.io/learning-kotlin-multiplatform",
Expand Down
Binary file modified docs/src/assets/solutions/2.navigation.zip
Binary file not shown.
15 changes: 13 additions & 2 deletions docs/src/nav/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,16 @@ Compose multiplatform navigation library enable a navigation with `navigation ho
```kotlin
...
commonMain.dependencies {

plugins {
...
alias(libs.plugins.kotlinSerialization)
}
commonMain.dependencies {
...
implementation(libs.kotlin.navigation)
implementation(libs.ktor.serialization.kotlinx.json)

...
```
:::
Expand All @@ -36,6 +44,9 @@ For this Hands-on Lab we need 3 routes for :
::: details App.kt (SourceSet: commonMain)
```kotlin

...
import kotlinx.serialization.Serializable

val questions = listOf(
Question(
1,
Expand Down Expand Up @@ -70,14 +81,14 @@ fun App(
navController = navController,
startDestination = WelcomeRoute,
) {
composable<WelcomeRoute>() {
composable<WelcomeRoute> {
welcomeScreen(
onStartButtonPushed = {
navController.navigate(route = QuizRoute)
}
)
}
composable<QuizRoute>() {
composable<QuizRoute> {
questionScreen(
questions = questions,
/* FOR SPEAKER TALK DEMO ON WEB APP */
Expand Down
1 change: 1 addition & 0 deletions docs/src/overview/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ You can generate composables based on designs on Figma thanks to the plugin [Goo

- [Official KMP template](https://github.com/Kotlin/KMP-App-Template)
- [Github repository for this training](https://github.com/worldline/learning-kotlin-multiplatform)
- [Library database](https://klibs.io/)
- [Official Kotlin multiplatform documentation](https://kotlinlang.org/docs/home.html)
- [People in space sample app](https://github.com/joreilly/PeopleInSpace)
- [Compose/Gradle compatibility guide ](https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-compatibility-and-versioning.html)
Expand Down
6 changes: 0 additions & 6 deletions package-lock.json

This file was deleted.

0 comments on commit 6dd5967

Please sign in to comment.