Skip to content

ChidiRnweke/scala-js-website

This branch is 1 commit ahead of, 37 commits behind scala-js/scala-js-website:main.

Folders and files

NameName
Last commit message
Last commit date
Feb 4, 2023
Feb 11, 2022
Mar 23, 2023
Mar 23, 2023
Apr 20, 2023
Nov 29, 2018
Feb 27, 2016
Dec 31, 2023
Feb 4, 2023
Dec 20, 2023
Dec 20, 2023
Feb 5, 2024
Feb 14, 2022
Nov 10, 2015
Nov 29, 2018
Dec 17, 2022
Feb 4, 2023
Feb 11, 2022
Mar 16, 2023
Feb 4, 2023
Feb 24, 2021
Dec 28, 2023
Nov 14, 2015
Feb 24, 2013
Sep 23, 2023
May 31, 2018
Apr 24, 2023
Nov 14, 2015
Feb 27, 2016
Jan 13, 2012

Repository files navigation

Website for Scala.js

This is the source code for the Scala.js website at http://www.scala-js.org/.

If you intended to look at the Scala.js source code itself, you can find it here: github.com/scala-js/scala-js.

Contributing

The key to contributing is being able to edit and preview your content. Your pull requests are welcome!

Set up

With Docker

You need to have Docker Engine and Docker Compose installed on your machine. Under Mac OS (Intel or Apple silicon), instead of installing Docker Desktop you can also use HomeBrew with Colima: brew install colima docker docker-compose.

docker-compose up --build

On Linux you may have to prefix that command with sudo, depending on your Docker setup.

The generated site is available at http://localhost:4000.

When the website dependencies change (the content of the Gemfile), you have to kill and re-run the command.

If you have problems with the Docker image or want to force the rebuild of the Docker image:

docker-compose build --no-cache

Manually with Ruby tooling

As this website is built with Jekyll, we will need to set up some Ruby tooling.

First, install RVM (Ruby Version Manager): https://rvm.io/rvm/install Then run the following commands:

$ rvm use 2.7.5 --install

# Set up Bundler, a Ruby package manager
# It downloads dependencies specified in a Gemfile
# but into a local path unlike gem
$ gem install bundler
 # and if this fails, try installing libffi first (distro-specific):
 # sudo apt install libffi-dev

# Install dependencies such as Jekyll and its plugins:
$ bundle install

# Do a full build:
$ bundle exec jekyll build

Editing live

This is what you would do after the initial installation:

$ bundle exec jekyll serve --watch

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 49.9%
  • HTML 27.0%
  • Ruby 12.0%
  • SCSS 10.1%
  • Other 1.0%