Skip to content

Commit d5d75aa

Browse files
Mr3zeevnikolova
andauthored
Added IDE plugin docs (#273)
* Added IDE plugin docs * edit texts for grammar and legibility and break down IDE plugin topic into chapters * Fix typo --------- Co-authored-by: Viktoriya Nikolova <[email protected]>
1 parent 13e4780 commit d5d75aa

File tree

5 files changed

+64
-2
lines changed

5 files changed

+64
-2
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,12 @@ Check out our [getting started guide](https://kotlin.github.io/kotlinx-rpc) for
101101

102102
## Configure the project
103103

104-
### Plugin dependencies
104+
### Plugin for IntelliJ-based IDEs
105+
106+
To ensure that all IDE features of our compiler plugin work properly on IntelliJ-based IDEs, install the
107+
[Kotlin External FIR Support](https://plugins.jetbrains.com/plugin/26480-kotlin-external-fir-support?noRedirect=true) plugin.
108+
109+
### Gradle plugins
105110

106111
`kotlinx.rpc` provides Gradle plugin `org.jetbrains.kotlinx.rpc.plugin`
107112
that will set up code generation in a project.

docs/pages/kotlinx-rpc/rpc.tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
start-page="get-started.topic">
1212

1313
<toc-element topic="get-started.topic"/>
14+
<toc-element topic="ide-plugin.topic"/>
1415
<toc-element topic="plugins.topic"/>
1516
<toc-element toc-title="Core concepts">
1617
<toc-element topic="services.topic"/>

docs/pages/kotlinx-rpc/topics/get-started.topic

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@
4141
including but not limited to <a href="https://grpc.io">gRPC</a>.
4242
</p>
4343
</chapter>
44+
<chapter title="IDE Plugin" id="install-ide-plugin">
45+
<p>
46+
Library uses a Kotlin compiler plugin to generate declarations.
47+
To make this work in Intellij-based IDEs,
48+
we provide <a href="https://plugins.jetbrains.com/plugin/26480-kotlin-external-fir-support?noRedirect=true">Kotlin External FIR Support</a> plugin.
49+
</p>
50+
<p>
51+
To learn more, see <a href="ide-plugin.topic"/> page
52+
</p>
53+
</chapter>
4454
<chapter title="Installation" id="installation">
4555
<p>Before adding <code>kotlinx.rpc</code> dependencies, you need to configure your project with <a
4656
href="https://docs.gradle.org/current/userguide/userguide.html">Gradle</a>.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE topic
3+
SYSTEM "https://resources.jetbrains.com/writerside/1.0/xhtml-entities.dtd">
4+
<topic xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/topic.v2.xsd"
6+
title="IDE Plugin" id="ide-plugin">
7+
8+
<p>
9+
The <code>kotlinx.rpc</code> library uses an external Kotlin compiler plugin to generate declarations.
10+
To ensure compatibility with IntelliJ-based IDEs, we provide the
11+
<a href="https://plugins.jetbrains.com/plugin/26480-kotlin-external-fir-support?noRedirect=true">
12+
Kotlin External FIR Support
13+
</a>
14+
plugin.
15+
</p>
16+
<chapter title="Supported versions" id="supported-versions">
17+
<p>
18+
The plugin is based on experimental IDE functionality,
19+
which means that only newer IDE versions are supported.
20+
For full compatibility guidelines, refer to the
21+
<a href="https://plugins.jetbrains.com/plugin/26480-kotlin-external-fir-support?noRedirect=true">
22+
the plugin documentation on the JetBrains Marketplace
23+
</a>
24+
.
25+
</p>
26+
</chapter>
27+
<chapter title="Configuration" id="config">
28+
<p>
29+
No additional configuration is required. The plugin works automatically upon installation.
30+
</p>
31+
</chapter>
32+
<chapter title="Limitations" id="limitations">
33+
<p>
34+
There are currently no known limitations when using the plugin on supported IDE versions.
35+
</p>
36+
<p>
37+
If you encounter issues, unexpected limitations, or bugs,
38+
please report them by creating a new issue on
39+
<a href="https://github.com/Mr3zee/kotlin-plugins/issues">
40+
GitHub
41+
</a>
42+
.
43+
</p>
44+
</chapter>
45+
46+
</topic>

docs/pages/kotlinx-rpc/topics/plugins.topic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
SYSTEM "https://resources.jetbrains.com/writerside/1.0/xhtml-entities.dtd">
88
<topic xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/topic.v2.xsd"
10-
title="Plugins" id="plugins">
10+
title="Gradle plugin" id="plugins">
1111
<p>
1212
The <code>kotlinx.rpc</code> library offers a <a href="https://docs.gradle.org/current/userguide/plugins.html">Gradle plugin</a>
1313
that simplifies project configuration by automating repetitive tasks: `org.jetbrains.kotlinx.rpc.plugin`

0 commit comments

Comments
 (0)