Add doc command to generate documentation via underlying scaladoc
See original GitHub issueIs your feature request related to a problem? Please describe. It would be really nice to be able to generate documentation without having to switch to sbt or install the scala binaries manually.
Describe the solution you’d like
Let scala-cli doc .
generate documentation for the code in the current dir, for example written to a dir named doc
or similar.
Additional context
This would mean that scala-cli needs to install and call scaladoc. There are also various options to scaladoc that somehow should be possible to control from scala-cli doc
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Guide to Scaladoc | Baeldung on Scala
In this tutorial, we'll learn how to add Scaladoc to code for a Scala project. Then, we'll generate the Scaladoc from the added...
Read more >How to generate Scala documentation with the 'scaladoc' ...
To generate Scaladoc API documentation, document your code using Scaladoc ... the documentation using an SBT task or the scaladoc command.
Read more >Generating Scaladoc
There are two ways to generate API documentation in HTML from your Scala code. Those options are: use sbt to do it,; use...
Read more >Scaladoc tutorial for docs.scala-lang.org
Using Scaladoc. scaladoc is able to generate documentation for your code based on the doc comments you added in the source code. But...
Read more >14.8. Generating Documentation with scaladoc
To generate Scaladoc API documentation, document your code using Scaladoc tags, and then create the documentation using an SBT task or the scaladoc...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I agree, that there should be a user-friendly option for generating documentation.
Instead of giving hint how to extract the jar, it wants to add a new flag/command that will generate the documentation I’m trying to do it in #991
So one easy fix for now is that the scala-cli package --doc commant could give a hint on how to unpack the jar to get the site with some helpful message printed? People might be used to the sbt doc behavior where the site is not jarred but available uncompressed in target, and it is perhaps not obvious that the jar contains the static site…