You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any markdown that has a link to another local file. Scaladoc will always strip the extension and add '.html'. This results in invalid links if the original link points to other static files that will not be converted to html.
E.g. assume the following files:
foo.pdf
content.md
where content.md:
look at the documentation [here](foo.pdf)
Output
content.html will have a link to foo.html, which does not exist.
Expectation
content.html should have a link to foo.pdf
The text was updated successfully, but these errors were encountered:
It's partially a bug. It should work when the resource indeed exists at given location. Otherwise there is a bug in fallback strategy, that assumes that it has to be link to the scala element (class, method, etc.) but it doesn't check whether that made up "class" or "method" actually exists.
On the other hand I think we didn't support yet copying static resources, so it will always fail for local elements, because it won't find them, therefore assume it is DRI link, will make .html extension and so on...
Nonetheless, we should fix the check (Locations.scala:84) and support local resources.
DRI is an identifier to formerly mentioned "class" or "method" or any other construct worth documenting. It name is inherited from dokka doctool, on which new scaladoc used to be based on. It stands for Dokka Resource Identifier. As for now, we removed dokka dependency (since it is too heavy for our needs), so the name can change in the near future.
I added extra directory inside docs root directory called resources. The semantic is identical to images directory. Please place all your static resources like pdfs etc. under that directory and in code reference them by [here](/resources/foo.pdf)
Compiler version
RC1
Minimized code
Any markdown that has a link to another local file. Scaladoc will always strip the extension and add '.html'. This results in invalid links if the original link points to other static files that will not be converted to html.
E.g. assume the following files:
where content.md:
Output
content.html
will have a link tofoo.html
, which does not exist.Expectation
content.html
should have a link tofoo.pdf
The text was updated successfully, but these errors were encountered: