Skip to content

Commit

Permalink
Move the Properties block to be above Functions
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnatBeresnev committed Mar 8, 2023
1 parent 14c05d7 commit 08f77ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,17 @@ open class HtmlRenderer(
listOf(
BasicTabbedContentType.CONSTRUCTOR,
BasicTabbedContentType.TYPE,
BasicTabbedContentType.FUNCTION,
BasicTabbedContentType.PROPERTY
BasicTabbedContentType.PROPERTY,
BasicTabbedContentType.FUNCTION
)
),
if (extensions.isEmpty()) null else ContentTab(
"Members & Extensions",
listOf(
BasicTabbedContentType.CONSTRUCTOR,
BasicTabbedContentType.TYPE,
BasicTabbedContentType.FUNCTION,
BasicTabbedContentType.PROPERTY,
BasicTabbedContentType.FUNCTION,
BasicTabbedContentType.EXTENSION_PROPERTY,
BasicTabbedContentType.EXTENSION_FUNCTION
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,10 @@ open class DefaultPageCreator(
"Inherited functions", inheritedFunctions + inheritedExtensionFunctions
)
} else {
functionsBlock("Functions", functions + extensionFuns)
propertiesBlock(
"Properties", properties + extensionProps
)
functionsBlock("Functions", functions + extensionFuns)
}
}

Expand Down Expand Up @@ -740,4 +740,4 @@ internal inline fun <reified T : NamedTagWrapper> GroupedTags.withTypeNamed(): M
// Annotations might have constructors to substitute reflection invocations
// and for internal/compiler purposes, but they are not expected to be documented
// and instantiated directly under normal circumstances, so constructors should not be rendered.
internal fun List<Documentable>.shouldDocumentConstructors() = !this.any { it is DAnnotation }
internal fun List<Documentable>.shouldDocumentConstructors() = !this.any { it is DAnnotation }

0 comments on commit 08f77ef

Please sign in to comment.