Skip to content

Commit d846d81

Browse files
authored
Merge pull request #11 from lightbend/docs
Add some more usage docs
2 parents 9b5a405 + 623b981 commit d846d81

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,28 @@ A [paradox](https://github.com/lightbend/paradox/) directive that automatically
1313
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox-apidoc" % "<latest>")
1414
```
1515

16+
You can now create 'grouped' javadoc/scaladoc references in paradox like:
17+
18+
```
19+
Look into the documentation for @apidoc[MyClass].
20+
```
21+
22+
This will automatically find the FQDN of the class when it is unique. When the
23+
name does not uniquely identify the class, the plugin will check for the
24+
`scaladsl`/`javadsl` package convention found in Akka projects. If that doesn't
25+
produce an unambigious result, you will have to use the FQDN.
26+
27+
To limit the packages that are searched for classes, configure the
28+
`apidocRootPackage` setting:
29+
30+
```
31+
import com.lightbend.paradox.apidoc.ApidocPlugin.autoImport.apidocRootPackage
32+
33+
(...)
34+
apidocRootPackage := "akka",
35+
(...)
36+
```
37+
1638
## License
1739

1840
The license is Apache 2.0, see LICENSE.

0 commit comments

Comments
 (0)