mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Another overhaul of doc generation.
- Added generic facility for pre- and post-processor scripts to be run. - Added support utility script for inclusion by processors. - Totally overhauled css to make the pages more readable (I hope). - Fixed some doc errors in CPTableView. - Don't generate XML. - Added colorize() and colorPrint() functions to common.jake. - Added docs-no-frame task for generating docs without a sidebar frame.
This commit is contained in:
+22
-2
@@ -456,12 +456,12 @@ global.copyManPage = function(/*String*/ name, /*int*/ section)
|
||||
}
|
||||
}
|
||||
|
||||
global.xcodebuildCanListSDKs = function ()
|
||||
global.xcodebuildCanListSDKs = function()
|
||||
{
|
||||
return OS.system("xcodebuild -showsdks > /dev/null 2>&1") == 0;
|
||||
}
|
||||
|
||||
global.xcodebuildHasTenPointFiveSDK = function ()
|
||||
global.xcodebuildHasTenPointFiveSDK = function()
|
||||
{
|
||||
if (xcodebuildCanListSDKs())
|
||||
return OS.system("xcodebuild -showsdks | grep 'macosx10.5' > /dev/null 2>&1") == 0;
|
||||
@@ -469,6 +469,26 @@ global.xcodebuildHasTenPointFiveSDK = function ()
|
||||
return FILE.exists(FILE.join("/", "Developer", "SDKs", "MacOSX10.5.sdk"));
|
||||
}
|
||||
|
||||
global.colorize = function(/* String */ message, /* String */ color)
|
||||
{
|
||||
var matches = color.match(/(bold(?: |\+))?(.+)/);
|
||||
|
||||
if (!matches)
|
||||
return;
|
||||
|
||||
message = "\0" + matches[2] + "(" + message + "\0)";
|
||||
|
||||
if (matches[1])
|
||||
message = "\0bold(" + message + "\0)";
|
||||
|
||||
return message;
|
||||
}
|
||||
|
||||
global.colorPrint = function(/* String */ message, /* String */ color)
|
||||
{
|
||||
stream.print(colorize(message, color));
|
||||
}
|
||||
|
||||
|
||||
// built in tasks
|
||||
|
||||
|
||||
Reference in New Issue
Block a user