Giter Club home page Giter Club logo

ucb-rdn.github.com's Introduction

UCB-RDN Documentation

(Note: Sphinx versions higher than 1.1.2 are required.)

A 2 branch system has been implemented to maintain a clean process of rebuilding this site.

  1. The source branch contains the restructured text documents and Sphinx configuration used to build the site. All direct editing of files should be made in the source branch.

  2. The master branch contains the processed and published web content that is derived by Sphinx from the source branch. These files should not be editted directly.

First Steps

  1. Set up ssh keys for git: https://help.github.com/articles/generating-ssh-keys

  2. Fork this repository (upper right hand corner of this site)

  3. Clone your fork

    git clone [email protected]:yourusername/ucb-rdn.github.com

  4. Add this repository as a remote called upstream

    cd ucb-rdn.github.com git remote add upstream [email protected]:ucb-rdn/ucb-rdn.github.com

  5. Create a branch called master that tracks the upstream master branch

    git fetch upstream git branch master --track upstream/master

Best practice workflow for contributing to site changes

  1. Checkout the source branch

    git checkout source

  2. Synchronize your branch with the repository (either pull or fetch and merge)

    git pull upstream

  3. Create a branch to contain your change

    git checkout -b add_some_info

  4. Make your changes in this branch

  5. Test you changes by using the gh-preview target

    make gh-preview

    This will build a version of the site in the gh-build directory of your branch, add_some_info. You can load it directly in a local browser.

  6. Repeat steps 4-5 until satisfied.

  7. Once satisfied with the source RST files, push your branch to the repo. Be sure to synchronize with any possible changes to the source branch first.

    git fetch upstream
    git rebase upstream/source
    git push upstream add_some_info
    
  8. Issue a pull request by going to your branch on the repo and clicking the "Pull Request" button.

Best practice for managing a pull request

  1. Synchronize your repository with the remote repo

    git fetch upstream

  2. Checkout the pull_request_branch

    git checkout -b pull_request_branch upstream/pull_request_branch

  3. Test the changes by using the gh-preview target

    make gh-preview

    This will build a version of the site in the gh-build directory in your branch, pull_request_branch. You can load it directly in a local browser.

  4. If satisfied, merge the pull_request_branch into the source branch. Be sure to synchronize with the remote repo first.

    git checkout source
    git fetch upstream
    git rebase upstream/source
    git merge pull_request_branch
    
  5. If there are no conflicts, push this to the repo

    git push upstream source

  6. Republish the pages with the gh-publish target.

    make gh-publish

Acknowledgements

This build workflow and readme instructions were inspired by the instructions at : http://blog.nikhilism.com/2012/08/automatic-github-pages-generation-from.html

ucb-rdn.github.com's People

Contributors

katyhuff avatar jeffseif avatar zwelchwi avatar scopatz avatar rachelslaybaugh avatar cdisanzo avatar mistermoose avatar kellyrowland avatar

Watchers

James Cloos 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.