Skip to content

Commit

Permalink
[MERGE] #175 -> develop
Browse files Browse the repository at this point in the history
[FEAT/#175] μ»΄ν¬λ„ŒνŠΈ λ¬Έμ„œν™”
  • Loading branch information
leeeyubin authored Aug 16, 2024
2 parents f7fe3e5 + e17ebf4 commit 828706f
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/dokka.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: TerningPoint DesignSystem CI

on:
push:
branches: [ develop ]

jobs:
docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 18
uses: actions/setup-java@v4
with:
java-version: 18
distribution: "temurin"

- name: permissions
run: chmod +x gradlew

- name: Build Documentation
run: ./gradlew dokkaHtml

- name: Deploy Documentation to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
BRANCH: gh-pages
FOLDER: core/build/dokka/html
1 change: 0 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,4 @@ dependencies {

// KakaoDependencies
implementation(libs.kakao.user)

}
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ plugins {
alias(libs.plugins.android.test) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.kotlin.parcelize) apply false
alias(libs.plugins.dokka) apply false
}

buildscript {
Expand Down
10 changes: 10 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.dokka)
}

android {
Expand Down Expand Up @@ -40,6 +41,15 @@ android {
}
}

tasks.dokkaHtml.configure {
dokkaSourceSets {
named("main") {
includes.from("docs.md")
noAndroidSdkLink.set(false)
}
}
}

dependencies {
// Kotlin
implementation(libs.kotlin)
Expand Down
38 changes: 38 additions & 0 deletions core/docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Package com.terning.core.designsystem.component.bottomsheet
λ°”ν…€μ‹œνŠΈκ°€ μžˆλŠ” νŒ¨ν‚€μ§€μž…λ‹ˆλ‹€.

# Package com.terning.core.designsystem.component.button
λ²„νŠΌμ΄ μžˆλŠ” νŒ¨ν‚€μ§€μž…λ‹ˆλ‹€.

# Package com.terning.core.designsystem.component.datepicker
데이트 피컀가 μžˆλŠ” νŒ¨ν‚€μ§€μž…λ‹ˆλ‹€.

# Package com.terning.core.designsystem.component.dialog
λ‹€μ΄μ–Όλ‘œκ·Έκ°€ μžˆλŠ” νŒ¨ν‚€μ§€μž…λ‹ˆλ‹€.

# Package com.terning.core.designsystem.component.image
contentDescription을 μ‚¬μš©ν•˜μ§€ μ•ŠλŠ” Imageκ°€ λ‹΄κΈ΄ νŒ¨ν‚€μ§€μž…λ‹ˆλ‹€.

# Package com.terning.core.designsystem.component.item
μ—¬λŸ¬ ν™”λ©΄μ—μ„œ μ“°μ΄λŠ” μ•„μ΄ν…œλ“€μ΄ λ“€μ–΄μžˆλŠ” νŒ¨ν‚€μ§€μž…λ‹ˆλ‹€.

# Package com.terning.core.designsystem.component.textfield
ν…μŠ€νŠΈ ν•„λ“œκ°€ μžˆλŠ” νŒ¨ν‚€μ§€μž…λ‹ˆλ‹€.

# Package com.terning.core.designsystem.component.topappbar
탑바가 μžˆλŠ” νŒ¨ν‚€μ§€μž…λ‹ˆλ‹€.

# Package com.terning.core.designsystem.theme
<terning>의 themeκ°€ μžˆλŠ” νŒ¨ν‚€μ§€μž…λ‹ˆλ‹€.

# Package com.terning.core.extension
ν™•μž₯ν•¨μˆ˜λ₯Ό λͺ¨μ•„놓은 νŒ¨ν‚€μ§€μž…λ‹ˆλ‹€.

# Package com.terning.core.navigation
λ„€λΉ„κ²Œμ΄μ…˜ λ£¨νŠΈκ°€ μžˆλŠ” νŒ¨ν‚€μ§€μž…λ‹ˆλ‹€.

# Package com.terning.core.state
κΈ°λ³Έ μƒνƒœλ₯Ό λ‚˜νƒ€λ‚΄λŠ” 파일이 μžˆλŠ” νŒ¨ν‚€μ§€μž…λ‹ˆλ‹€.

# Package com.terning.core.util
μ—¬λŸ¬ κ³³μ—μ„œ μœ μš©ν•˜κ²Œ μ“°μ΄λŠ” 객체λ₯Ό λͺ¨μ•„놓은 νŒ¨ν‚€μ§€μž…λ‹ˆλ‹€.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ import com.terning.core.designsystem.theme.TerningTheme
import com.terning.core.designsystem.theme.White
import com.terning.core.util.NoRippleTheme

/**
* κΈ°λ³Έ λ²„νŠΌ ν•¨μˆ˜μž…λ‹ˆλ‹€.
*
* @param shape λ²„νŠΌμ˜ λͺ¨μ–‘을 μ„€μ •ν•©λ‹ˆλ‹€.
* @param style λ²„νŠΌ ν…μŠ€νŠΈμ˜ μŠ€νƒ€μΌμ„ μ •μ˜ν•©λ‹ˆλ‹€.
* @param paddingVertical λ²„νŠΌμ˜ μœ„μ•„λž˜ νŒ¨λ”©μ„ μ„€μ •ν•©λ‹ˆλ‹€. νŒ¨λ”© 값은 Dp λ‹¨μœ„μž…λ‹ˆλ‹€.
* @param text λ²„νŠΌμ— ν‘œμ‹œλ  ν…μŠ€νŠΈμž…λ‹ˆλ‹€.
* @param onButtonClick λ²„νŠΌ 클릭 μ‹œ 호좜될 콜백 ν•¨μˆ˜μž…λ‹ˆλ‹€.
* @param modifier λ²„νŠΌμ— μ μš©ν•  Modifierμž…λ‹ˆλ‹€.
* @param isEnabled λ²„νŠΌμ˜ ν™œμ„±ν™” μƒνƒœλ₯Ό μ •μ˜ν•©λ‹ˆλ‹€.
*/
@Composable
fun TerningBasicButton(
shape: Shape,
Expand Down
6 changes: 5 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ processPhoenix = "2.0.0"
## Web
browser = "1.4.0"

## dokka
dokka = "1.9.0"

[libraries]
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "androidxCore" }
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "androidxAppCompat" }
Expand Down Expand Up @@ -182,4 +185,5 @@ kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", versi
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
android-test = { id = "com.android.test", version.ref = "androidGradlePlugin" }
ksp = {id = "com.google.devtools.ksp", version.ref = "ksp"}
kotlin-parcelize = { id = "org.jetbrains.kotlin.plugin.parcelize", version.ref = "kotlinParcelize" }
kotlin-parcelize = { id = "org.jetbrains.kotlin.plugin.parcelize", version.ref = "kotlinParcelize" }
dokka = {id = "org.jetbrains.dokka", version.ref = "dokka"}

0 comments on commit 828706f

Please sign in to comment.