Skip to content

Commit 24d3d4f

Browse files
committed
use titles in docs code snippets
1 parent f7e3514 commit 24d3d4f

File tree

4 files changed

+25
-23
lines changed

4 files changed

+25
-23
lines changed

.github/workflows/ci.yml

+20-12
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ jobs:
3535
fetch-depth: 0
3636

3737
- name: Set up JDK
38-
uses: actions/setup-java@v1
39-
with:
40-
java-version: 14
38+
uses : actions/setup-java@v2
39+
with :
40+
distribution : 'temurin'
41+
java-version : '11'
42+
cache: 'gradle'
4143

4244
- uses: burrunan/gradle-cache-action@v1
4345
name: detekt
@@ -62,9 +64,11 @@ jobs:
6264
fetch-depth: 0
6365

6466
- name: Set up JDK
65-
uses: actions/setup-java@v1
66-
with:
67-
java-version: 14
67+
uses : actions/setup-java@v2
68+
with :
69+
distribution : 'temurin'
70+
java-version : '11'
71+
cache: 'gradle'
6872

6973
# formats all src files
7074
- uses: burrunan/gradle-cache-action@v1
@@ -147,9 +151,11 @@ jobs:
147151
fetch-depth: 0
148152

149153
- name: Set up JDK
150-
uses: actions/setup-java@v1
151-
with:
152-
java-version: 14
154+
uses : actions/setup-java@v2
155+
with :
156+
distribution : 'temurin'
157+
java-version : '11'
158+
cache: 'gradle'
153159

154160
- uses: burrunan/gradle-cache-action@v1
155161
name: all tests
@@ -193,9 +199,11 @@ jobs:
193199
fetch-depth: 0
194200

195201
- name: Set up JDK
196-
uses: actions/setup-java@v1
197-
with:
198-
java-version: 14
202+
uses : actions/setup-java@v2
203+
with :
204+
distribution : 'temurin'
205+
java-version : '11'
206+
cache: 'gradle'
199207

200208
- uses: burrunan/gradle-cache-action@v1
201209
name: all tests

website/docs/ci_workflow.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
uses : actions/setup-java@v2
110110
with :
111111
distribution : 'temurin'
112-
java-version : '14'
112+
java-version : '11'
113113

114114
# performs tree-shaking on the Gradle dependency graph
115115
- name: modulecheck

website/docs/configuration.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sidebar_label: Configuration
44
---
55

66

7-
``` kotlin
7+
``` kotlin title="root/build.gradle.kts"
88
plugins {
99
id("com.rickbusarow.module-check") version "0.11.2"
1010
}

website/docs/quickstart.mdx

+3-9
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ values={[
111111

112112
<TabItem value="Kotlin">
113113

114-
```kotlin
115-
// top-level build.gradle.kts
116-
114+
```kotlin title="root/build.gradle.kts"
117115
configure<com.rickbusarow.modulecheck.ModuleCheckExtension> {
118116

119117
alwaysIgnore.set(setOf(":app"))
@@ -126,9 +124,7 @@ configure<com.rickbusarow.modulecheck.ModuleCheckExtension> {
126124

127125
--or--
128126

129-
```kotlin
130-
// top-level build.gradle.kts
131-
127+
```kotlin title="root/build.gradle.kts"
132128
moduleCheck {
133129

134130
alwaysIgnore.set(setOf(":app"))
@@ -144,9 +140,7 @@ moduleCheck {
144140

145141
<TabItem value="Groovy">
146142

147-
```groovy
148-
// top-level build.gradle
149-
143+
```groovy title="root/build.gradle"
150144
moduleCheck {
151145
152146
alwaysIgnore.set(setOf(":app"))

0 commit comments

Comments
 (0)