-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Scala doc fails to generate static site #15306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can reproduce the issue with 3.1.2. I also tried with 3.1.3-RC4 with the default site root ( |
There are few things going on there:
So you define a subsection and then in first element of array you provide only title. You need to define also
but this is the root section so the title is always the name of project.
|
- For the first issue, when a user set ./docs to the default value of ScalaSettings, the code only took a value that was not the default `siteRoot.nonDefault`. To fix this, I put a getOrElse to try and get the default value. - For the second problem, I noticed when I cloned the code that the user was calling layouts that did not exist. Be careful with this as it can indeed produce an error. Solving this problem was enough to remove the non-existent layout calls. Fixes: #15306
- For the first issue, when a user set ./docs to the default value of ScalaSettings, the code only took a value that was not the default `siteRoot.nonDefault`. To fix this, I put a getOrElse to try and get the default value. - For the second problem, I noticed when I cloned the code that the user was calling layouts that did not exist. Be careful with this as it can indeed produce an error. Solving this problem was enough to remove the non-existent layout calls. Fixes: #15306 [Cherry-picked 4e4552e]
Compiler version
3.1.2
Minimized code
A minimal repo created accoring to the scaladoc documentation.
Link to example repo: https://github.com/nicolasfara/scaladoc-test
Output
When
-siteroot
is set to:./docs
thesbt doc
task is successful but the files indocs/_docs/
are ignoreddocs
ordocs/
thesbt doc
task fails with the following exception:Stack trace
Expectation
I would expect the
sbt doc
task to generate the correct API documentation and render the files contained indocs/_docs
.The text was updated successfully, but these errors were encountered: