Skip to content

Commit bda8ee3

Browse files
Merge pull request #1414 from Kotlin/util_functions_docs
Util functions docs
2 parents 6a9f43e + a4cd55b commit bda8ee3

File tree

83 files changed

+9093
-342
lines changed

Some content is hidden

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

83 files changed

+9093
-342
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@
99
build
1010
.ipynb_checkpoints
1111
local.properties
12+
13+
# macOS
14+
.DS_Store

build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ plugins {
3434
// dependence on our own plugin
3535
alias(dataframe) apply false
3636
alias(ksp) apply false
37+
38+
alias(dataframePlugin) apply false
3739
}
3840
}
3941

@@ -158,7 +160,7 @@ val modulesUsingJava11 = with(projects) {
158160
dataframeGeoJupyter,
159161
examples.ideaExamples.titanic,
160162
examples.ideaExamples.unsupportedDataSources,
161-
tests,
163+
samples,
162164
plugins.dataframeGradlePlugin,
163165
)
164166
}.map { it.path }

core/README.md

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,29 @@ At the moment, these integrations are still part of the `:core` module:
1010
- (deprecated) csv/tsv
1111
- html
1212

13-
### Korro code samples
13+
### KoDEx
14+
15+
The code you're working on needs to be edited in [src](src), but the KDocs are processed by
16+
[KoDEx](https://github.com/Jolanrensen/kodex) when the project is published (or the task
17+
is run manually). The generated sources with adjusted KDocs will be overwritten
18+
in [generated-sources](generated-sources).
19+
See the [KDoc Preprocessing Guide](../KDOC_PREPROCESSING.md) for more information.
20+
21+
KDocs can also be exported to HTML, for them to be reused on the website.
22+
Elements annotated with `@ExportAsHtml` will have their generated content be copied over to
23+
[docs/StardustDocs/resources/snippets/kdocs](../docs/StardustDocs/resources/snippets/kdocs).
24+
25+
### ~~Korro~~ (NOTE: This is being moved to [:samples](../samples))
26+
27+
> [Should be removed and moved to `:samples` module](https://github.com/Kotlin/dataframe/issues/898).
28+
29+
Tests in this module contain code samples used for import into documentation
30+
using [Korro](https://github.com/devcrocod/korro).
1431

15-
Code samples for the documentation website reside
16-
in [core/.../test/.../samples/api](./src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api) (for samples that depend solely on `dataframe-core`),
17-
and [tests/.../samples/api](../tests/src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api) (for samples can depend on other I/O modules)
18-
and they are copied over to Markdown files in [docs/StardustDocs/topics](../docs/StardustDocs/topics)
19-
by [Korro](https://github.com/devcrocod/korro).
2032

21-
### ~~Explainer dataframes~~ NOTE: This is being moved to [tests](../tests)
33+
### ~~Explainer dataframes~~ (NOTE: This is being moved to [:samples](../samples))
34+
35+
> [Should be removed and migrated to SampleHelper](https://github.com/Kotlin/dataframe/issues/898).
2236
2337
Aside from code samples, `@TransformDataFrameExpressions` annotated test functions also generate sample
2438
dataframe HTML files that can be used as iFrames on the documentation website.
@@ -31,15 +45,3 @@ retrieves the intermediate DataFrame expressions thanks to our "explainer" compi
3145
We can also generate "normal" DataFrame samples for the website. This can be done using the
3246
[OtherSamples class](./src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api/OtherSamples.kt). Generated
3347
HTML files will be stored in [docs/StardustDocs/resources/snippets/manual](../docs/StardustDocs/resources/snippets/manual).
34-
35-
### KoDEx
36-
37-
The code you're working on needs to be edited in [src](src), but the KDocs are processed by
38-
[KoDEx](https://github.com/Jolanrensen/kodex) when the project is published (or the task
39-
is run manually). The generated sources with adjusted KDocs will be overwritten
40-
in [generated-sources](generated-sources).
41-
See the [KDoc Preprocessing Guide](../KDOC_PREPROCESSING.md) for more information.
42-
43-
KDocs can also be exported to HTML, for them to be reused on the website.
44-
Elements annotated with `@ExportAsHtml` will have their generated content be copied over to
45-
[docs/StardustDocs/resources/snippets/kdocs](../docs/StardustDocs/resources/snippets/kdocs).

docs/StardustDocs/d.tree

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
<toc-element topic="columnNames.md"/>
7272
<toc-element topic="columnTypes.md"/>
7373
<toc-element topic="head.md"/>
74+
<toc-element topic="tail.md"/>
7475
<toc-element topic="schema.md"/>
7576
<toc-element topic="describe.md"/>
7677
</toc-element>
@@ -84,6 +85,7 @@
8485
<toc-element topic="last.md"/>
8586
<toc-element topic="minBy.md"/>
8687
<toc-element topic="maxBy.md"/>
88+
<toc-element topic="asSequence.md"/>
8789
</toc-element>
8890
<toc-element topic="getColumns.md">
8991
<toc-element topic="columns.md"/>
@@ -127,7 +129,6 @@
127129
<toc-element topic="replace.md"/>
128130
<toc-element topic="reverse.md"/>
129131
<toc-element topic="select.md"/>
130-
<toc-element topic="shuffle.md"/>
131132
<toc-element topic="sliceRows.md"/>
132133
<toc-element topic="sortBy.md"/>
133134
<toc-element topic="split.md"/>
@@ -178,11 +179,22 @@
178179
<toc-element topic="columnOperations.md">
179180
<toc-element topic="columnArithmetics.md" toc-title="Arithmetics"/>
180181
<toc-element topic="columnStatistics.md" toc-title="Statistics"/>
182+
<toc-element topic="asIterable.md"/>
183+
<toc-element topic="asSequenceColumn.md" toc-title="asSequence"/>
184+
<toc-element topic="between.md"/>
181185
</toc-element>
182186
<toc-element topic="ColumnSelectors.md"/>
187+
<toc-element topic="Utils.md">
188+
<toc-element topic="any.md"/>
189+
<toc-element topic="all.md"/>
190+
<toc-element topic="chunked.md"/>
191+
<toc-element topic="shuffle.md"/>
192+
</toc-element>
183193
<toc-element topic="collectionsInterop.md">
184194
<toc-element topic="toList.md"/>
185195
<toc-element topic="toMap.md"/>
196+
<toc-element topic="associate.md"/>
197+
<toc-element topic="associateBy.md"/>
186198
</toc-element>
187199
<toc-element topic="rendering.md">
188200
<toc-element topic="toHTML.md"/>

0 commit comments

Comments
 (0)