Fork me on GitHub
#scittle
<
2023-03-19
>
Daniel Slutsky15:03:10

Hi @borkdude. Following yesterdays chat at #C01ECA9AA74, I am working on a fork of Scittle with additional modules (MathBox.cljs for now, hopefully other viewers soon). Would you like to see such modules added to the official Scittle repo? Or is it better to keep them at a fork?

borkdude15:03:42

@daslu I think it's better to use the fork for now, until more people will need it

Daniel Slutsky15:03:10

Thanks, makes sense.

borkdude15:03:15

can you show a link to your fork, just out of interest

Daniel Slutsky15:03:30

Here is the fork: https://github.com/scicloj/scittle Here is the commit adding MathBox.cljs: https://github.com/scicloj/scittle/commit/eb01deb3c31fe87b729ceee4eef123d17d52491e For some reason, I could not make it render on Github Pages yet, so cannot share a link to the html result.

borkdude15:03:00

ok, cool, so copy-ns was sufficient

👍 2
Daniel Slutsky15:03:11

By the way, I found this commit by @markus.agwin quite useful as a tutorial for extending Scittle: https://github.com/kloimhardt/scittle/commit/11dd0a1d1535a0a39224a41c3e5a494036f5fe6a In general, the advice by Markus has been so helpful.

Daniel Slutsky15:03:57

By the way, @borkdude, could you explain why you needed that special setup for Github Pages, rather than just serving the files created under Scittle's https://github.com/scicloj/scittle/tree/main/resources/public?

borkdude15:03:09

I didn't want to check in the HTML / JS into the github repo

🙏 2
borkdude15:03:35

@daslu but cljs-showcase has a much better setup for github pages: https://github.com/borkdude/cljs-showcase

borkdude15:03:41

so I'll just use that next time

borkdude15:03:05

(just check the .github workflows thing)

Daniel Slutsky15:03:29

yes I see, thanks! so much to learn from 👀

borkdude16:03:51

@daslu I hope you're not struggling with that gh-pages setup. Maybe it would just be easier to switch scittle to the cljs-showcase approach, I'd be open to that

Daniel Slutsky16:03:35

Thanks so much 🙂 For now, I'm using a simplified version of your Scittle release.clj script. It is quite nice, actually.

Daniel Slutsky16:03:40

Here is the gh-pages page of MathBox.cljs running with (a fork of) Scittle: https://scicloj.github.io/scittle/mathbox.html

borkdude16:03:04

excellent!

🙏 2
borkdude16:03:29

It's going smooth at 60fps

🙂 2
Daniel Slutsky16:03:40

Here is the gh-pages page of MathBox.cljs running with (a fork of) Scittle: https://scicloj.github.io/scittle/mathbox.html