Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Source of thehttps://www.ruby-lang.org website.

NotificationsYou must be signed in to change notification settings

ruby/www.ruby-lang.org

Repository files navigation

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

Build Status

This is theJekyll source ofthewww.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 ourguidelines for contributors.

Get It!

Bundler will take care of the dependencies, so unless youalready 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.gitcd www.ruby-lang.org/bundle configset --local without productionbundle 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 changeson Heroku, you need to

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

See theproject's wiki for some guidelines on howyour commits and PRs should look like.

Preview Your Changes

Preview Locally

Generate the website with

bundleexec rake build

Then start a local web server with

bundleexec rake serve

Openhttp://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 machineor you want to test your changes under production conditionsyou can also create a preview on Heroku.

  • Sign up forHeroku if you do not havean account yet.

  • Install theHeroku 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 loginheroku 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 withheroku open orretrieve the preview URL usingheroku info and open it in your browser.

Testing

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

bundleexec rake lint# run linter on markdown filesbundleexec rake check:markup# check markup for all generated pagesbundleexec rake check:links# check for 404's (needs a running local server)

More Information

For more information see thewiki.


[8]ページ先頭

©2009-2025 Movatter.jp