fixup! KT-79489 Generate Stdlib API reference for webMain source set
diff --git a/libraries/stdlib/jsAndWasmJsCommon/src/kotlin/js/ExperimentalWasmJsInterop.kt b/libraries/stdlib/jsAndWasmJsCommon/src/kotlin/js/ExperimentalWasmJsInterop.kt
index 5fcbf77..a30ae82 100644
--- a/libraries/stdlib/jsAndWasmJsCommon/src/kotlin/js/ExperimentalWasmJsInterop.kt
+++ b/libraries/stdlib/jsAndWasmJsCommon/src/kotlin/js/ExperimentalWasmJsInterop.kt
@@ -1,5 +1,5 @@
/*
- * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Copyright 2010-2025 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
diff --git a/libraries/tools/kotlin-stdlib-docs/build.gradle.kts b/libraries/tools/kotlin-stdlib-docs/build.gradle.kts
index 14c4f31..b535671 100644
--- a/libraries/tools/kotlin-stdlib-docs/build.gradle.kts
+++ b/libraries/tools/kotlin-stdlib-docs/build.gradle.kts
@@ -139,6 +139,8 @@
sourceRoots.from("$kotlin_stdlib_dir/js/src/kotlin")
sourceRoots.from("$kotlin_stdlib_dir/js/builtins")
+ // We don't generate docs for the intermediate webMain source set, so to make
+ // regular declarations from it visible, they are explicitly included in js and wasm-js source sets.
sourceRoots.from("$kotlin_stdlib_dir/jsAndWasmJsCommon/src/kotlin/JsInterop.kt")
sourceRoots.from("$kotlin_stdlib_dir/jsAndWasmJsCommon/src/kotlin/js/ExperimentalWasmJsInterop.kt")
@@ -190,6 +192,8 @@
sourceRoots.from("$kotlin_stdlib_dir/wasm/js/builtins")
sourceRoots.from("$kotlin_stdlib_dir/wasm/js/internal")
sourceRoots.from("$kotlin_stdlib_dir/wasm/js/src")
+ // We don't generate docs for the intermediate webMain source set, so to make
+ // regular declarations from it visible, they are explicitly included in js and wasm-js source sets.
sourceRoots.from("$kotlin_stdlib_dir/jsAndWasmJsCommon/src/kotlin/JsInterop.kt")
sourceRoots.from("$kotlin_stdlib_dir/jsAndWasmJsCommon/src/kotlin/js/ExperimentalWasmJsInterop.kt")