diff --git a/.gitignore b/.gitignore index c7c562b..9e5d466 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,7 @@ .DS_Store -build *.mode1v3 *.pbxuser *.perspectivev3 *.xcworkspace xcuserdata -.sass-cache -Documentation/temp -Documentation/Output +Documentation diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..3e58ac9 --- /dev/null +++ b/Rakefile @@ -0,0 +1,36 @@ +appledoc_options = [ + '--output Documentation', + '--project-name SSToolkit', + '--project-company \'Sam Soffes\'', + '--company-id com.samsoffes', + "--project-version #{`cat VERSION`.strip}", + '--keep-intermediate-files', + '--create-html', + '--templates ~/Library/Application\ Support/appledoc/Templates/', + '--no-repeat-first-par', + '--verbose'] + +namespace :docs do + desc 'Clean docs' + task :clean do + `rm -rf Documentation` + end + + desc 'Install docs' + task :install => [:'docs:clean'] do + `appledoc #{appledoc_options.join(' ')} --create-docset --install-docset SSToolkit/*.h` + end + + desc 'Publish docs' + task :publish => [:'docs:clean'] do + extra_options = [ + '--create-docset', + '--publish-docset', + '--install-docset', + '--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 diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..6e8bf73 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.1.0