summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorWei "pw" Peng <write.to.peng.wei@gmail.com>2014-12-29 12:12:47 -0500
committerWei "pw" Peng <write.to.peng.wei@gmail.com>2015-01-07 11:44:43 -0500
commitef645cfa14ca7c0f9374d38849005923b84e6526 (patch)
treee76342220610fdebd3c751adde815a13dba29685 /README.md
parent0454e5c0698722f461221b42401ffddc5079aa9f (diff)
[Fix #930] Explain in README how to use local JVM API doc over the online version on Oracle's site.
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/README.md b/README.md
index 83161acc..c57115dc 100644
--- a/README.md
+++ b/README.md
@@ -382,6 +382,20 @@ helpful for identifying each host.
(setq cider-known-endpoints '(("host-a" "10.10.10.1" "7888") ("host-b" "7888")))
```
+* If you are targeting the JVM and prefer a local copy of the JDK API documentation over Oracle's official copy (e.g., for [JavaSE 8](http://docs.oracle.com/javase/8/docs/api/)), per nREPL's [`javadoc-info` logic (accurate as of 29 Dec 2014)](http://docs.oracle.com/javase/8/docs/api/), you can arrange your project to include the **root** path of the local API doc (i.e., where the `index.html` is located) to be included on your classpath (i.e., where the doc HTML files can be located by `clojure.java.io/resource`). For example, for Leiningen, with the local API path being `/usr/share/doc/java/api/`, put the following line in `project.clj`:
+
+```clj
+:dev {:resource-paths ["/usr/share/doc/java/api/"]}
+```
+
+**or** the following line in `$HOME/.lein/profiles.clj`:
+
+```clj
+:user {:resource-paths ["/usr/share/doc/java/api/"]}
+```
+
+More detail can be found [here](https://github.com/clojure-emacs/cider/issues/930).
+
### Running tests
* If your tests are not following the `some.ns-test` naming convention you can