You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- To be linked to from each DSL grammar by the link interface
414
+
- To be linked to from each DSL grammar by the link KDoc
389
415
- Check the folder to see if there are more and feel free to add them if needed :)
390
416
391
-
### Link Interfaces
417
+
### Link KDocs
392
418
393
-
As can be seen, interfaces that can be "linked" to, like [`AccessApi`](./core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/documentation/AccessApi.kt), are often
394
-
accompanied by a `-Link`interface, like
419
+
As can be seen, KDocs that can be "linked" to, like [`AccessApi`](./core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/documentation/AccessApi.kt), are often
420
+
accompanied by a `-Link`doc, like
395
421
396
422
```kt
397
423
/** [Access API][AccessApi] */
398
-
internalinterfaceAccessApiLink
424
+
internaltypealiasAccessApiLink=Nothing
399
425
```
400
426
401
427
This allows other docs to simply `{@include [AccessApiLink]}` if they want to refer to
402
428
Access APIs, and it provides a single place of truth for if we ever want to rename this concept.
403
429
404
-
In general, docs accompanied by a `-Link`interface are meant to be linked to, while docs without
405
-
a `-Link`interface are meant to be included in other docs
430
+
In general, docs accompanied by a `-Link`KDoc are meant to be linked to, while docs without
431
+
a `-Link`doc are meant to be included in other docs
406
432
(and are often accompanied by [`@ExcludeFromSources`](#excludefromsources-annotation-excluding-code-content-from-sources)).
407
433
We can deviate from this convention if it makes sense, of course.
408
434
@@ -416,10 +442,10 @@ We can deviate from this convention if it makes sense, of course.
416
442
interfaceCommonDoc {
417
443
418
444
// The name to be greeted from
419
-
interfaceNameArg
445
+
typealiasNameArg=Nothing
420
446
421
447
// alternative recommended notation
422
-
interfaceNAME
448
+
typealiasNAME=Nothing
423
449
}
424
450
```
425
451
@@ -432,15 +458,15 @@ A good example of this concept can be found in the
432
458
This interface provides a template for all overloads of `allBefore`,
433
459
`allAfter`, `allFrom`, and `allUpTo` in a single place.
434
460
435
-
Nested in the documentation interface, there are several other interfaces that define the expected arguments
461
+
Nested in the documentation interface, there are several type aliases that define the expected arguments
436
462
of the template.
437
-
These interfaces are named `TitleArg`/`TITLE`, `FunctionArg`/`FUNCTION`, etc. and commonly have no KDocs itself,
463
+
These are named `TitleArg`/`TITLE`, `FunctionArg`/`FUNCTION`, etc. and commonly have no KDocs itself,
438
464
just a simple comment explaining what the argument is for.
439
465
440
-
Other documentation interfaces like `AllAfterDocs` or functions then include `CommonAllSubsetDocs` and set
466
+
Other documentation holders like `AllAfterDocs` or functions then include `CommonAllSubsetDocs` and set
441
467
all the arguments accordingly.
442
468
443
-
It's recommended to name argument interfaces`-Arg`, or to write their name in `ALL_CAPS` (if the linter is shushed)
469
+
It's recommended to name arguments`-Arg`, or to write their name in `ALL_CAPS` (if the linter is shushed)
444
470
and have them nested in the documentation interface, though,
445
471
this has not always been done in the past.
446
472
@@ -455,9 +481,9 @@ it easier to update the documentation whenever (part of) a URL changes.
455
481
456
482
### Utils
457
483
458
-
The [`utils.kt` file](./core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/documentation/utils.kt) contains all sorts of helper interfaces for the documentation.
459
-
For instance `{@include [LineBreak]}` can insert a line break in the KDoc and the family of `Indent`
460
-
documentation interfaces can provide you with different non-breaking-space-based indents.
484
+
The [`utils.kt` file](./core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/documentation/utils.kt) contains all sorts of helpers for the documentation.
485
+
For instance `{@include [LineBreak]}` can insert a line break in the KDoc, and the family of `Indent`
486
+
documentation type aliases can provide you with different non-breaking-space-based indents.
461
487
462
488
If you need a new utility, feel free to add it to this file.
463
489
@@ -499,7 +525,7 @@ some [helpful templates](core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/do
0 commit comments