scaladoc
– Documentation generator for the Scala 2 language
scaladoc
[ <options> ] <source files>
<options>
<source files>
MyClass.scala
).
The scaladoc
tool reads class and object definitions, written in the Scala 2 programming language, and generates their API as HTML files.
By default, the generator puts each HTML file in the same directory as its source file. You can specify a separate destination directory with –d
(see OPTIONS, below).
The recognised format of comments in source is described in the online documentation
–d <directory>
–version
–help
–doc-title <title>
–doc-version <version>
–doc-source-url <url>
–doc-external-doc <external-doc>
–verbose
–deprecation
off
(accepted values are: on
, off
, yes
and no
)
–classpath <path>
"boot"
) search path.
CLASSPATH
variable or using the -classpath
command-line option overrides that default, so if you want to include the current directory in the search path, you must include "."
in the new settings.
–sourcepath <path>
–bootclasspath <path>
scala.List
").–extdirs <dirs>
–encoding <encoding>
"UTF8"
, Windows: "Cp1252"
). Executing the following code in the Scala interpreter will return the default value on your system:
scala>
new java.io.InputStreamReader(System.in).getEncoding
scaladoc
returns a zero exit status if it succeeds at processing the specified input files. Non zero is returned in case of failure.
This version of Scaladoc was written by Gilles Dubochet with contributions by Pedro Furlanetto and Johannes Rudolph. It is based on the original Scaladoc (Sean McDirmid, Geoffrey Washburn, Vincent Cremet and Stéphane Micheloud), on vScaladoc (David Bernard), as well as on an unreleased version of Scaladoc 2 (Manohar Jonnalagedda).
fsc(1), scala(1), scalac(1), scalap(1)