From cd12bba0d1895c8a28eee36771be72e21873f88e Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Tue, 14 Dec 2010 11:22:49 -0500 Subject: [PATCH] guide to making changes --- README | 4 +++ docs/changes.html | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ docs/index.html | 1 + 3 files changed, 88 insertions(+) create mode 100644 docs/changes.html diff --git a/README b/README index f219587..0fc135d 100644 --- a/README +++ b/README @@ -41,6 +41,10 @@ Minimal Example +Making Changes +If you've made a change to dygraphs and would like to contribute it back to the +community, please follow the guide at http://dygraphs.com/changes.html. + License(s) dygraphs uses: - rgbcolor.js (Public Domain) diff --git a/docs/changes.html b/docs/changes.html new file mode 100644 index 0000000..e476377 --- /dev/null +++ b/docs/changes.html @@ -0,0 +1,83 @@ + + + dygraphs input types + + + +

Guide to making dygraphs changes

+ +

So you've made a change to dygraphs and would like to contribute it back + to the open source project. Wonderful! This is a step-by-step guide + explaining how to do it.

+ +

The list of steps may look a bit daunting, but it's not too bad, + especially if you have any familiarity with git or github. If you run into + any problems while following the instructions, feel free to contact + dygraphs-users.

+ +

Why not just take patches? This process means less work for me (the + maintainer) and it also results in your name appearing in the list of + dygraphs commits. This lets you take credit for your work.

+ +
    +
  1. Create an account on github. This is + free, painless and will let you claim credit for your changes. + +
  2. Install git. github has a good writeup here. + +
  3. Create a fork of the dygraphs repository on github by + clicking this link and + then the "Fork" button. + +
  4. You should see a URL along the lines of + git@github.com:yourname/dygraphs.git
    Copy this, open up a + terminal and run
    +
    git clone git@github.com:yourname/dygraphs.git
    This + pulls the dygraphs code down onto your local disk. + +
  5. cd into the dygraphs directory and make your changes.
    + If you've already got them somewhere else, just copy them over.
    + I try to adhere to Google's + JS style guide and would appreciate it if you try to as well. + +
  6. Be a good citizen! +
      +
    • If you've added a new feature, add a test for it (in the tests/ + directory). +
    • If you've added a new option, add it to the list of options on the + documentation page (docs/index.html). +
    + You'll have to do this before I accept your changes, so you may as well + do it now + +
  7. Commit your changes locally: run +
    git add .
    +git commit
    + Type in a description of your change. This will + eventually appear in the dygraphs commit list. + +
  8. Push your changes to github by running
    git push
    This will + send your changes to your forked repository on github. + +
  9. Go to your fork of dygraphs on github (i.e. + github.com/yourname/dygraphs).
    + Click the "Pull Request" button.
    + This will send me an email with a pointer to your changes. + +
  10. I'll review your changes and (unless your code is perfect!) give you + some feedback. Make these suggested changes in your local git client and + re-run "git commit" and "git push" so that I can see them. + +
  11. Once your change is ready, I'll pull it into the main dygraphs + repository and publish it to the web. +
+ + diff --git a/docs/index.html b/docs/index.html index b9eff54..f8ad937 100644 --- a/docs/index.html +++ b/docs/index.html @@ -34,6 +34,7 @@
  • Source
  • Issues
  • Report Bug
  • +
  • Contribute a change
  • Contact
  • -- 2.7.4