GithubHelp home page GithubHelp logo

vipulnsward / www.ruby-lang.org Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ruby/www.ruby-lang.org

0.0 1.0 0.0 36.77 MB

Source of the www.ruby-lang.org site

Home Page: http://www.ruby-lang.org

Ruby 33.80% HTML 39.26% JavaScript 1.43% CSS 25.52%

www.ruby-lang.org's Introduction

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.

www.ruby-lang.org's People

Contributors

stomar avatar hsbt avatar postmodern avatar juanitofatas avatar makimoto avatar marocchino avatar gazay avatar crabonature avatar quintus avatar namsk avatar sorah avatar alepore avatar chikamichi avatar razum2um avatar andorchen avatar vic avatar nono avatar goz avatar spk avatar groguelon avatar kennyadsl avatar nurse avatar unak avatar chatgris avatar gmitrev avatar abinoam avatar hone avatar arbox avatar dabit avatar mishin avatar

Watchers

Vipul A M avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.