Permalink
Browse files

Updated index, added licence, and added rake task to publish docs

  • Loading branch information...
1 parent 756c9d9 commit ca99bbff1bab3a3941a8e17b2cfc6639bdb8006a @tomafro tomafro committed Aug 25, 2011
Showing with 41 additions and 0 deletions.
  1. +19 −0 LICENSE
  2. +7 −0 Rakefile
  3. +12 −0 doc/index.html
  4. +3 −0 index.rb
View
19 LICENSE
@@ -0,0 +1,19 @@
+Copyright (C) 2011 by Tom Ward
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
View
7 Rakefile
@@ -3,3 +3,10 @@ require 'rocco/tasks'
desc 'build docs'
Rocco::Task.new :rocco, 'doc/', ['index.rb', 'lib/tomafro/**/*.rb']
+
+desc 'publish docs'
+task :publish do
+ sha = `git ls-tree -d HEAD doc | awk '{print $3}'`.strip
+ commit = `echo "Publishing docs from master branch" | git commit-tree #{sha} -p refs/heads/gh-pages`.strip
+ `git update-ref refs/heads/gh-pages #{commit}`
+end
View
12 doc/index.html
@@ -49,6 +49,18 @@
<p>Most of the documentation can be found with the <a href="lib/tomafro/deploy.html">main recipe</a>, while the
<a href="lib/tomafro/deploy/bundler.html">bundler</a> and <a href="lib/tomafro/deploy/foreman.html">foreman</a> recipes document
their extensions.</p>
+ </td>
+ <td class=code>
+ <div class='highlight'><pre></pre></div>
+ </td>
+ </tr>
+ <tr id='section-3'>
+ <td class=docs>
+ <div class="pilwrap">
+ <a class="pilcrow" href="#section-3">&#182;</a>
+ </div>
+ <p>The code is available <a href="http://github.com/tomafro/tomafro-deploy">on github</a> and released under the
+<a href="http://github.com/tomafro/tomafro-deploy/LICENSE">MIT License</a></p>
</td>
<td class=code>
View
3 index.rb
@@ -4,3 +4,6 @@
# Most of the documentation can be found with the [main recipe](lib/tomafro/deploy.html), while the
# [bundler](lib/tomafro/deploy/bundler.html) and [foreman](lib/tomafro/deploy/foreman.html) recipes document
# their extensions.
+
+# The code is available [on github](http://github.com/tomafro/tomafro-deploy) and released under the
+# [MIT License](http://github.com/tomafro/tomafro-deploy/LICENSE)

0 comments on commit ca99bbf

Please sign in to comment.