diff options
author | Tiem Song <tiembo@users.noreply.github.com> | 2019-02-15 05:24:21 -0800 |
---|---|---|
committer | Simon Ogorodnik <simon.ogorodnik@gmail.com> | 2019-02-15 16:24:21 +0300 |
commit | f2359e05347708e625d5a6b339010cda2adc30de (patch) | |
tree | 7fb775d89fefef8aceb001462f6ec523779eac07 | |
parent | fc3b668e2acefad7990b8ed02b9382c0c800a04e (diff) | |
download | dokka-f2359e05347708e625d5a6b339010cda2adc30de.tar.gz dokka-f2359e05347708e625d5a6b339010cda2adc30de.tar.bz2 dokka-f2359e05347708e625d5a6b339010cda2adc30de.zip |
Add instructions for configuring Dokka in IDEA (#386)
Porting over changes from https://github.com/google/dokka/pull/9
-rw-r--r-- | README.md | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -456,3 +456,25 @@ Basically, given the `documentation` as a model, we do this: Dokka is built with Gradle. To build it, use `./gradlew build`. Alternatively, open the project directory in IntelliJ IDEA and use the IDE to build and run Dokka. + +Here's how to import and configure Dokka in IntelliJ IDEA: + * Select "Open" from the IDEA welcome screen, or File > Open if a project is + already open +* Select the directory with your clone of Dokka + * Note: IDEA may have an error after the project is initally opened; it is OK + to ignore this as the next step will address this error +* After IDEA opens the project, select File > New > Module from existing sources + and select the `build.gradle` file from the root directory of your Dokka clone +* Use the default options and select "OK" +* After Dokka is loaded into IDEA, open the Gradle tool window (View > Tool + Windows > Gradle) and click on the top left "Refresh all Gradle projects" + button +* Verify the following project settings. In File > Settings > Build, Execution, + Deployment > Build Tools > Gradle > Runner: + * Ensure "Delegate IDE build/run actions to gradle" is checked + * "Gradle Test Runner" should be selected in the "Run tests using" drop-down + menu +* Note: After closing and re-opening the project, IDEA may give an error + message: "Error Loading Project: Cannot load 3 modules". Open up the details + of the error, and click "Remove Selected", as these module `.iml` files are + safe to remove. |