Permalink
Browse files

Create gh-pages branch via GitHub

  • Loading branch information...
1 parent ca54f05 commit 3a9eb39d737869068a77912833814b15606f08de @meritt committed Apr 5, 2014
Showing with 13 additions and 13 deletions.
  1. +12 −12 index.html
  2. +1 −1 params.json
View
@@ -30,15 +30,15 @@ <h1 class="header">gisty</h1>
</header>
<section>
- <p><a href="http://badge.fury.io/js/gisty"><img src="https://badge.fury.io/js/gisty.png" alt="NPM version"></a> <a href="https://david-dm.org/meritt/node-gisty"><img src="https://david-dm.org/meritt/node-gisty.png" alt="Dependency Status"></a></p>
+ <p><a href="http://badge.fury.io/js/gisty"><img src="https://badge.fury.io/js/gisty.svg" alt="NPM version"></a> <a href="https://david-dm.org/meritt/node-gisty"><img src="https://david-dm.org/meritt/node-gisty.svg?theme=shields.io" alt="Dependency Status"></a></p>
<p>A node.js wrapper for the GitHub <a href="http://developer.github.com/v3/gists/">Gists API v3</a>.</p>
<h2>
<a name="installation" class="anchor" href="#installation"><span class="octicon octicon-link"></span></a>Installation</h2>
-<pre><code>$ npm install gisty
-</code></pre>
+<div class="highlight highlight-bash"><pre><span class="nv">$ </span>npm install gisty
+</pre></div>
<h2>
<a name="examples" class="anchor" href="#examples"><span class="octicon octicon-link"></span></a>Examples</h2>
@@ -76,23 +76,23 @@ <h2>
<p>Grab latest source code and install all dev dependencies</p>
-<pre><code>$ npm link
-</code></pre>
+<div class="highlight highlight-bash"><pre><span class="nv">$ </span>npm link
+</pre></div>
<p>Change your host, client id, client secret in <a href="http://github.com/meritt/node-gisty/blob/master/examples/get-access-token.coffee">examples/get-access-token.coffee</a> and after that run <a href="http://github.com/meritt/node-gisty/blob/master/examples/get-access-token.coffee">examples/get-access-token.coffee</a></p>
-<pre><code>$ coffee examples/get-access-token.coffee
-</code></pre>
+<div class="highlight highlight-bash"><pre><span class="nv">$ </span>coffee examples/get-access-token.coffee
+</pre></div>
<h2>
<a name="api" class="anchor" href="#api"><span class="octicon octicon-link"></span></a>API</h2>
<ul>
-<li>fetch (gist_id, callback)</li>
-<li>comments (gist_id, callback)</li>
-<li>all (callback)</li>
-<li>public (callback)</li>
-<li>starred (callback)</li>
+<li><code>fetch(gist_id, callback)</code></li>
+<li><code>comments(gist_id, callback)</code></li>
+<li><code>all(callback)</code></li>
+<li><code>public(callback)</code></li>
+<li><code>starred(callback)</code></li>
</ul><h2>
<a name="author" class="anchor" href="#author"><span class="octicon octicon-link"></span></a>Author</h2>
View
@@ -1 +1 @@
-{"name":"gisty","tagline":"A node.js wrapper for the Gists API","body":"[![NPM version](https://badge.fury.io/js/gisty.png)](http://badge.fury.io/js/gisty) [![Dependency Status](https://david-dm.org/meritt/node-gisty.png)](https://david-dm.org/meritt/node-gisty)\r\n\r\nA node.js wrapper for the GitHub [Gists API v3](http://developer.github.com/v3/gists/).\r\n\r\n## Installation\r\n\r\n```\r\n$ npm install gisty\r\n```\r\n\r\n## Examples\r\n\r\n```js\r\nvar Gisty = require('gisty');\r\n\r\nvar gist = new Gisty({\r\n username: 'meritt'\r\n});\r\n\r\ngist.fetch('1111422', function(error, gist) {\r\n if (error) {\r\n throw new Error(error);\r\n }\r\n\r\n for (filename in gist.files) {\r\n console.log(filename + \"\\n\" + gist.files[filename].content + \"\\n\\n\");\r\n }\r\n});\r\n```\r\n\r\n```coffeescript\r\nGisty = require 'gisty'\r\n\r\ngist = new Gisty username: 'meritt'\r\n\r\ngist.fetch '1111422', (error, gist) ->\r\n throw new Error error if error\r\n console.log \"#{filename}\\n#{file.content}\\n\\n\" for filename, file of gist.files\r\n```\r\n\r\n[See other examples](http://github.com/meritt/node-gisty/tree/master/examples)\r\n\r\n## How to retrieve github OAuth2 access_token\r\n\r\nGrab latest source code and install all dev dependencies\r\n\r\n```\r\n$ npm link\r\n```\r\n\r\nChange your host, client id, client secret in [examples/get-access-token.coffee](http://github.com/meritt/node-gisty/blob/master/examples/get-access-token.coffee) and after that run [examples/get-access-token.coffee](http://github.com/meritt/node-gisty/blob/master/examples/get-access-token.coffee)\r\n\r\n```\r\n$ coffee examples/get-access-token.coffee\r\n```\r\n\r\n## API\r\n\r\n* fetch (gist_id, callback)\r\n* comments (gist_id, callback)\r\n* all (callback)\r\n* public (callback)\r\n* starred (callback)\r\n\r\n## Author\r\n\r\n* [Alexey Simonenko](mailto:alexey@simonenko.su), [simonenko.su](http://simonenko.su)\r\n\r\n## License\r\n\r\nThe MIT License, see the included `license.md` file.\r\n\r\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/meritt/node-gisty/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")","google":"UA-37507032-6","note":"Don't delete this file! It's used internally to help with page regeneration."}
+{"name":"gisty","tagline":"A node.js wrapper for the Gists API","body":"[![NPM version](https://badge.fury.io/js/gisty.svg)](http://badge.fury.io/js/gisty) [![Dependency Status](https://david-dm.org/meritt/node-gisty.svg?theme=shields.io)](https://david-dm.org/meritt/node-gisty)\r\n\r\nA node.js wrapper for the GitHub [Gists API v3](http://developer.github.com/v3/gists/).\r\n\r\n## Installation\r\n\r\n```bash\r\n$ npm install gisty\r\n```\r\n\r\n## Examples\r\n\r\n```js\r\nvar Gisty = require('gisty');\r\n\r\nvar gist = new Gisty({\r\n username: 'meritt'\r\n});\r\n\r\ngist.fetch('1111422', function(error, gist) {\r\n if (error) {\r\n throw new Error(error);\r\n }\r\n\r\n for (filename in gist.files) {\r\n console.log(filename + \"\\n\" + gist.files[filename].content + \"\\n\\n\");\r\n }\r\n});\r\n```\r\n\r\n```coffeescript\r\nGisty = require 'gisty'\r\n\r\ngist = new Gisty username: 'meritt'\r\n\r\ngist.fetch '1111422', (error, gist) ->\r\n throw new Error error if error\r\n console.log \"#{filename}\\n#{file.content}\\n\\n\" for filename, file of gist.files\r\n```\r\n\r\n[See other examples](http://github.com/meritt/node-gisty/tree/master/examples)\r\n\r\n## How to retrieve github OAuth2 access_token\r\n\r\nGrab latest source code and install all dev dependencies\r\n\r\n```bash\r\n$ npm link\r\n```\r\n\r\nChange your host, client id, client secret in [examples/get-access-token.coffee](http://github.com/meritt/node-gisty/blob/master/examples/get-access-token.coffee) and after that run [examples/get-access-token.coffee](http://github.com/meritt/node-gisty/blob/master/examples/get-access-token.coffee)\r\n\r\n```bash\r\n$ coffee examples/get-access-token.coffee\r\n```\r\n\r\n## API\r\n\r\n* `fetch(gist_id, callback)`\r\n* `comments(gist_id, callback)`\r\n* `all(callback)`\r\n* `public(callback)`\r\n* `starred(callback)`\r\n\r\n## Author\r\n\r\n* [Alexey Simonenko](mailto:alexey@simonenko.su), [simonenko.su](http://simonenko.su)\r\n\r\n## License\r\n\r\nThe MIT License, see the included `license.md` file.\r\n\r\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/meritt/node-gisty/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")","google":"UA-37507032-6","note":"Don't delete this file! It's used internally to help with page regeneration."}

0 comments on commit 3a9eb39

Please sign in to comment.