Skip to content
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

Fetch Inkuire at scaladoc build instead of documentation generation #13287

Merged

Conversation

pikinier20
Copy link
Contributor

closes #13272

sbt doesn't provide an API for downloading files from internet so I need to use scala.sys.process. However, the process didn't timeout if the machine was offline so I wrapped that in Future and await result for 20s. I think it's enough considering the file size is 1mb.

@pikinier20 pikinier20 force-pushed the scaladoc/scaladoc-offline-generation branch from 049ffae to 5fd6ce7 Compare August 12, 2021 13:25
import _root_.scala.sys.process._
import _root_.scala.concurrent._
import ExecutionContext.Implicits.global
val inkuireLink = "https://github.com/VirtusLab/Inkuire/releases/download/1.0.0-M2/inkuire.js"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you extract 1.0.0-M2 into an inkuireVersion val?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@pikinier20 pikinier20 force-pushed the scaladoc/scaladoc-offline-generation branch from 5fd6ce7 to a5affd3 Compare August 12, 2021 13:35
@pikinier20 pikinier20 merged commit 7945794 into scala:master Aug 12, 2021
@Kordyjan Kordyjan added this to the 3.1.0 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rendering documentation with scaladoc should work offline
3 participants