Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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