Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Source of the https://www.ruby-lang.org website.
HTML Ruby CSS JavaScript
branch: master

Merge pull request #1056 from dabit/master

Translate latest security news and releases (es)
latest commit b6a47351d3
@dabit dabit authored
Failed to load latest commit information.
_includes enforce https
_layouts Small fix
_plugins set bg-color to user-agent language's column
admin Remove languages (suggested by @sorah)
bg Translate news from April 13 2015 (bg)
de Translate Ruby OpenSSL Hostname Matching Vulnerability (de)
en Fix misspellings in ruby from other languages (en, zh_cn)
es Translate latest security news and releases (es)
fr Remove 1.9 series from downloads
id Fix a translation error in documentation/index.md (id).
images Rename image file for more consistency
it Remove 1.9 series from downloads
ja Preferring bold instead of italic for Japanese
javascripts Simplify mobile menu behavior, avoid disabling top-level menu items w…
ko Fix locale
pl Remove 1.9 series from downloads
pt replace sha2 to sha256
ru Link to russian CVE-2015-1855 OpenSSL translation in release posts (ru)
security/20080823rexml Remove trailing whitespace
stylesheets Rename image file for more consistency
tr replace sha2 to sha256
vi Remove 1.9 series from downloads
zh_cn Fix misspellings in ruby from other languages (en, zh_cn)
zh_tw Should be 2.0.0-p645
.gitignore ignore bin and update latest dependency
.travis.yml bump version to Ruby 2.2.2
Gemfile use Ruby 2.2.2
Gemfile.lock merge master and bundle update
Procfile use unicorn instead of passenger, because to prevent to shell-shock risk
README.md fix typo
Rakefile Fix check:markup only print not valid page
_config.yml merge master and bundle update
config.ru use yaml
favicon.ico Proposed design for www.ruby-lang.org
index.html Fix YAML for nil/null layout
security.asc Added the PGP key used by Ruby Security.
unicorn.rb use unicorn instead of passenger, because to prevent to shell-shock risk

README.md

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!

The site uses Pygments for syntax highlighting. In order to generate the site locally, you need to have Python installed on your system (refer to the pygments.rb gem homepage for more detailed information).

Bundler will take care of the rest 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 install

To generate the site and start a local web server, you can use

bundle exec rake preview

Then open http://localhost:4000/ in your local browser to access the preview.

Note: The build of the site will take several minutes. If you created the site previously and the _site directory already exists, the web server will start instantly but large parts of the site will not be updated until the build has completely finished. Also, the build may fail silently when using the preview mode.

To always get feedback on the success of the build you might want to create the website without starting a local server instead:

bundle exec rake generate

When you now start a preview with the site already generated it will be available instantly.

Preview on Heroku

In case a build is not possible on your local machine you can also create a preview on Heroku.

git clone https://github.com/ruby/www.ruby-lang.org.git
cd www.ruby-lang.org
  • Create a feature branch.
  • Make changes or add content and commit.
  • Create preview app on Heroku using custom buildpack.
heroku login
heroku create --buildpack http://github.com/ruby/heroku-buildpack-ruby-jekyll.git
  • Push your site
git push heroku feature_branch:master
heroku open

To create a preview of the master branch:

git push heroku master
heroku open

Check

You can check 404 and markup with this tasks:

bundle exec rake check:links # check 404
bundle exec rake check:markup # check markup for all generated pages

More Information

For more information see the wiki.

Something went wrong with that request. Please try again.