Skip to content

Commit d178afb

Browse files
committed
Added @ExportAsHtml annotation and cleaned documentation/utils.kt file
1 parent c7ce1ac commit d178afb

File tree

2 files changed

+72
-26
lines changed
  • core
    • generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/documentation
    • src/main/kotlin/org/jetbrains/kotlinx/dataframe/documentation

2 files changed

+72
-26
lines changed

core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/documentation/utils.kt

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
package org.jetbrains.kotlinx.dataframe.documentation
22

3+
import kotlin.annotation.AnnotationTarget.ANNOTATION_CLASS
4+
import kotlin.annotation.AnnotationTarget.CLASS
5+
import kotlin.annotation.AnnotationTarget.CONSTRUCTOR
6+
import kotlin.annotation.AnnotationTarget.FIELD
7+
import kotlin.annotation.AnnotationTarget.FILE
8+
import kotlin.annotation.AnnotationTarget.FUNCTION
9+
import kotlin.annotation.AnnotationTarget.LOCAL_VARIABLE
10+
import kotlin.annotation.AnnotationTarget.PROPERTY
11+
import kotlin.annotation.AnnotationTarget.PROPERTY_GETTER
12+
import kotlin.annotation.AnnotationTarget.PROPERTY_SETTER
13+
import kotlin.annotation.AnnotationTarget.TYPE
14+
import kotlin.annotation.AnnotationTarget.TYPEALIAS
15+
import kotlin.annotation.AnnotationTarget.VALUE_PARAMETER
16+
317
/**
418
*
519
*     
@@ -32,18 +46,27 @@ internal interface QuadrupleIndent
3246
* Do not rename!
3347
*/
3448
@Target(
35-
AnnotationTarget.CLASS,
36-
AnnotationTarget.ANNOTATION_CLASS,
37-
AnnotationTarget.PROPERTY,
38-
AnnotationTarget.FIELD,
39-
AnnotationTarget.LOCAL_VARIABLE,
40-
AnnotationTarget.VALUE_PARAMETER,
41-
AnnotationTarget.CONSTRUCTOR,
42-
AnnotationTarget.FUNCTION,
43-
AnnotationTarget.PROPERTY_GETTER,
44-
AnnotationTarget.PROPERTY_SETTER,
45-
AnnotationTarget.TYPE,
46-
AnnotationTarget.TYPEALIAS,
47-
AnnotationTarget.FILE,
49+
CLASS, ANNOTATION_CLASS, PROPERTY, FIELD, LOCAL_VARIABLE, VALUE_PARAMETER,
50+
CONSTRUCTOR, FUNCTION, PROPERTY_GETTER, PROPERTY_SETTER, TYPE, TYPEALIAS, FILE,
4851
)
4952
internal annotation class ExcludeFromSources
53+
54+
/**
55+
* Any `Documentable` annotated with this annotation will be exported to HTML by the documentation
56+
* processor.
57+
*
58+
* You can use @exportAsHtmlStart and @exportAsHtmlEnd to specify a range of the doc to
59+
* export to HTML.
60+
*
61+
* Do not rename!
62+
*
63+
* @param theme Whether to include a simple theme in the HTML file. Default is `true`.
64+
* @param stripReferences Whether to strip `[references]` from the HTML file. Default is `true`.
65+
* This is useful when you want to include the HTML file in a website, where the references are not
66+
* needed or would break.
67+
*/
68+
@Target(
69+
CLASS, ANNOTATION_CLASS, PROPERTY, FIELD, LOCAL_VARIABLE, VALUE_PARAMETER,
70+
CONSTRUCTOR, FUNCTION, PROPERTY_GETTER, PROPERTY_SETTER, TYPE, TYPEALIAS, FILE,
71+
)
72+
internal annotation class ExportAsHtml(val theme: Boolean = true, val stripReferences: Boolean = true)

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/documentation/utils.kt

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
package org.jetbrains.kotlinx.dataframe.documentation
22

3+
import kotlin.annotation.AnnotationTarget.ANNOTATION_CLASS
4+
import kotlin.annotation.AnnotationTarget.CLASS
5+
import kotlin.annotation.AnnotationTarget.CONSTRUCTOR
6+
import kotlin.annotation.AnnotationTarget.FIELD
7+
import kotlin.annotation.AnnotationTarget.FILE
8+
import kotlin.annotation.AnnotationTarget.FUNCTION
9+
import kotlin.annotation.AnnotationTarget.LOCAL_VARIABLE
10+
import kotlin.annotation.AnnotationTarget.PROPERTY
11+
import kotlin.annotation.AnnotationTarget.PROPERTY_GETTER
12+
import kotlin.annotation.AnnotationTarget.PROPERTY_SETTER
13+
import kotlin.annotation.AnnotationTarget.TYPE
14+
import kotlin.annotation.AnnotationTarget.TYPEALIAS
15+
import kotlin.annotation.AnnotationTarget.VALUE_PARAMETER
16+
317
/**
418
*
519
* {@include [Indent]}
@@ -32,18 +46,27 @@ internal interface QuadrupleIndent
3246
* Do not rename!
3347
*/
3448
@Target(
35-
AnnotationTarget.CLASS,
36-
AnnotationTarget.ANNOTATION_CLASS,
37-
AnnotationTarget.PROPERTY,
38-
AnnotationTarget.FIELD,
39-
AnnotationTarget.LOCAL_VARIABLE,
40-
AnnotationTarget.VALUE_PARAMETER,
41-
AnnotationTarget.CONSTRUCTOR,
42-
AnnotationTarget.FUNCTION,
43-
AnnotationTarget.PROPERTY_GETTER,
44-
AnnotationTarget.PROPERTY_SETTER,
45-
AnnotationTarget.TYPE,
46-
AnnotationTarget.TYPEALIAS,
47-
AnnotationTarget.FILE,
49+
CLASS, ANNOTATION_CLASS, PROPERTY, FIELD, LOCAL_VARIABLE, VALUE_PARAMETER,
50+
CONSTRUCTOR, FUNCTION, PROPERTY_GETTER, PROPERTY_SETTER, TYPE, TYPEALIAS, FILE,
4851
)
4952
internal annotation class ExcludeFromSources
53+
54+
/**
55+
* Any `Documentable` annotated with this annotation will be exported to HTML by the documentation
56+
* processor.
57+
*
58+
* You can use @exportAsHtmlStart and @exportAsHtmlEnd to specify a range of the doc to
59+
* export to HTML.
60+
*
61+
* Do not rename!
62+
*
63+
* @param theme Whether to include a simple theme in the HTML file. Default is `true`.
64+
* @param stripReferences Whether to strip `[references]` from the HTML file. Default is `true`.
65+
* This is useful when you want to include the HTML file in a website, where the references are not
66+
* needed or would break.
67+
*/
68+
@Target(
69+
CLASS, ANNOTATION_CLASS, PROPERTY, FIELD, LOCAL_VARIABLE, VALUE_PARAMETER,
70+
CONSTRUCTOR, FUNCTION, PROPERTY_GETTER, PROPERTY_SETTER, TYPE, TYPEALIAS, FILE,
71+
)
72+
internal annotation class ExportAsHtml(val theme: Boolean = true, val stripReferences: Boolean = true)

0 commit comments

Comments
 (0)