Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 40 lines (36 sloc) 1.132 kb
c05bfa5d »
2012-05-21 Update documentation and fight with appledoc
1 version = `cat VERSION`.strip
2 output = Dir.pwd + '/Documentation'
858101f5 »
2011-10-17 Add Rakefile for generating documentation
3 appledoc_options = [
c05bfa5d »
2012-05-21 Update documentation and fight with appledoc
4 "--output \"#{output}\"",
858101f5 »
2011-10-17 Add Rakefile for generating documentation
5 '--project-name SSToolkit',
c05bfa5d »
2012-05-21 Update documentation and fight with appledoc
6 '--project-company "Sam Soffes"',
858101f5 »
2011-10-17 Add Rakefile for generating documentation
7 '--company-id com.samsoffes',
c05bfa5d »
2012-05-21 Update documentation and fight with appledoc
8 "--project-version #{version}",
858101f5 »
2011-10-17 Add Rakefile for generating documentation
9 '--keep-intermediate-files',
10 '--create-html',
11 '--no-repeat-first-par',
c05bfa5d »
2012-05-21 Update documentation and fight with appledoc
12 '--verbose',
13 '--create-docset',
14 # '--docset-platform-family appledoc'
15 ]
858101f5 »
2011-10-17 Add Rakefile for generating documentation
16
17 namespace :docs do
c05bfa5d »
2012-05-21 Update documentation and fight with appledoc
18 desc 'Clean docs output'
858101f5 »
2011-10-17 Add Rakefile for generating documentation
19 task :clean do
20 `rm -rf Documentation`
21 end
22
23 desc 'Install docs'
24 task :install => [:'docs:clean'] do
c05bfa5d »
2012-05-21 Update documentation and fight with appledoc
25 `appledoc #{appledoc_options.join(' ')} --install-docset SSToolkit/*.h`
858101f5 »
2011-10-17 Add Rakefile for generating documentation
26 end
27
c05bfa5d »
2012-05-21 Update documentation and fight with appledoc
28 desc 'Create publishable docs'
858101f5 »
2011-10-17 Add Rakefile for generating documentation
29 task :publish => [:'docs:clean'] do
30 extra_options = [
c05bfa5d »
2012-05-21 Update documentation and fight with appledoc
31 # '--publish-docset',
32 '--docset-copyright "2012 Sam Soffes"',
858101f5 »
2011-10-17 Add Rakefile for generating documentation
33 '--docset-atom-filename com.samsoffes.sstoolkit.atom',
c05bfa5d »
2012-05-21 Update documentation and fight with appledoc
34 '--docset-feed-url "http://docs.sstoolk.it/%DOCSETATOMFILENAME"',
35 '--docset-package-url "http://docs.sstoolk.it/%DOCSETPACKAGEFILENAME"'
36 ]
858101f5 »
2011-10-17 Add Rakefile for generating documentation
37 `appledoc #{appledoc_options.join(' ')} #{extra_options.join(' ')} SSToolkit/*.h`
38 end
39 end
Something went wrong with that request. Please try again.