scittle

Daniel Slutsky 2023-03-19T15:28:10.062529Z

Hi @borkdude. Following yesterdays chat at #emmy, 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?

borkdude 2023-03-19T15:32:42.628919Z

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

Daniel Slutsky 2023-03-19T15:37:10.490199Z

Thanks, makes sense.

borkdude 2023-03-19T15:38:15.305069Z

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

Daniel Slutsky 2023-03-19T15:46:30.827889Z

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.

borkdude 2023-03-19T15:51:00.207989Z

ok, cool, so copy-ns was sufficient

👍 1
Daniel Slutsky 2023-03-19T15:48:11.499819Z

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 Slutsky 2023-03-19T15:51:57.753629Z

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?

Daniel Slutsky 2023-03-19T15:53:09.216909Z

I meant this script: https://github.com/scicloj/scittle/blob/main/script/release.clj

borkdude 2023-03-19T15:53:09.499449Z

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

🙏 1
borkdude 2023-03-19T15:53:35.924339Z

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

borkdude 2023-03-19T15:53:41.397569Z

so I'll just use that next time

borkdude 2023-03-19T15:55:05.114219Z

(just check the .github workflows thing)

Daniel Slutsky 2023-03-19T15:55:29.243269Z

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

borkdude 2023-03-19T16:50:51.152319Z

@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 Slutsky 2023-03-19T16:51:35.602059Z

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

borkdude 2023-03-19T16:51:49.758769Z

cool

Daniel Slutsky 2023-03-19T16:53:40.634189Z

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

borkdude 2023-03-19T16:55:04.255179Z

excellent!

🙏 1
borkdude 2023-03-19T16:58:29.625859Z

It's going smooth at 60fps

🙂 1
borkdude 2023-03-19T16:59:08.407919Z

🙏 1