summaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorHyunWoo Lee <l2hyunwoo@gmail.com>2025-12-22 16:35:52 +0300
committerHyunWoo Lee <l2hyunwoo@gmail.com>2025-12-22 16:35:52 +0300
commitf7395c50b20bec0e6c179ac980fc1c38f3d7dd7f (patch)
tree82f3f5b4db145d56abd7f163c80b8a7f3a4325dc /docs/src
parentcec522ce049a878a8d95f11d42e85b226d959c51 (diff)
downloadcolorpicker-compose-f7395c50b20bec0e6c179ac980fc1c38f3d7dd7f.tar.xz
feat: define route
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/wasmJsMain/kotlin/docs/navigation/DocsRoute.kt42
1 files changed, 42 insertions, 0 deletions
diff --git a/docs/src/wasmJsMain/kotlin/docs/navigation/DocsRoute.kt b/docs/src/wasmJsMain/kotlin/docs/navigation/DocsRoute.kt
new file mode 100644
index 0000000..3b342d9
--- /dev/null
+++ b/docs/src/wasmJsMain/kotlin/docs/navigation/DocsRoute.kt
@@ -0,0 +1,42 @@
+/*
+ * Designed and developed by 2022 skydoves (Jaewoong Eum)
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package docs.navigation
+
+sealed class DocsRoute(val path: String, val title: String) {
+ data object Home : DocsRoute("/", "Home")
+ data object GettingStarted : DocsRoute("/guide/getting-started", "Getting Started")
+ data object Installation : DocsRoute("/guide/installation", "Installation")
+ data object PlatformSupport : DocsRoute("/guide/platforms", "Platform Support")
+ data object ApiHsvColorPicker : DocsRoute("/api/hsv-color-picker", "HsvColorPicker")
+ data object ApiImageColorPicker : DocsRoute("/api/image-color-picker", "ImageColorPicker")
+ data object ApiAlphaSlider : DocsRoute("/api/alpha-slider", "AlphaSlider")
+ data object ApiBrightnessSlider : DocsRoute("/api/brightness-slider", "BrightnessSlider")
+ data object ApiAlphaTile : DocsRoute("/api/alpha-tile", "AlphaTile")
+ data object ApiController : DocsRoute("/api/controller", "ColorPickerController")
+ data object Playground : DocsRoute("/playground", "Playground")
+
+ companion object {
+ val guideRoutes = listOf(GettingStarted, Installation, PlatformSupport)
+ val apiRoutes = listOf(
+ ApiHsvColorPicker,
+ ApiImageColorPicker,
+ ApiAlphaSlider,
+ ApiBrightnessSlider,
+ ApiAlphaTile,
+ ApiController,
+ )
+ }
+}