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:
Aparajita Fishman
2011-05-12 14:41:54 -04:00
parent 019acb76a3
commit be5bbdcb32
15 changed files with 995 additions and 75 deletions
+22 -2
View File
@@ -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