|
1 | 1 | package org.jetbrains.kotlinx.dataframe.documentation
|
2 | 2 |
|
| 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 | + |
3 | 17 | /**
|
4 | 18 | *
|
5 | 19 | *
|
@@ -32,18 +46,27 @@ internal interface QuadrupleIndent
|
32 | 46 | * Do not rename!
|
33 | 47 | */
|
34 | 48 | @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, |
48 | 51 | )
|
49 | 52 | 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