Coder Social home page Coder Social logo

theunnamedplayer / git-scm.com Goto Github PK

View Code? Open in Web Editor NEW

This project forked from git/git-scm.com

0.0 2.0 0.0 59.43 MB

Current version of the http://git-scm.com site

Home Page: http://git-scm.com/

License: MIT License

Ruby 9.05% JavaScript 48.90% CSS 27.35% HTML 14.65% Shell 0.04%

git-scm.com's Introduction

Git Homepage Build Status

This is the web application for the git-scm.com site. It is meant to be the first place a person new to Git will land and download or learn about the Git SCM system.

This app is written in Ruby on Rails and deployed on Heroku.

Setup

You'll need a Ruby environment to run Rails. First do:

$ rvm use 2.1.2
$ bundle install

Then you need to create the database structure:

$ rake db:migrate

Now you'll want to populate the man pages. You can do so from a local Git source clone like this:

$ GIT_REPO=../git/.git rake local_index

Or you can do it from GitHub (much slower) like this:

$ export API_USER=github_username
$ export API_PASS=github_password
$ rake preindex

Now you need to get the latest downloads for the downloads pages:

$ rake downloads

Now you'll probably want some book data. You'll have to have access to the Pro Git project on GitHub through the API.

$ export API_USER=github_username
$ export API_PASS=github_password
$ rake remote_genbook

That will generate the book content from the Markdown files fetched from the online repository and post it to the Rails server database.

Now you can run the Rails site to take a look. Specify an UPDATE_TOKEN so you can use the world's stupidest authentication mechanism:

$ UPDATE_TOKEN=something rails server

The site should be running on http://localhost:3000

Testing

To run the tests for this project, run:

$ rspec

To run the website for testing purposes, run:

$ rails server

Contributing

If you wish to contribute to this website, please fork it on GitHub, push your change to a named branch, then send a pull request. If it is a big feature, you might want to start an Issue first to make sure it's something that will be accepted. If it involves code, please also write tests for it.

License

The source code for the site is licensed under the MIT license, which you can find in the MIT-LICENSE.txt file.

All graphical assets are licensed under the Creative Commons Attribution 3.0 Unported License.

git-scm.com's People

Contributors

atmos avatar ben avatar blackant avatar bleything avatar bry4n avatar carlosmn avatar fingolfin avatar gitster avatar jbarnette avatar jnavila avatar jordanmccullough avatar kevinsawicki avatar kheyse avatar koraktor avatar matthewmccullough avatar mmozuras avatar nickh avatar niik avatar paladox avatar pathawks avatar peff avatar pentix avatar qsuscs avatar schacon avatar shawndavenport avatar smith-kyle avatar tfnico avatar troyharvey avatar vtols avatar we11adam avatar

Watchers

 avatar  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.