@@ -11,7 +11,6 @@ def create_docset
1111 cocoadocs_id = "com.cocoadocs.#{ @spec . name . downcase } "
1212
1313 headers = headers_for_spec_at_location @spec
14- headers . map! { |header | Shellwords . escape header }
1514 headers = [ from ] if headers . count == 0
1615
1716 guides = GuidesGenerator . new ( spec : @spec , source_download_location : @source_download_location )
@@ -23,45 +22,45 @@ def create_docset
2322
2423 docset_command = [
2524 "vendor/appledoc" ,
26- "--project-name #{ @spec . name } " , # name in top left
27- "--project-company \" #{ @spec . or_contributors_to_spec } \" " , # name in top right
28- "--company-id #{ cocoadocs_id } " , # the id for the
25+ "--project-name" , @spec . name , # name in top left
26+ "--project-company" , @spec . or_contributors_to_spec , # name in top right
27+ "--company-id" , " #{ cocoadocs_id } ", # the id for the
2928
30- "--project-version #{ version } " , # project version
31- "--no-install-docset" , # don't make a duplicate
29+ "--project-version" , " #{ version } ", # project version
30+ "--no-install-docset" , # don't make a duplicate
3231
33- "--templates \" #{ @appledoc_templates_path } \" " , # use the custom template
34- "--verbose #{ verbosity } " , # give some useful logs
32+ "--templates" , @appledoc_templates_path , # use the custom template
33+ "--verbose" , " #{ verbosity } ", # give some useful logs
3534
36- "--keep-intermediate-files" , # space for now is OK
37- "--create-html" , # eh, nice to have
38- "--publish-docset" , # this should create atom
35+ "--keep-intermediate-files" , # space for now is OK
36+ "--create-html" , # eh, nice to have
37+ "--publish-docset" , # this should create atom
3938
40- "--docset-feed-url #{ $website_home} docsets/#{ @spec . name } /xcode-docset.atom" ,
41- "--docset-atom-filename xcode-docset.atom" ,
39+ "--docset-feed-url" , " #{ $website_home} docsets/#{ @spec . name } /xcode-docset.atom",
40+ "--docset-atom-filename" , " xcode-docset.atom",
4241
43- "--docset-package-url #{ $website_home} docsets/#{ @spec . name } /docset.xar" ,
44- "--docset-package-filename docset" ,
42+ "--docset-package-url" , " #{ $website_home} docsets/#{ @spec . name } /docset.xar",
43+ "--docset-package-filename" , " docset",
4544
46- "--docset-fallback-url #{ $website_home} docsets/#{ @spec . name } " ,
47- "--docset-feed-name #{ @spec . name } " ,
45+ "--docset-fallback-url" , " #{ $website_home} docsets/#{ @spec . name } ",
46+ "--docset-feed-name" , " #{ @spec . name } ",
4847
4948 # http://gentlebytes.com/appledoc-docs-examples-advanced/
5049 "--keep-undocumented-objects" , # not everyone will be documenting
5150 "--keep-undocumented-members" , # so we should at least show something
5251 "--search-undocumented-doc" , # uh? ( no idea what this does... )
5352
54- guides . generate_string_for_appledoc ,
53+ * guides . generate_array_for_appledoc ,
5554
56- "--output \" #{ @to } \" " , # where should we throw stuff
55+ "--output" , to , # where should we throw stuff
5756 *headers
5857 ]
5958
6059 if File . exist? readme_location
61- docset_command . insert ( 3 , "--index-desc resources/overwritten_index.html" )
60+ docset_command . insert ( 3 , "--index-desc" , " resources/overwritten_index.html")
6261 end
6362
64- command docset_command . join ( ' ' )
63+ command docset_command
6564
6665 fail "Appledoc crashed in creating the DocSet for this project." unless Dir . exist? to
6766
0 commit comments