scalatutorials.com: interactive, bite-sized Scala tutorials that run in the browser. The tour pairs each lesson with a live editor powered by Scastie, and targets Scala 3.
./dev.shThat's it. The script:
- downloads the Tailwind CSS standalone CLI
to
.bin/on first run (no Node/npm needed), - installs the Jekyll gems via Bundler (
github-pages, matching what GitHub Pages runs), - starts Tailwind in watch mode and
jekyll serve --livereloadon http://localhost:4000.
One-shot production build: ./dev.sh build. If assets/css/site.css changed, commit it:
GitHub Pages doesn't run Tailwind, so the built stylesheet lives in the repo.
Prerequisite: Ruby with Bundler (rvm, rbenv, or Homebrew Ruby all work).
- Plain Jekyll (built automatically by GitHub Pages from
master), no theme framework. _data/tour.ymlis the single source of truth for tour ordering: the Contents dialog,/tour/page, and prev/next links all derive from it. To add a lesson, drop a markdown file intour/(front matter:layout: tour,title,code, optionallinks) and add one line to_data/tour.yml.- The editor pane renders the lesson's
codeas a plain<pre>, which Scastie'sembedded.jsupgrades to a live editor (worksheet mode, Scala 3). If Scastie is down, the code is still readable.
Fork, edit, and send a pull request. For tutorial content, keep snippets runnable in Scastie worksheet mode and valid Scala 3.