Skip to content

ruby/www.ruby-lang.org

Folders and files

NameName
Last commit message
Last commit date
Oct 31, 2024
Apr 18, 2025
May 24, 2024
Oct 29, 2021
Oct 31, 2021
Oct 31, 2022
Mar 4, 2019
Jan 1, 2025
Feb 20, 2025
Apr 18, 2025
Apr 14, 2025
Feb 25, 2025
Jan 1, 2025
Jul 31, 2024
Jan 1, 2025
Apr 18, 2025
Aug 28, 2023
Apr 18, 2025
Oct 31, 2024
Jan 1, 2025
Feb 26, 2025
Jan 1, 2025
Nov 8, 2014
Mar 2, 2023
Oct 30, 2022
Jan 1, 2025
Jan 1, 2025
Apr 17, 2025
Apr 17, 2025
Sep 30, 2019
Nov 30, 2015
Feb 18, 2025
Apr 2, 2025
Mar 23, 2024
Apr 25, 2023
Apr 25, 2023
Nov 7, 2013
Nov 2, 2021
Jul 11, 2017
Oct 29, 2021

Repository files navigation

Join the chat at https://gitter.im/ruby/www.ruby-lang.org

Build Status

This is the Jekyll source of the www.ruby-lang.org website.

How to Contribute?

You can contribute by reporting errors or suggesting improvements. Just open an issue or pull request.

This is a big project with many translations involved. Please help us stay on top of things by following our guidelines for contributors.

Get It!

Bundler will take care of the dependencies, so unless you already have done so, you might need to install bundler with:

gem install bundler

Then clone the repository and install the dependencies:

git clone https://github.com/ruby/www.ruby-lang.org.git
cd www.ruby-lang.org/
bundle config set --local without production
bundle install

Make Changes

Making changes is easy: just locate the Markdown source of the page you want to improve, then make your changes or add content.

If you plan to submit a pull request or want to preview your changes on Heroku, you need to

  • create a topic branch,
  • commit your changes to this branch.

See the project's wiki for some guidelines on how your commits and PRs should look like.

Preview Your Changes

Preview Locally

Generate the website with

bundle exec rake build

Then start a local web server with

bundle exec rake serve

Open http://localhost:4000/ in your browser to access the preview.

Note: The build of the site will take several minutes.

Alternatively, you can use Jekyll directly.

bundle exec jekyll serve --watch --future --incremental

If your draft uses future date, you may want to use --future option.

Preview on Heroku

In case a build is not possible on your local machine or you want to test your changes under production conditions you can also create a preview on Heroku.

  • Sign up for Heroku if you do not have an account yet.

  • Install the Heroku Toolbelt.

  • Unless you already have, cd into your local working copy of this repo.

  • Create a preview app on Heroku using the custom buildpack:

    heroku login
    heroku create --buildpack https://github.com/ruby/heroku-buildpack-www-ruby-lang.git
  • Push your feature branch:

    git push heroku feature_branch:master

    To create a preview of the master branch:

    git push heroku master

Open the preview in your browser with heroku open or retrieve the preview URL using heroku info and open it in your browser.

Testing

Besides generating and previewing the site you can perform additional tests with these tasks:

bundle exec rake lint          # run linter on markdown files
bundle exec rake check:markup  # check markup for all generated pages
bundle exec rake check:links   # check for 404's (needs a running local server)

More Information

For more information see the wiki.