Why scaladoc can not handle http doc hosting #15561
Replies: 6 comments 4 replies
-
I normally view generated Scaladoc without using any HTTP server at all — I just open the HTML files in my browser directly. But I see that the doc says:
Note that JDK 17 added https://docs.oracle.com/en/java/javase/17/docs/api/jdk.httpserver/module-summary.html which could be used instead of Python for this — for users who are on JDK 17 or higher, anyway. |
Beta Was this translation helpful? Give feedback.
-
FWIW, the IDE IntelliJ provides an HTTP server for you (click on a file, and then select Open in browser). This is what I use, currently. I agree that it would be good to put something in the documentation that does not rely on Python, though… In which page of the documentation is this? |
Beta Was this translation helpful? Give feedback.
-
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpHandler;
import com.sun.net.httpserver.HttpServer; I guess we can implement a very simple Http static file server only depends on JDK api |
Beta Was this translation helpful? Give feedback.
-
or any other better solution |
Beta Was this translation helpful? Give feedback.
-
Wanted to drop in here and say that this should 100% be a part of Scaladoc. I find it super odd that the Scaladoc instructions mention using Python to view them to get the full features. Just in general I don't think people will expect this, and apart from the readme, it wasn't part of the docs. I just opened this to try to make that clearer, but I really don't think this should be relying on Python. |
Beta Was this translation helpful? Give feedback.
-
JDK 18 also has provided a
|
Beta Was this translation helpful? Give feedback.
-
By the document we can see:
How hard is it we have a builtin http static server hosting the document ?
why we need python?
We already have scala, who need a python3 as well?
suggest: why not put a http server inside scaladoc
that can hosting document in localhost:8080
Beta Was this translation helpful? Give feedback.
All reactions