Skip to content

Commit 8d07b78

Browse files
Merge pull request #1196 from Kotlin/website_docs_dev
Website docs dev
2 parents 2265186 + c8bb080 commit 8d07b78

File tree

264 files changed

+40367
-300
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

264 files changed

+40367
-300
lines changed

.github/README_GH_ACTIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Anytime the source code changes on [master](https://github.com/Kotlin/dataframe/
2222
this [GitHub Action](./workflows/generated-sources-master.yml) makes sure
2323
[`processKDocsMain`](../KDOC_PREPROCESSING.md),
2424
and `korro` are run. If there have been any changes in either [core/generated-sources](../core/generated-sources) or
25-
[docs/StardustDocs/snippets](../docs/StardustDocs/snippets), these are auto-committed to the branch, to keep
25+
[docs/StardustDocs/resources/snippets](../docs/StardustDocs/resources/snippets), these are auto-committed to the branch, to keep
2626
it up to date.
2727

2828
### Show generated code in PR

.github/workflows/generated-sources-master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: |
2727
git config --global user.name 'github-actions[bot]'
2828
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
29-
git add './core/generated-sources' './dataframe-csv/generated-sources' './docs/StardustDocs/snippets' './docs/StardustDocs/topics'
29+
git add './core/generated-sources' './dataframe-csv/generated-sources' './docs/StardustDocs/resources/snippets' './docs/StardustDocs/topics'
3030
git diff --staged --quiet || git commit -m "Automated commit of generated code"
3131
git push
3232
env:

.github/workflows/generated-sources.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ jobs:
4242

4343
- name: Check for changes in generated sources
4444
id: git-diff
45-
run: echo "changed=$(if git diff --quiet './core/generated-sources' './dataframe-csv/generated-sources' './docs/StardustDocs/snippets' './docs/StardustDocs/topics'; then echo 'false'; else echo 'true'; fi)" >> $GITHUB_OUTPUT
45+
run: echo "changed=$(if git diff --quiet './core/generated-sources' './dataframe-csv/generated-sources' './docs/StardustDocs/resources/snippets' './docs/StardustDocs/topics'; then echo 'false'; else echo 'true'; fi)" >> $GITHUB_OUTPUT
4646

4747
- name: Commit and push if changes
4848
id: git-commit
4949
if: steps.git-diff.outputs.changed == 'true'
5050
run: |
5151
git checkout -b generated-sources/docs-update-${{ github.run_number }}
52-
git add './core/generated-sources' './dataframe-csv/generated-sources' './docs/StardustDocs/snippets' './docs/StardustDocs/topics'
52+
git add './core/generated-sources' './dataframe-csv/generated-sources' './docs/StardustDocs/resources/snippets' './docs/StardustDocs/topics'
5353
git commit -m "Update generated sources with recent changes"
5454
git push origin generated-sources/docs-update-${{ github.run_number }}
5555
echo "commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT

KDOC_PREPROCESSING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ A fully interactive, single-source-of-truth grammar for the Columns Selection DS
693693
There's a special annotation, `@ExportAsHtml`, that allows you to export the content of the KDoc of the annotated
694694
function, interface, or class as HTML.
695695
The Markdown of the KDoc is rendered to HTML using [JetBrains/markdown](https://github.com/JetBrains/markdown) and, in
696-
the case of DataFrame, put in [./docs/StardustDocs/snippets/kdocs](./docs/StardustDocs/snippets/kdocs).
696+
the case of DataFrame, put in [./docs/StardustDocs/resources/snippets/kdocs](docs/StardustDocs/resources/snippets/kdocs).
697697
From there, the HTML can be included in any WriterSide page as an iFrame.
698698
This can be done using our custom `<dataFrame src=""/>` tag.
699699

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ This table shows the mapping between main library component versions and minimum
233233
| 0.13.1 | 8 | 1.9.22 | 0.12.0-139 | 15.0.0 |
234234
| 0.14.1 | 8 | 2.0.20 | 0.12.0-139 | 17.0.0 |
235235
| 0.15.0 | 8 | 2.0.20 | 0.12.0-139 | 18.1.0 |
236-
| 1.0.0-Beta1 | 8 / 11 | 2.0.20 | 0.12.0-383 | 18.1.0 |
236+
| 1.0.0-Beta2 | 8 / 11 | 2.0.20 | 0.12.0-383 | 18.1.0 |
237237

238238
## Code of Conduct
239239

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ val modulesUsingJava11 = with(projects) {
154154
dataframeJupyter,
155155
dataframeGeo,
156156
examples.ideaExamples.titanic,
157+
tests,
157158
)
158159
}.map { it.path }
159160

core/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ by [Korro](https://github.com/devcrocod/korro).
2525

2626
Aside from code samples, `@TransformDataFrameExpressions` annotated test functions also generate sample
2727
dataframe HTML files that can be used as iFrames on the documentation website.
28-
They are tested, generated, and copied over to [docs/StardustDocs/snippets](../docs/StardustDocs/snippets) by
28+
They are tested, generated, and copied over to [docs/StardustDocs/resources/snippets](../docs/StardustDocs/resources/snippets) by
2929
our "explainer" [plugin callback proxy](./src/test/kotlin/org/jetbrains/kotlinx/dataframe/explainer),
3030
which hooks into [the TestBase class](./src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/TestBase.kt) and
3131
retrieves the intermediate DataFrame expressions thanks to our "explainer" compiler plugin
3232
[:plugins:expressions-converter](../plugins/expressions-converter).
3333

3434
We can also generate "normal" DataFrame samples for the website. This can be done using the
3535
[OtherSamples class](./src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/OtherSamples.kt). Generated
36-
HTML files will be stored in [docs/StardustDocs/snippets/manual](../docs/StardustDocs/snippets/manual).
36+
HTML files will be stored in [docs/StardustDocs/resources/snippets/manual](../docs/StardustDocs/resources/snippets/manual).
3737

3838
### KoDEx
3939

@@ -45,4 +45,4 @@ See the [KDoc Preprocessing Guide](../KDOC_PREPROCESSING.md) for more informatio
4545

4646
KDocs can also be exported to HTML, for them to be reused on the website.
4747
Elements annotated with `@ExportAsHtml` will have their generated content be copied over to
48-
[docs/StardustDocs/snippets/kdocs](../docs/StardustDocs/snippets/kdocs).
48+
[docs/StardustDocs/resources/snippets/kdocs](../docs/StardustDocs/resources/snippets/kdocs).

core/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ val clearSamplesOutputs by tasks.creating {
145145

146146
doFirst {
147147
delete {
148-
val generatedSnippets = fileTree(file("../docs/StardustDocs/snippets"))
148+
val generatedSnippets = fileTree(file("../docs/StardustDocs/resources/snippets"))
149149
.exclude("**/manual/**", "**/kdocs/**")
150150
delete(generatedSnippets)
151151
}
@@ -155,7 +155,7 @@ val clearSamplesOutputs by tasks.creating {
155155
val addSamplesToGit by tasks.creating(GitTask::class) {
156156
directory = file(".")
157157
command = "add"
158-
args = listOf("-A", "../docs/StardustDocs/snippets")
158+
args = listOf("-A", "../docs/StardustDocs/resources/snippets")
159159
}
160160

161161
val copySamplesOutputs = tasks.register<JavaExec>("copySamplesOutputs") {
@@ -218,7 +218,7 @@ val processKDocsMain by creatingRunKodexTask(processKDocsMainSources) {
218218
outputReadOnly = false
219219

220220
exportAsHtml {
221-
dir = file("../docs/StardustDocs/snippets/kdocs")
221+
dir = file("../docs/StardustDocs/resources/snippets/kdocs")
222222
}
223223
finalizedBy("runKtlintFormatOverGeneratedSourcesSourceSet")
224224
}

core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/explainer/PluginCallbackProxy.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ object PluginCallbackProxy : PluginCallback {
131131
File(korro, group).writeText(
132132
"""
133133
134-
<dataFrame src="$group.html"/>
134+
<inline-frame src="resources/$group.html" width="100%"/>
135135
""".trimIndent(),
136136
)
137137
}

core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/explainer/SampleAggregator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fun main() {
1313
.groupBy {
1414
it.nameWithoutExtension.substringBefore("_")
1515
}.mapValues { (name, files) ->
16-
val target = File("../docs/StardustDocs/snippets")
16+
val target = File("../docs/StardustDocs/resources/snippets")
1717
val original = files
1818
.firstOrNull { it.nameWithoutExtension.contains("properties") }
1919
?: files.first()

0 commit comments

Comments
 (0)