Skip to content

robbyrussell/www.ruby-lang.org

 
 

Repository files navigation

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

Build Status

This is the Jekyll source code for the official Ruby programming language website.

πŸš€ Quick Start

First time contributing? Welcome! This guide will help you get the website running locally in just a few steps.

Prerequisites

Get It Running

  1. Install Bundler (if you haven't already):

    gem install bundler
  2. Clone and setup the project:

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

    bundle exec rake serve
  4. View the website: Open http://localhost:4000/ in your browser

    ⏱️ Note: The initial build takes several minutes. Make some tea! 🍡

🀝 How to Contribute

Quick Fixes

  • Found a typo? Just edit the Markdown file and submit a pull request!
  • Broken link? Open an issue and we'll fix it quickly
  • Translation error? Check our translation guidelines

Making Changes

  1. Find the content: Website pages are in Markdown format in language-specific folders (e.g., en/, ja/, es/)
  2. Create a branch: git checkout -b fix-typo-in-getting-started
  3. Make your changes: Edit the Markdown files
  4. Test as you go: Run bundle exec rake serve to preview your changes
  5. Run the test suite: Before submitting, ensure all tests pass (see Testing section below)
  6. Submit: Open a pull request with a clear description

New to open source? Check out First Contributions for a beginner-friendly guide.

πŸ› οΈ Development

Local Development

# Quick development server (faster rebuilds)
bundle exec jekyll serve --watch --future --incremental

# Full build (for testing)
bundle exec rake build

Testing Your Changes

Important: Always run the full test suite before submitting a pull request:

bundle exec rake lint          # Check markdown formatting
bundle exec rake check:markup  # Validate HTML output
bundle exec rake check:links   # Check for broken links (requires local server)

You can run these tests while developing to catch issues early.

🌐 Translations

This project supports multiple languages! Each language has its own folder:

  • en/ - English (base language)
  • ja/ - Japanese
  • es/ - Spanish
  • fr/ - French
  • And many more...

Want to help translate? See our translation guide for detailed instructions.

πŸ“ Content Guidelines

  • Keep it simple: Write for a global audience of developers with varying English proficiency
  • Be clear: Use straightforward language that's easy to understand
  • Stay current: Update version numbers and examples regularly
  • Test your changes: Always preview locally before submitting

πŸ”§ Heroku Preview (Advanced)

If you can't build locally or want to test under production conditions:

  1. Setup Heroku: Sign up at heroku.com and install Heroku CLI

  2. Create preview app:

    heroku login
    heroku create --buildpack https://github.com/ruby/heroku-buildpack-www-ruby-lang.git
  3. Deploy your branch:

    git push heroku your-branch-name:master
    heroku open

πŸ’¬ Getting Help

πŸ“š More Information

For detailed contribution guidelines, coding standards, and project structure, see our wiki.


Thank you for helping make Ruby's website better for everyone! πŸŽ‰

About

Source of the https://www.ruby-lang.org website.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 45.7%
  • HTML 30.8%
  • CSS 17.0%
  • JavaScript 5.3%
  • TypeScript 1.2%