Skip to content

HTTPS clone URL

Subversion checkout URL

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