sdoc-helpers 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,48 @@
1
+ sdoc-helpers
2
+ ============
3
+
4
+ Some Rake tasks and hacks to let me easily generate documentation like
5
+ that found at <http://defunkt.github.com/mustache/>.
6
+
7
+ After installing it, put this in your Rakefile:
8
+
9
+ begin
10
+ require 'sdoc_helpers'
11
+ rescue LoadError
12
+ puts "sdoc support not enabled. Please gem install sdoc-helpers."
13
+ end
14
+
15
+ Now (with a clean index) run `rake pages:init` to create and publish
16
+ your `gh-pages` branch.
17
+
18
+ It'll drop you back on master when it's done. Now in the future just
19
+ run `rake pages` to publish sdoc documentation to your `gh-pages`
20
+ branch.
21
+
22
+ Make sure you don't already have a `docs/` directory. If you do, this
23
+ won't work.
24
+
25
+ If you README (or any files) end in `md` or `markdown` they'll get
26
+ parsed by `RDiscount` and displayed as Markdown. This gives you a
27
+ nicely formatted README on GitHub as well as in your sdoc.
28
+
29
+ Enjoy.
30
+
31
+
32
+ Dependencies
33
+ ------------
34
+
35
+ * rdiscount
36
+ * sdoc
37
+
38
+
39
+ Installation
40
+ ------------
41
+
42
+ gem install sdoc-helpers
43
+
44
+
45
+ Author
46
+ ------
47
+
48
+ Chris Wanstrath // chris@ozmm.org
@@ -1,10 +1,12 @@
1
1
  require 'rake/rdoctask'
2
2
 
3
3
  readme = Dir['*'].grep(/README/)[0]
4
+ files = [ readme, 'LICENSE', 'lib' ]
5
+ files.push('CONTRIBUTORS') if Dir['*'].include?('CONTRIBUTORS')
4
6
 
5
7
  Rake::RDocTask.new do |rdoc|
6
8
  rdoc.main = readme
7
- rdoc.rdoc_files = [ readme, 'LICENSE', 'lib' ]
9
+ rdoc.rdoc_files = files
8
10
  rdoc.rdoc_dir = 'docs'
9
11
  end
10
12
 
@@ -14,6 +16,7 @@ namespace :pages do
14
16
  `ls -1 | grep -v docs | xargs rm -rf; mv docs/* .; rm -rf docs`
15
17
  `git commit -a -m "update docs"; git push origin gh-pages`
16
18
  `git checkout master`
19
+ puts :done
17
20
  end
18
21
 
19
22
  desc "Initialize GitHub Pages with documentation"
@@ -23,6 +26,7 @@ namespace :pages do
23
26
  `ls -1 | grep -v docs | xargs rm -rf; mv docs/* .; rm -rf docs`
24
27
  `git add .;git commit -m "create docs"; git push origin gh-pages`
25
28
  `git checkout master`
29
+ puts :done
26
30
  end
27
31
 
28
32
  task :check_dirty do
@@ -1,3 +1,3 @@
1
1
  module SDocHelpers
2
- Version = '0.1.0'
2
+ Version = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sdoc-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Wanstrath
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-06 00:00:00 -07:00
12
+ date: 2009-10-07 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -20,9 +20,9 @@ executables: []
20
20
  extensions: []
21
21
 
22
22
  extra_rdoc_files:
23
- - README
23
+ - README.md
24
24
  files:
25
- - README
25
+ - README.md
26
26
  - Rakefile
27
27
  - lib/sdoc_helpers.rb
28
28
  - lib/sdoc_helpers/markdown.rb
data/README DELETED
File without changes