-
Notifications
You must be signed in to change notification settings - Fork 1k
Refactor: Add documentation for the Scastie configuration #2810
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the investigation and the fix! Indeed, documenting this option seems important. There is something that is still unclear to me: how do we enable the “Scastie button”?
286145d
to
58680d6
Compare
58680d6
to
271d506
Compare
Thank you for the improvement. I think at some point we should also document better the whole feature that adds this “play” button, but that could be done in a separate PR. |
Thank you, okay sure, I can do it if it's not a problem. I was thinking of either a page or a part here dedicated to the explanation of the possible parameters after the ```of a blockquote. Or else a page dedicated to the explanation of Scastie and its possible uses, I haven't found much of a page talking about it on docs.scala-lang (except briefly if I'm not mistaken). |
That would be great if you can do it! 🙏 Is that feature related to the |
Ho sorry, I will see if I have any improvements to suggest but I notice the documentation is already there. Indeed, if I'm not mistaken, the "Getting Started" part explains how to activate all the snippets and then the "Advanced configuration" part explains how to individually activate a snippet as I did with sc:compile. I can even add an example for sc:compile and sc:nocompile because it is only the case for sc:fail in features overview. |
I have noticed that in most Scala projects using Scaladoc with snippets. When snippets were using external libraries, these did not work. Example:

Planned or just lack of interest to look into it further, the question remains "How to fix it?".
So I noticed that a -scastie-configuration flag was present but as discussed in Issue #16220 on Dotty, nothing explains how to use it or anything.
So when testing some things, I noticed that it was behaving like the "Add Extra Sbt Configuration" input of the Scastie web application.
And as soon as I added the following piece of code, the snippet worked as it should.
So the goal to this PR is to add some documentation about
-scastie-configuration
flag so the users can make the best use of Scastie.Fixes: scala/scala3#16220