scaladoc(1)
π scaladoc β bestie edition π
okay so this is the scaladoc(1) page, from the USER COMMANDS chapter, and it's literally the documentation generator for the Scala 2 language. no cap. let's get into it β¨
β¨ NAME β¨
scaladoc β Documentation generator for the Scala 2 language π
πΈ SYNOPSIS πΈ
scaladoc [ <options> ] <source files>
π¦ PARAMETERS π¦
<options>β Command line options, bestie. See OPTIONS below π<source files>β One or more source files to be compiled (such asMyClass.scala). yes you need at least one, she's not gonna read your mind π
π DESCRIPTION π
The scaladoc tool reads class and object definitions, written in the Scala 2 programming language, and generates their API as HTML files. it's giving "turn my code into a whole website" and honestly? iconic.
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). so if you want your docs somewhere else, speak now or forever hold your peace π«Ά
The recognised format of comments in source is described in the online documentation π
π OPTIONS π
β Standard Options β
-d <directory>β Specify where to generate documentation. this is the one that decides where all your cute HTML files land π-versionβ Print product version and exit. short and sweet, she says her version then dips π¨-helpβ Print a synopsis of available options. your girl's got a menu and she's happy to share it β¨
π Documentation Options π
-doc-title <title>β Define the overall title of the documentation, typically the name of the library being documented. main character energy for your whole doc set π-doc-version <version>β Define the overall version number of the documentation, typically the version of the library being documented. slay, version it properly π§-doc-source-url <url>β Define a URL to be concatenated with source locations for link to source files. yes, it literally just gets glued onto the source locations, that's the whole vibe π-doc-external-doc <external-doc>β Define a comma-separated list ofclasspath_entry_path#doc_URLpairs describing external dependencies. note the#in there, that's the separator, don't lose it π
π Compiler Options π
-verboseβ Output messages about what the compiler is doing. she's gonna narrate her whole process, and honestly we love that for her π-deprecationβ Indicate whether source should be compiled with deprecation information; defaults to off (accepted values are:on,off,yesandno)
Available since Scala version 2.2.1
ok so the default is off, meaning if you don't say anything she's not gonna bother. and the accepted values are literallyon,off,yesandnoβ pick one bestie πΈ
-classpath <path>β Specify where to find user class files (on Unix-based systems a colon-separated list of paths, on Windows-based systems, a semicolon-separate list of paths). This does not override the built-in ("boot") search path.
The default class path is the current directory. Setting the 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.
lowkey the most important gotcha on this whole page: the moment you override the classpath, the default current-directory behaviour is gone. if you still want it in there you have to literally write "." yourself. no takebacks π«
-sourcepath <path>β Specify where to find input source files. where she goes looking for your.scalafiles π-bootclasspath <path>β Override location of bootstrap class files (where to find the standard built-in classes, such as"scala.List"). this is the boot search path, and yeah she'll let you override it π-extdirs <dirs>β Override location of installed extensions.-encoding <encoding>β Specify character encoding used by source files.
The default value is platform-specific (Linux: "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
so Linux defaults to"UTF8"and Windows defaults to"Cp1252", and if you wanna double check what YOUR machine is on, run that little snippet above in the Scala interpreter. she'll tell you the truth π§
π₯ EXIT STATUS π₯
scaladoc returns a zero exit status if it succeeds at processing the specified input files. Non zero is returned in case of failure.
so: 0 = we ate π
, anything else = we did not eat π
π AUTHORS π
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).
shoutout to the whole lineage fr fr, this tool has ancestors and they all deserve their flowers πΈπΊπ·
π SEE ALSO π
fsc(1), scala(1), scalac(1), scalap(1)
and that's the whole page bestie!! this one's version 2.0, dated June 2010 β yeah she's vintage but she still serves πβ¨ go generate some docs, ily, bye π«Άπ
π¦ where this page comes from
- debian bookworm: scala 2.11.12-5 Β· BSD-3-Clause
- debian trixie: scala 2.11.12-6 Β· BSD-3-Clause
- ubuntu jammy: scala 2.11.12-5 Β· BSD-3-Clause
- ubuntu noble: scala 2.11.12-5 Β· BSD-3-Clause
- ubuntu questing: scala 2.11.12-6
- ubuntu resolute: scala 2.11.12-6build1 Β· BSD-3-Clause
- ubuntu stonking: scala 2.11.12-6build1 Β· BSD-3-Clause
- (c) 2002-2013, LAMP/EPFL #
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms