Source of the https://www.ruby-lang.org website.
HTML Ruby CSS JavaScript
Latest commit 7ff59c2 Sep 29, 2016 @dabit dabit committed on GitHub Merge pull request #1461 from FerPerales/translate_ruby_240_prev2
Translate Ruby 2.4.0preview2 (es)
Permalink
Failed to load latest commit information.
_includes Use https in mailing list subscription form Nov 18, 2015
_layouts <meta charset> should be before <title> (#1421) Jul 7, 2016
_plugins Update plugins for Jekyll 3 May 19, 2016
admin Remove languages (suggested by @sorah) May 20, 2014
bg Use https://github.com instead of http://github.com (#1469) Sep 29, 2016
de Use https://github.com instead of http://github.com (#1469) Sep 29, 2016
en Use https://github.com instead of http://github.com (#1469) Sep 29, 2016
es Merge pull request #1461 from FerPerales/translate_ruby_240_prev2 Sep 29, 2016
fr Use https://github.com instead of http://github.com (#1469) Sep 29, 2016
id Use https://github.com instead of http://github.com (#1469) Sep 29, 2016
images Rename image file for more consistency Nov 23, 2014
it Use https://github.com instead of http://github.com (#1469) Sep 29, 2016
ja Use https://github.com instead of http://github.com (#1469) Sep 29, 2016
javascripts Simplify mobile menu behavior, avoid disabling top-level menu items w… Nov 28, 2013
ko Use https://github.com instead of http://github.com (#1469) Sep 29, 2016
pl Update URLs of rbenv and ruby-build (#1467) Sep 25, 2016
pt Use https://github.com instead of http://github.com (#1469) Sep 29, 2016
ru Use https://github.com instead of http://github.com (#1469) Sep 29, 2016
security/20080823rexml Remove trailing whitespace Nov 8, 2014
stylesheets Rename image file for more consistency Nov 23, 2014
tr Use https://github.com instead of http://github.com (#1469) Sep 29, 2016
vi Use https://github.com instead of http://github.com (#1469) Sep 29, 2016
zh_cn Use https://github.com instead of http://github.com (#1469) Sep 29, 2016
zh_tw Update URLs of rbenv and ruby-build (#1467) Sep 25, 2016
.gitignore ignore bin and update latest dependency Jul 12, 2013
.travis.yml Switch to Ruby 2.3.1 May 2, 2016
404.md Add simple custom 404 page Nov 30, 2015
Gemfile Upgrade to lanyon 0.4.0 Sep 3, 2016
Gemfile.lock bundle update jekyll 3.2.x Sep 20, 2016
Procfile use unicorn instead of passenger, because to prevent to shell-shock risk Oct 23, 2014
README.md Remove mention of Pygments from README Mar 12, 2016
Rakefile Build site using Lanyon's build method Apr 1, 2016
_config.yml Update maintenance status of Ruby 2.1 Aug 4, 2016
config.ru Update Japanese reference manual URL (#1464) Sep 21, 2016
favicon.ico Proposed design for www.ruby-lang.org Nov 21, 2013
index.html <meta charset> should be before <title> (#1421) Jul 7, 2016
security.asc Added the PGP key used by Ruby Security. Aug 6, 2011
unicorn.rb use unicorn instead of passenger, because to prevent to shell-shock risk Oct 23, 2014

README.md

www.ruby-lang.org

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 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:9292/ in your browser to access the preview.

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

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 check         # perform various tests on the source 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.