forked from soffes/sstoolkit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
39 lines (36 loc) · 1.11 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version = `cat VERSION`.strip
output = Dir.pwd + '/Documentation'
appledoc_options = [
"--output \"#{output}\"",
'--project-name SSToolkit',
'--project-company "Sam Soffes"',
'--company-id com.samsoffes',
"--project-version #{version}",
'--keep-intermediate-files',
'--create-html',
'--no-repeat-first-par',
'--verbose',
'--create-docset',
# '--docset-platform-family appledoc'
]
namespace :docs do
desc 'Clean docs output'
task :clean do
`rm -rf Documentation`
end
desc 'Install docs'
task :install => [:'docs:clean'] do
`appledoc #{appledoc_options.join(' ')} --install-docset SSToolkit/*.h`
end
desc 'Create publishable docs'
task :publish => [:'docs:clean'] do
extra_options = [
# '--publish-docset',
'--docset-copyright "2012 Sam Soffes"',
'--docset-atom-filename com.samsoffes.sstoolkit.atom',
'--docset-feed-url "http://docs.sstoolk.it/%DOCSETATOMFILENAME"',
'--docset-package-url "http://docs.sstoolk.it/%DOCSETPACKAGEFILENAME"'
]
`appledoc #{appledoc_options.join(' ')} #{extra_options.join(' ')} SSToolkit/*.h`
end
end