scalacenter / scaladex

The Scala Package Index
https://index.scala-lang.org
BSD 3-Clause "New" or "Revised" License
195 stars 76 forks source link

Add Scastie Box Into Artifact Page #1374

Closed ayushkoli772 closed 2 months ago

ayushkoli772 commented 3 months ago

With this commit I have fixed the Scastie URL according to Try library, inside Artifact.scala

I will completely fix this issue with subsequent commits

@adpi2 Please review the changes to scastieUrl so I can move forward with adding it to artifact.scala.html

ayushkoli772 commented 3 months ago

Hello @adpi2, with this commit I fixed the Scastie URL and also added Scastie box

This how it looks after adding Scastie box-

image

And this is url you get when clicked on Try online with scastie box- https://scastie.scala-lang.org/try?g=org.typelevel&a=cats-core&v=2.8.0&o=typelevel&r=cats&t=JVM&sv=3.x

Also it adds the library in library list like this-

image

Are there any other changes you would like to suggest?

adpi2 commented 3 months ago

Also could you add some unit tests on this scastieURL method?

ayushkoli772 commented 2 months ago

With this commit, I have added unit tests for scastieURL method

This is terminal output after compile and test-

Screenshot from 2024-04-14 07-47-21

@adpi2 Please review. Thank you

ayushkoli772 commented 2 months ago

Done. Please review.

Thank you for your time