aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/content
AgeCommit message (Collapse)Author
2023-10-25[K2] Reorganize project model for MPP (#3236)Vadim Mishenev
* Reorganize project model for MPP We map Dokka's source set directly to a source module of Analysis API inside one Analysis Standalone session. Analysis API session is created in src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/symbols/plugin/KotlinAnalysis.kt (see fun createAnalysisSession) Before the PR, one Dokka's source set corresponded to one Standalone API session with one source module that has source roots from dependent source sets. * Add 'caffeine' dependency from Analysis API * Fix sample provider * Fix tests * Enable tests and update the version of Analysis API. The PR allows the enabling of some tests annotated with OnlyDescriptorsMPP. Also, tests with OnlyDescriptorsMPP that have unresolved common symbols are fixed by the new version of Analysis API.
2023-10-24[K2] Enable Java tests for symbols (#3203)Vadim Mishenev
2023-10-05Register Kotlin stdlib classpath in every unit test (#3183)Vadim Mishenev
Due to the recent changes in how Analysis API handles builtins, the update to the fresh version of Analysis API requires registering Kotlin stdlib in every testsuite.
2023-08-31Update copyright (#3149)Ignat Beresnev
* Add the default copyright profile and enable IDEA project settings * Add the license notice file
2023-08-30Migrate to JUnit 5 and unify used test API (#3138)Ignat Beresnev
2023-08-28 Support Dokka K2 analysis (#3094)Vadim Mishenev
Dokka has its own documentable model to represent analyzed code. The analysis is performed by a compiler frontend. In K1 the compiler frontend has descriptors that use the underlying Binding Context (global shared stateful structure). Dokka just maps descriptors to Documentable by DefaultDescriptorToDocumentableTranslator. K2 compiler has FIR tree, which means “Frontend Intermediate Representation”, instead of Binding Context. But we do not use FIR in Dokka directly, since it is too low-level for analysis. The Kotlin compiler provides high-level Analysis API for this case. The API is used by KSP too. Analysis API represent elements of FIR (declarations, parameters and so on) as Symbols. For more details see KtSymbolByFirBuilder, KtSymbol. For Dokka symbol is the replacement of descriptor in K2. Also, to set up the environment of project analysis in K1 we use idea dependencies (or copy-past from there). In K2 for these aims, there is a Standalone mode for Analysis API.
2023-08-08Fix and refactor Sample Transformer (#3102)Vadim Mishenev
2023-07-26Fix some tests to be compatible with K2 (#3086)Vadim Mishenev
2023-07-05Decompose Kotlin/Java analysis (#3034)Ignat Beresnev
* Extract analysis into separate modules
2023-06-30Generate dedicated pages for typealiases (#3051)Vadim Mishenev
2023-02-24Reorganize tabs for Classlike (#2764)Vadim Mishenev
2023-02-13Set default SinceKotlin version for Wasm platformIlya Gorbunov
2023-02-07Set default SinceKotlin version for Common to 1.0Ilya Gorbunov
Avoids the confusion when original 1.0 declarations can be thought of having since kotlin version 1.2 because their common documentation is shown on the first tab. Common declaration are removed from documentation versions < 1.2 with a different approach - by not configuring a common source set.
2023-01-09Move inheritors, params, see also and samples tabs to description for ↵Andrey Tyrin
classlikes (#2749)
2022-12-16Display `SinceKotlin` everywhere (#2708)Vadim Mishenev
* Introduce `extraOptions` * Make 'SinceKotlin' option * Display 'SinceKotlin' everywhere * Dump API * Fix CLI bug * Show custom tags in property brief * Show custom tags in extension brief * Show `SinceKotlin` for TypeAlias * Fix `stdlib.diff` * Add a test * Display doc for actual typealias * Propagate SinceKotlin * Refactor * Refactor in `SinceKotlinTransformer` * Revert "Introduce `extraOptions`" This reverts commit b83fdf5da31a97e2ae037f46a735d34a2f84d2ec. * Revert "Make 'SinceKotlin' option" This reverts commit 69f4641d1776f3a4bcd361919212c2de7fa2364e. * Introduce `dokka.SinceKotlin` system property instead of extra arg * Fix API * Fix tests * Rename * Spread on extensions * Put doc and rename prop
2022-10-31Add constructor keyword (#2691)Andrey Tyrin
2022-10-20Do not render default value for var properties (#2717)Ignat Beresnev
2022-09-20Update `prism.js` to match new webhelp highlight colors (#2670)Ignat Beresnev
2022-09-02Underline `@param` tag key for more consistency (#2643)Ignat Beresnev
* Underline `@param` tag key for more consistency * Correct keyValue table column ratio
2022-08-26Do not render constructor pages and blocks and for annotation classes (#2642)Ignat Beresnev
2022-08-24Fix incorrect handling of static members used within `@see` tag (#2627)Ignat Beresnev
2022-08-18Add deprecation details block (#2622)Ignat Beresnev
2022-08-03Apply the same style to all KDoc tags, including throws/see/parameters (#2587)Ignat Beresnev
2022-04-29Enable warnings as errors and fix all warnings (#2451)Ignat Beresnev
* Enable warnings as errors and fix all warnings * Enable skip-metadata-version-check compiler setting
2022-02-21Add option to merge implicit expect-actual declarations (#2316)Vadim Mishenev
* Add option to merge implicit expect-actual declarations * Merge entries, constructors * Fix StdLib integration test * Add doc
2022-01-27Enhance generated primary constructor signature for html format (#2313)Ignat Beresnev
Fixes #1880
2022-01-27KT-50292 - Implement vertical alignment of parameters (#2309)Ignat Beresnev
* Implement vertical alignment (wrapping) of parameters for kt * Add tests for params wrapping and extend matchers to check for classes * Add distinguishable parameters block to kotlinAsJava, extract common logic * Create a separate Kind for symbol function parameters
2021-12-23Remove filtering out primary constructors from constructors tab (#2277)Andrzej Ratajczak
2021-12-23Introduce documentedVisibilities setting (#2270)Ignat Beresnev
* Introduce `documentedVisibilities` setting * Remove hardcoded doc generation for Visibility.PUBLIC, correct tests * Add maven, gradle and cli integration tests for documentedVisibilities * Fix maven plugin configuration overriding the default value * Remove test debug prints * Correct an inconsistency with default values and leave a comment of intentions * Add a test for visibility of private setter
2021-12-22Fix css bugs wih link and table row (#2284)Vadim Mishenev
* Remove extra top margin in paragraph * Remove margin-bottom from platform-hinted * Fix link underlining in table and anchor icon * Make breakable names of constructors * Add test for breakable name of constructor
2021-11-12Unite platforms bookmarks rows (#2219)vmishenev
2021-09-24Fix whitespaces inside `@link` tag (#2156)vmishenev
2021-09-20Make see tag display as other tables (#2153)Marcin Aman
2021-08-30Handle `@link` tagvmishenev
2021-08-27Cleanup and version bump to 1.5.30Marcin Aman
2021-08-27Restore language level to 1.4Marcin Aman
2021-08-26Bump compiler to 1.5.30, language level to 1.5Marcin Aman
2021-08-25Merge pull request #2066 from Kotlin/webhelp-like-frontendMarcin Aman
Webhelp like frontend
2021-08-25Manual highlighting webhelp (#2079)vmishenev
* Add manual code highlighting * Fix test * Add kotlinAsJava highlighting * Add runtime highlighting via Prism * Add copy-button for code block * Add tests and refactor * Replace `<br>` for prism.js * Parse trivial default values Co-authored-by: Marcin Aman <marcin.aman@gmail.com>
2021-08-21Make briefs contain first paragraph as in spec, resolve issues with i.e. (#2048)Marcin Aman
* Make briefs contain first paragraph as in spec, resolve issues with i.e. * Html and the end
2021-08-09Keep formatting within code inline (#2060)vmishenev
2021-07-30Add boolean, nullable types of annotation parameter valuevmishenev
2021-07-28Missing receiver docs (#2026)Marcin Aman
2021-07-23Add numeric types of annotation parameter value (#2035)vmishenev
2021-07-22Fix overflow in throws tables (#2028)Marcin Aman
2021-07-12Handle NBSP and other html entries (#2005)Marcin Aman
2021-02-05Annotations for parameters (#1710)Marcin Aman
* Annotations for parameters * Annotations for parameters
2021-01-20Bring back displaying jvm name when KaJ is not present (#1702)Marcin Aman
2020-12-29Parsing of JvmName (#1675)Marcin Aman
* Parsing of JvmName * Make JvmName processor run after KaJ
2020-12-15Fix wrong docs on DProperty (#1671)Marcin Aman