diff options
author | Błażej Kardyś <bkardys@virtuslab.com> | 2020-04-01 02:19:40 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-04-06 13:15:51 +0200 |
commit | a1866dd98d291a6a2a538e88348c53ff08c812eb (patch) | |
tree | 93e6c483c05e9f2a8eca8ca35934043534de5bd4 /core | |
parent | 03cc02db833b1ad91b3e96c533c44c725efeb36b (diff) | |
download | dokka-a1866dd98d291a6a2a538e88348c53ff08c812eb.tar.gz dokka-a1866dd98d291a6a2a538e88348c53ff08c812eb.tar.bz2 dokka-a1866dd98d291a6a2a538e88348c53ff08c812eb.zip |
Integrating fuzzy search into dokka
Diffstat (limited to 'core')
-rw-r--r-- | core/.gitignore | 2 | ||||
-rw-r--r-- | core/build.gradle.kts | 11 | ||||
-rw-r--r-- | core/src/main/resources/dokka/styles/style.css | 6 |
3 files changed, 13 insertions, 6 deletions
diff --git a/core/.gitignore b/core/.gitignore new file mode 100644 index 00000000..a259cd26 --- /dev/null +++ b/core/.gitignore @@ -0,0 +1,2 @@ +src/main/resources/dokka/scripts/main.js +src/main/resources/dokka/scripts/main.js.map
\ No newline at end of file diff --git a/core/build.gradle.kts b/core/build.gradle.kts index 14718cfe..2ea57e09 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -24,6 +24,17 @@ val sourceJar by tasks.registering(Jar::class) { from(sourceSets["main"].allSource) } +task("copy_search", Copy::class) { + from(File(project(":search-component").projectDir, "dist/")) + destinationDir = File(sourceSets.main.get().resources.sourceDirectories.singleFile, "dokka/scripts") +}.dependsOn(":search-component:generateSearchFiles") + +tasks { + processResources { + dependsOn("copy_search") + } +} + publishing { publications { register<MavenPublication>("dokkaCore") { diff --git a/core/src/main/resources/dokka/styles/style.css b/core/src/main/resources/dokka/styles/style.css index 1cab694a..80865758 100644 --- a/core/src/main/resources/dokka/styles/style.css +++ b/core/src/main/resources/dokka/styles/style.css @@ -46,13 +46,7 @@ } #searchBar { - width: 100%; - pointer-events: none; -} - -#searchForm { float: right; - pointer-events: all; } #logo { |