From 77c8777b7f66bddd374d68decd507547d356d602 Mon Sep 17 00:00:00 2001 From: Marcin Aman Date: Sun, 31 May 2020 21:02:46 +0200 Subject: Improve CSS, pages navigation tree and create anchors on page --- core/src/main/kotlin/pages/ContentNodes.kt | 14 +- core/src/main/kotlin/pages/PageNodes.kt | 1 - .../frontend/src/main/components/app/index.scss | 8 +- .../frontend/src/main/components/app/index.tsx | 45 +-- .../src/main/components/search/search.scss | 14 + .../frontend/src/main/components/search/search.tsx | 16 +- .../src/main/kotlin/renderers/html/HtmlRenderer.kt | 258 +++++++++++----- .../kotlin/renderers/html/htmlPreprocessors.kt | 20 +- .../kotlin/signatures/KotlinSignatureProvider.kt | 2 +- .../documentables/DefaultPageCreator.kt | 67 ++--- .../documentables/PageContentBuilder.kt | 14 +- .../src/main/resources/dokka/scripts/clipboard.js | 52 ++++ .../resources/dokka/scripts/navigationLoader.js | 11 + .../base/src/main/resources/dokka/styles/style.css | 330 ++++++++++++++++++--- .../kotlin/content/params/ContentForParamsTest.kt | 146 ++++----- .../content/seealso/ContentForSeeAlsoTest.kt | 170 +++++------ plugins/base/src/test/kotlin/enums/EnumsTest.kt | 8 + .../kotlin/linkableContent/LinkableContentTest.kt | 4 +- plugins/base/src/test/kotlin/markdown/LinkTest.kt | 13 +- .../test/kotlin/renderers/RenderingOnlyTestBase.kt | 1 + .../test/kotlin/renderers/html/DivergentTest.kt | 26 +- 21 files changed, 842 insertions(+), 378 deletions(-) create mode 100644 plugins/base/frontend/src/main/components/search/search.scss create mode 100644 plugins/base/src/main/resources/dokka/scripts/clipboard.js diff --git a/core/src/main/kotlin/pages/ContentNodes.kt b/core/src/main/kotlin/pages/ContentNodes.kt index 95b7b371..d6105bec 100644 --- a/core/src/main/kotlin/pages/ContentNodes.kt +++ b/core/src/main/kotlin/pages/ContentNodes.kt @@ -13,6 +13,8 @@ interface ContentNode : WithExtraProperties { val dci: DCI val sourceSets: Set val style: Set