Permalink
Browse files

Implemented project settings. Closes #67.

There are several ways of adding project settings:

- Add AppledocSettings.plist file to one of the paths given to appledoc on command line. If the file is found in a path, it's settings are automatically injected. The same path is also used for source parsing. This allows command line like `appledoc .`.
- Add specific path to a file with arbitrary name and .plist extension. The settings from the file are injected, but the file is not used for parsing.

In both cases, the .plist file has the same syntax as global settings file, except that project settings allow additional option `--input`, which should be an array of strings, each pointing to a source file or directory. These paths can be relative to the .plist file or absolute (will update online documentation soon with examples). The input option is optional; if not used, command line is expected to have at least one source file or directory.
  • Loading branch information...
1 parent c4f799b commit c00f12c85e036c00077a4c8f613675ca10d094dc @tomaz committed Feb 26, 2011
Showing with 209 additions and 94 deletions.
  1. +35 −0 AppledocSettings.plist
  2. +172 −94 Application/GBAppledocApplication.m
  3. +2 −0 appledoc.xcodeproj/project.pbxproj
View
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>--company-id</key>
+ <string>com.gentlebytes</string>
+ <key>--create-docset</key>
+ <false/>
+ <key>--ignore</key>
+ <array>
+ <string>ThirdParty</string>
+ <string>Libraries</string>
+ <string>Frameworks</string>
+ <string>Testing</string>
+ </array>
+ <key>--install-docset</key>
+ <false/>
+ <key>--keep-intermediate-files</key>
+ <false/>
+ <key>--logformat</key>
+ <integer>1</integer>
+ <key>--print-settings</key>
+ <true/>
+ <key>--project-company</key>
+ <string>Gentle Bytes</string>
+ <key>--project-name</key>
+ <string>appledoc</string>
+ <key>--publish-docset</key>
+ <false/>
+ <key>--repeat-first-par</key>
+ <false/>
+ <key>--verbose</key>
+ <integer>3</integer>
+</dict>
+</plist>
Oops, something went wrong.

0 comments on commit c00f12c

Please sign in to comment.