This is the Jekyll source code for the official Ruby programming language website.
First time contributing? Welcome! This guide will help you get the website running locally in just a few steps.
- Ruby (latest stable version recommended) - Install Ruby
- Git - Install Git
-
Install Bundler (if you haven't already):
gem install bundler
-
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
-
Start the development server:
bundle exec rake serve -
View the website: Open http://localhost:4000/ in your browser
β±οΈ Note: The initial build takes several minutes. Make some tea! π΅
- 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
- Find the content: Website pages are in Markdown format in language-specific folders (e.g.,
en/,ja/,es/) - Create a branch:
git checkout -b fix-typo-in-getting-started - Make your changes: Edit the Markdown files
- Test as you go: Run
bundle exec rake serveto preview your changes - Run the test suite: Before submitting, ensure all tests pass (see Testing section below)
- Submit: Open a pull request with a clear description
New to open source? Check out First Contributions for a beginner-friendly guide.
# Quick development server (faster rebuilds)
bundle exec jekyll serve --watch --future --incremental
# Full build (for testing)
bundle exec rake buildImportant: 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.
This project supports multiple languages! Each language has its own folder:
en/- English (base language)ja/- Japanesees/- Spanishfr/- French- And many more...
Want to help translate? See our translation guide for detailed instructions.
- 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
If you can't build locally or want to test under production conditions:
-
Setup Heroku: Sign up at heroku.com and install Heroku CLI
-
Create preview app:
heroku login heroku create --buildpack https://github.com/ruby/heroku-buildpack-www-ruby-lang.git
-
Deploy your branch:
git push heroku your-branch-name:master heroku open
- Questions? Join our Gitter chat
- Found a bug? Open an issue
- Need more info? Check the project wiki
For detailed contribution guidelines, coding standards, and project structure, see our wiki.
Thank you for helping make Ruby's website better for everyone! π