aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/build.gradle.kts11
-rw-r--r--plugins/base/build.gradle.kts11
-rw-r--r--plugins/base/search-component/.gitignore (renamed from core/search-component/.gitignore)0
-rw-r--r--plugins/base/search-component/build.gradle.kts (renamed from core/search-component/build.gradle.kts)0
-rw-r--r--plugins/base/search-component/package.json (renamed from core/search-component/package.json)0
-rw-r--r--plugins/base/search-component/postcss.config.js (renamed from core/search-component/postcss.config.js)0
-rw-r--r--plugins/base/search-component/src/main/js/search/app-root.js (renamed from core/search-component/src/main/js/search/app-root.js)0
-rw-r--r--plugins/base/search-component/src/main/js/search/app.css (renamed from core/search-component/src/main/js/search/app.css)0
-rw-r--r--plugins/base/search-component/src/main/js/search/app.js (renamed from core/search-component/src/main/js/search/app.js)0
-rw-r--r--plugins/base/search-component/src/main/js/search/search.js (renamed from core/search-component/src/main/js/search/search.js)0
-rw-r--r--plugins/base/search-component/stylelint.config.js (renamed from core/search-component/stylelint.config.js)0
-rw-r--r--plugins/base/search-component/webpack.config.js (renamed from core/search-component/webpack.config.js)0
-rw-r--r--plugins/base/src/main/kotlin/renderers/FileWriter.kt2
-rw-r--r--plugins/base/src/main/resources/dokka/format/gfm.properties (renamed from core/src/main/resources/dokka/format/gfm.properties)0
-rw-r--r--plugins/base/src/main/resources/dokka/format/html-as-java.properties (renamed from core/src/main/resources/dokka/format/html-as-java.properties)0
-rw-r--r--plugins/base/src/main/resources/dokka/format/html.properties (renamed from core/src/main/resources/dokka/format/html.properties)0
-rw-r--r--plugins/base/src/main/resources/dokka/format/java-layout-html.properties (renamed from core/src/main/resources/dokka/format/java-layout-html.properties)0
-rw-r--r--plugins/base/src/main/resources/dokka/format/jekyll.properties (renamed from core/src/main/resources/dokka/format/jekyll.properties)0
-rw-r--r--plugins/base/src/main/resources/dokka/format/kotlin-website-html.properties (renamed from core/src/main/resources/dokka/format/kotlin-website-html.properties)0
-rw-r--r--plugins/base/src/main/resources/dokka/format/markdown.properties (renamed from core/src/main/resources/dokka/format/markdown.properties)0
-rwxr-xr-xplugins/base/src/main/resources/dokka/images/arrow_down.svg (renamed from core/src/main/resources/dokka/images/arrow_down.svg)0
-rw-r--r--plugins/base/src/main/resources/dokka/images/docs_logo.svg (renamed from core/src/main/resources/dokka/images/docs_logo.svg)0
-rwxr-xr-xplugins/base/src/main/resources/dokka/images/logo-icon.svg (renamed from core/src/main/resources/dokka/images/logo-icon.svg)0
-rwxr-xr-xplugins/base/src/main/resources/dokka/images/logo-text.svg (renamed from core/src/main/resources/dokka/images/logo-text.svg)0
-rw-r--r--plugins/base/src/main/resources/dokka/inbound-link-resolver/dokka-default.properties (renamed from core/src/main/resources/dokka/inbound-link-resolver/dokka-default.properties)0
-rw-r--r--plugins/base/src/main/resources/dokka/inbound-link-resolver/java-layout-html.properties (renamed from core/src/main/resources/dokka/inbound-link-resolver/java-layout-html.properties)0
-rw-r--r--plugins/base/src/main/resources/dokka/inbound-link-resolver/javadoc.properties (renamed from core/src/main/resources/dokka/inbound-link-resolver/javadoc.properties)0
-rw-r--r--plugins/base/src/main/resources/dokka/scripts/navigationLoader.js (renamed from core/src/main/resources/dokka/scripts/navigationLoader.js)0
-rw-r--r--plugins/base/src/main/resources/dokka/scripts/platformContentHandler.js (renamed from core/src/main/resources/dokka/scripts/platformContentHandler.js)0
-rw-r--r--plugins/base/src/main/resources/dokka/scripts/scripts.js (renamed from core/src/main/resources/dokka/scripts/scripts.js)0
-rw-r--r--plugins/base/src/main/resources/dokka/scripts/search.js (renamed from core/src/main/resources/dokka/scripts/search.js)0
-rw-r--r--plugins/base/src/main/resources/dokka/styles/jetbrains-mono.css (renamed from core/src/main/resources/dokka/styles/jetbrains-mono.css)0
-rw-r--r--plugins/base/src/main/resources/dokka/styles/style.css (renamed from core/src/main/resources/dokka/styles/style.css)0
-rw-r--r--settings.gradle.kts2
34 files changed, 14 insertions, 12 deletions
diff --git a/core/build.gradle.kts b/core/build.gradle.kts
index bcc74480..14718cfe 100644
--- a/core/build.gradle.kts
+++ b/core/build.gradle.kts
@@ -24,17 +24,6 @@ val sourceJar by tasks.registering(Jar::class) {
from(sourceSets["main"].allSource)
}
-task("copy_search", Copy::class) {
- from(File(project(":core:search-component").projectDir, "dist/"))
- destinationDir = File(sourceSets.main.get().resources.sourceDirectories.singleFile, "dokka/scripts")
-}.dependsOn(":core:search-component:generateSearchFiles")
-
-tasks {
- processResources {
- dependsOn("copy_search")
- }
-}
-
publishing {
publications {
register<MavenPublication>("dokkaCore") {
diff --git a/plugins/base/build.gradle.kts b/plugins/base/build.gradle.kts
index 322560c6..4fb8ed9f 100644
--- a/plugins/base/build.gradle.kts
+++ b/plugins/base/build.gradle.kts
@@ -10,6 +10,17 @@ dependencies {
testImplementation(project(":test-tools"))
}
+task("copy_search", Copy::class) {
+ from(File(project(":plugins:base:search-component").projectDir, "dist/"))
+ destinationDir = File(sourceSets.main.get().resources.sourceDirectories.singleFile, "dokka/scripts")
+}.dependsOn(":plugins:base:search-component:generateSearchFiles")
+
+tasks {
+ processResources {
+ dependsOn("copy_search")
+ }
+}
+
publishing {
publications {
register<MavenPublication>("basePlugin") {
diff --git a/core/search-component/.gitignore b/plugins/base/search-component/.gitignore
index 9220c11f..9220c11f 100644
--- a/core/search-component/.gitignore
+++ b/plugins/base/search-component/.gitignore
diff --git a/core/search-component/build.gradle.kts b/plugins/base/search-component/build.gradle.kts
index ce747c5e..ce747c5e 100644
--- a/core/search-component/build.gradle.kts
+++ b/plugins/base/search-component/build.gradle.kts
diff --git a/core/search-component/package.json b/plugins/base/search-component/package.json
index fa997c44..fa997c44 100644
--- a/core/search-component/package.json
+++ b/plugins/base/search-component/package.json
diff --git a/core/search-component/postcss.config.js b/plugins/base/search-component/postcss.config.js
index ce65774e..ce65774e 100644
--- a/core/search-component/postcss.config.js
+++ b/plugins/base/search-component/postcss.config.js
diff --git a/core/search-component/src/main/js/search/app-root.js b/plugins/base/search-component/src/main/js/search/app-root.js
index 5d650581..5d650581 100644
--- a/core/search-component/src/main/js/search/app-root.js
+++ b/plugins/base/search-component/src/main/js/search/app-root.js
diff --git a/core/search-component/src/main/js/search/app.css b/plugins/base/search-component/src/main/js/search/app.css
index c51d3fe1..c51d3fe1 100644
--- a/core/search-component/src/main/js/search/app.css
+++ b/plugins/base/search-component/src/main/js/search/app.css
diff --git a/core/search-component/src/main/js/search/app.js b/plugins/base/search-component/src/main/js/search/app.js
index bceffa48..bceffa48 100644
--- a/core/search-component/src/main/js/search/app.js
+++ b/plugins/base/search-component/src/main/js/search/app.js
diff --git a/core/search-component/src/main/js/search/search.js b/plugins/base/search-component/src/main/js/search/search.js
index a742f11d..a742f11d 100644
--- a/core/search-component/src/main/js/search/search.js
+++ b/plugins/base/search-component/src/main/js/search/search.js
diff --git a/core/search-component/stylelint.config.js b/plugins/base/search-component/stylelint.config.js
index 02b3f4ac..02b3f4ac 100644
--- a/core/search-component/stylelint.config.js
+++ b/plugins/base/search-component/stylelint.config.js
diff --git a/core/search-component/webpack.config.js b/plugins/base/search-component/webpack.config.js
index a7b503b6..a7b503b6 100644
--- a/core/search-component/webpack.config.js
+++ b/plugins/base/search-component/webpack.config.js
diff --git a/plugins/base/src/main/kotlin/renderers/FileWriter.kt b/plugins/base/src/main/kotlin/renderers/FileWriter.kt
index 236cbad8..181295c0 100644
--- a/plugins/base/src/main/kotlin/renderers/FileWriter.kt
+++ b/plugins/base/src/main/kotlin/renderers/FileWriter.kt
@@ -66,7 +66,7 @@ class FileWriter(val context: DokkaContext): OutputWriter {
val filePath = file.toAbsolutePath().toString()
withContext(Dispatchers.IO) {
Paths.get(root, rebase(filePath)).toFile().writeBytes(
- javaClass.getResourceAsStream(filePath).readBytes()
+ this@FileWriter.javaClass.getResourceAsStream(filePath).readBytes()
)
}
}
diff --git a/core/src/main/resources/dokka/format/gfm.properties b/plugins/base/src/main/resources/dokka/format/gfm.properties
index 5e8f7aa8..5e8f7aa8 100644
--- a/core/src/main/resources/dokka/format/gfm.properties
+++ b/plugins/base/src/main/resources/dokka/format/gfm.properties
diff --git a/core/src/main/resources/dokka/format/html-as-java.properties b/plugins/base/src/main/resources/dokka/format/html-as-java.properties
index f598f377..f598f377 100644
--- a/core/src/main/resources/dokka/format/html-as-java.properties
+++ b/plugins/base/src/main/resources/dokka/format/html-as-java.properties
diff --git a/core/src/main/resources/dokka/format/html.properties b/plugins/base/src/main/resources/dokka/format/html.properties
index 7881dfae..7881dfae 100644
--- a/core/src/main/resources/dokka/format/html.properties
+++ b/plugins/base/src/main/resources/dokka/format/html.properties
diff --git a/core/src/main/resources/dokka/format/java-layout-html.properties b/plugins/base/src/main/resources/dokka/format/java-layout-html.properties
index fbb2bbed..fbb2bbed 100644
--- a/core/src/main/resources/dokka/format/java-layout-html.properties
+++ b/plugins/base/src/main/resources/dokka/format/java-layout-html.properties
diff --git a/core/src/main/resources/dokka/format/jekyll.properties b/plugins/base/src/main/resources/dokka/format/jekyll.properties
index b11401a4..b11401a4 100644
--- a/core/src/main/resources/dokka/format/jekyll.properties
+++ b/plugins/base/src/main/resources/dokka/format/jekyll.properties
diff --git a/core/src/main/resources/dokka/format/kotlin-website-html.properties b/plugins/base/src/main/resources/dokka/format/kotlin-website-html.properties
index f4c320b9..f4c320b9 100644
--- a/core/src/main/resources/dokka/format/kotlin-website-html.properties
+++ b/plugins/base/src/main/resources/dokka/format/kotlin-website-html.properties
diff --git a/core/src/main/resources/dokka/format/markdown.properties b/plugins/base/src/main/resources/dokka/format/markdown.properties
index 6217a6df..6217a6df 100644
--- a/core/src/main/resources/dokka/format/markdown.properties
+++ b/plugins/base/src/main/resources/dokka/format/markdown.properties
diff --git a/core/src/main/resources/dokka/images/arrow_down.svg b/plugins/base/src/main/resources/dokka/images/arrow_down.svg
index 89e7df47..89e7df47 100755
--- a/core/src/main/resources/dokka/images/arrow_down.svg
+++ b/plugins/base/src/main/resources/dokka/images/arrow_down.svg
diff --git a/core/src/main/resources/dokka/images/docs_logo.svg b/plugins/base/src/main/resources/dokka/images/docs_logo.svg
index 7c1e3ae8..7c1e3ae8 100644
--- a/core/src/main/resources/dokka/images/docs_logo.svg
+++ b/plugins/base/src/main/resources/dokka/images/docs_logo.svg
diff --git a/core/src/main/resources/dokka/images/logo-icon.svg b/plugins/base/src/main/resources/dokka/images/logo-icon.svg
index 1b3b3670..1b3b3670 100755
--- a/core/src/main/resources/dokka/images/logo-icon.svg
+++ b/plugins/base/src/main/resources/dokka/images/logo-icon.svg
diff --git a/core/src/main/resources/dokka/images/logo-text.svg b/plugins/base/src/main/resources/dokka/images/logo-text.svg
index 7bf3e6c5..7bf3e6c5 100755
--- a/core/src/main/resources/dokka/images/logo-text.svg
+++ b/plugins/base/src/main/resources/dokka/images/logo-text.svg
diff --git a/core/src/main/resources/dokka/inbound-link-resolver/dokka-default.properties b/plugins/base/src/main/resources/dokka/inbound-link-resolver/dokka-default.properties
index c484a920..c484a920 100644
--- a/core/src/main/resources/dokka/inbound-link-resolver/dokka-default.properties
+++ b/plugins/base/src/main/resources/dokka/inbound-link-resolver/dokka-default.properties
diff --git a/core/src/main/resources/dokka/inbound-link-resolver/java-layout-html.properties b/plugins/base/src/main/resources/dokka/inbound-link-resolver/java-layout-html.properties
index 3b61eabe..3b61eabe 100644
--- a/core/src/main/resources/dokka/inbound-link-resolver/java-layout-html.properties
+++ b/plugins/base/src/main/resources/dokka/inbound-link-resolver/java-layout-html.properties
diff --git a/core/src/main/resources/dokka/inbound-link-resolver/javadoc.properties b/plugins/base/src/main/resources/dokka/inbound-link-resolver/javadoc.properties
index 0d5d7d17..0d5d7d17 100644
--- a/core/src/main/resources/dokka/inbound-link-resolver/javadoc.properties
+++ b/plugins/base/src/main/resources/dokka/inbound-link-resolver/javadoc.properties
diff --git a/core/src/main/resources/dokka/scripts/navigationLoader.js b/plugins/base/src/main/resources/dokka/scripts/navigationLoader.js
index cac46d2a..cac46d2a 100644
--- a/core/src/main/resources/dokka/scripts/navigationLoader.js
+++ b/plugins/base/src/main/resources/dokka/scripts/navigationLoader.js
diff --git a/core/src/main/resources/dokka/scripts/platformContentHandler.js b/plugins/base/src/main/resources/dokka/scripts/platformContentHandler.js
index 72c8daae..72c8daae 100644
--- a/core/src/main/resources/dokka/scripts/platformContentHandler.js
+++ b/plugins/base/src/main/resources/dokka/scripts/platformContentHandler.js
diff --git a/core/src/main/resources/dokka/scripts/scripts.js b/plugins/base/src/main/resources/dokka/scripts/scripts.js
index c2e29b9f..c2e29b9f 100644
--- a/core/src/main/resources/dokka/scripts/scripts.js
+++ b/plugins/base/src/main/resources/dokka/scripts/scripts.js
diff --git a/core/src/main/resources/dokka/scripts/search.js b/plugins/base/src/main/resources/dokka/scripts/search.js
index 04d88ab5..04d88ab5 100644
--- a/core/src/main/resources/dokka/scripts/search.js
+++ b/plugins/base/src/main/resources/dokka/scripts/search.js
diff --git a/core/src/main/resources/dokka/styles/jetbrains-mono.css b/plugins/base/src/main/resources/dokka/styles/jetbrains-mono.css
index 2af32a92..2af32a92 100644
--- a/core/src/main/resources/dokka/styles/jetbrains-mono.css
+++ b/plugins/base/src/main/resources/dokka/styles/jetbrains-mono.css
diff --git a/core/src/main/resources/dokka/styles/style.css b/plugins/base/src/main/resources/dokka/styles/style.css
index 6ba41db4..6ba41db4 100644
--- a/core/src/main/resources/dokka/styles/style.css
+++ b/plugins/base/src/main/resources/dokka/styles/style.css
diff --git a/settings.gradle.kts b/settings.gradle.kts
index 82bc8f5d..95ad24b0 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -32,3 +32,5 @@ pluginManagement {
gradlePluginPortal()
}
}
+include("plugins:base:search-component")
+findProject(":plugins:base:search-component")?.name = "search-component"