typelevel / Laika

Site and E-book Generator and Customizable Text Markup Transformer for sbt, Scala and Scala.js
https://typelevel.org/Laika/
Apache License 2.0
410 stars 44 forks source link

Include local url in laikaPreview console message #494

Closed davesmith00000 closed 1 year ago

davesmith00000 commented 1 year ago

Hi,

I've been playing around with Laika and it's working really well.

A tiny quality of life enhancing improvement would be to alter this message, from:

Preview server started on port 4242. Press return/enter to exit.

To something like:

Preview server started at http://localhost:4242. Press return/enter to exit.

Most terminals will recognise a url, and this would allow people to click and immediately open their site in the default browser. Most if not all of the other similar tools I use do this.

Feel free to close this issue if there are good reasons not to do so.

Thanks!

jenshalm commented 1 year ago

Hello there and welcome. I am not aware of any downsides for making this change and it's trivial to do so. Unless someone comes up with any objections, I can include this in the next release (0.19.4).

jenshalm commented 1 year ago

Completed in #500.