mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Changes for index.html output
This commit is contained in:
parent
bd6c52e8d4
commit
f162e0f97e
4 changed files with 25 additions and 6 deletions
|
@ -244,7 +244,8 @@ GCObject.h \
|
||||||
# directory.
|
# directory.
|
||||||
#
|
#
|
||||||
Base_AGSDOC_FLAGS = \
|
Base_AGSDOC_FLAGS = \
|
||||||
-MakeFrames YES \
|
-MakeFrames NO \
|
||||||
|
-IndexFile Base \
|
||||||
-DocumentationDirectory ../Documentation/Base \
|
-DocumentationDirectory ../Documentation/Base \
|
||||||
-HeaderDirectory ../Headers/Foundation \
|
-HeaderDirectory ../Headers/Foundation \
|
||||||
-Declared Foundation \
|
-Declared Foundation \
|
||||||
|
@ -259,7 +260,8 @@ Base_AGSDOC_FLAGS = \
|
||||||
}' -Up Base
|
}' -Up Base
|
||||||
|
|
||||||
BaseAdditions_AGSDOC_FLAGS = \
|
BaseAdditions_AGSDOC_FLAGS = \
|
||||||
-MakeFrames YES \
|
-MakeFrames NO \
|
||||||
|
-IndexFile BaseAdditions \
|
||||||
-DocumentationDirectory ../Documentation/BaseAdditions \
|
-DocumentationDirectory ../Documentation/BaseAdditions \
|
||||||
-HeaderDirectory ../Headers/GNUstepBase \
|
-HeaderDirectory ../Headers/GNUstepBase \
|
||||||
-Declared GNUstepBase \
|
-Declared GNUstepBase \
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
unsigned sssect;
|
unsigned sssect;
|
||||||
BOOL isContentsDoc;
|
BOOL isContentsDoc;
|
||||||
BOOL ivarsAtEnd;
|
BOOL ivarsAtEnd;
|
||||||
|
BOOL cssNavigation;
|
||||||
BOOL verbose;
|
BOOL verbose;
|
||||||
BOOL warn;
|
BOOL warn;
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,8 +27,6 @@
|
||||||
#import "GNUstepBase/NSString+GNUstepBase.h"
|
#import "GNUstepBase/NSString+GNUstepBase.h"
|
||||||
#import "GNUstepBase/NSMutableString+GNUstepBase.h"
|
#import "GNUstepBase/NSMutableString+GNUstepBase.h"
|
||||||
|
|
||||||
#define navcss 1
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Define constants for use if we are built with apple Foundation
|
* Define constants for use if we are built with apple Foundation
|
||||||
*/
|
*/
|
||||||
|
@ -255,6 +253,7 @@ static NSMutableSet *textNodes = nil;
|
||||||
project = RETAIN([defs stringForKey: @"Project"]);
|
project = RETAIN([defs stringForKey: @"Project"]);
|
||||||
verbose = [defs boolForKey: @"Verbose"];
|
verbose = [defs boolForKey: @"Verbose"];
|
||||||
warn = [defs boolForKey: @"Warn"];
|
warn = [defs boolForKey: @"Warn"];
|
||||||
|
cssNavigation = [defs boolForKey: @"MakeFrames"] ? NO : YES;
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -805,7 +804,7 @@ static NSMutableSet *textNodes = nil;
|
||||||
|
|
||||||
[self decIndent];
|
[self decIndent];
|
||||||
|
|
||||||
if (navcss)
|
if (cssNavigation)
|
||||||
{
|
{
|
||||||
[self decIndent];
|
[self decIndent];
|
||||||
[buf appendString: indent];
|
[buf appendString: indent];
|
||||||
|
@ -1332,7 +1331,7 @@ static NSMutableSet *textNodes = nil;
|
||||||
[self incIndent];
|
[self incIndent];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (navcss)
|
if (cssNavigation)
|
||||||
{
|
{
|
||||||
[buf appendString: indent];
|
[buf appendString: indent];
|
||||||
[buf appendString: @"<div class=\"content-bar\">\n"];
|
[buf appendString: @"<div class=\"content-bar\">\n"];
|
||||||
|
|
|
@ -813,6 +813,9 @@ main(int argc, char **argv, char **env)
|
||||||
@"FunctionsTemplate",
|
@"FunctionsTemplate",
|
||||||
@"\t\tSTR\t(\"\")\n\tfile into which docs for macros "
|
@"\t\tSTR\t(\"\")\n\tfile into which docs for macros "
|
||||||
@"should be consolidated",
|
@"should be consolidated",
|
||||||
|
@"IndexFile",
|
||||||
|
@"\t\tSTR\t(\"\")\n\tHTML file name (extension omitted) "
|
||||||
|
@"copied to index.html",
|
||||||
@"MacrosTemplate",
|
@"MacrosTemplate",
|
||||||
@"\t\tSTR\t(\"\")\n\tfile into which docs for typedefs "
|
@"\t\tSTR\t(\"\")\n\tfile into which docs for typedefs "
|
||||||
@"should be consolidated",
|
@"should be consolidated",
|
||||||
|
@ -2102,6 +2105,9 @@ main(int argc, char **argv, char **env)
|
||||||
count = [gFiles count];
|
count = [gFiles count];
|
||||||
if (generateHtml == YES && count > 0)
|
if (generateHtml == YES && count > 0)
|
||||||
{
|
{
|
||||||
|
NSString *htmlIndexFile;
|
||||||
|
|
||||||
|
htmlIndexFile = [defs stringForKey: @"IndexFile"];
|
||||||
pool = [NSAutoreleasePool new];
|
pool = [NSAutoreleasePool new];
|
||||||
|
|
||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
|
@ -2208,6 +2214,17 @@ main(int argc, char **argv, char **env)
|
||||||
{
|
{
|
||||||
NSLog(@"Sorry unable to write %@", htmlfile);
|
NSLog(@"Sorry unable to write %@", htmlfile);
|
||||||
}
|
}
|
||||||
|
if ([file isEqual: htmlIndexFile])
|
||||||
|
{
|
||||||
|
NSString *s;
|
||||||
|
|
||||||
|
s = [documentationDirectory
|
||||||
|
stringByAppendingPathComponent: @"index.html"];
|
||||||
|
if ([d writeToFile: s atomically: YES])
|
||||||
|
{
|
||||||
|
NSLog(@"Sorry unable to write %@ to %s", htmlfile, s);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ([arg hasSuffix: @".gsdoc"] == YES)
|
else if ([arg hasSuffix: @".gsdoc"] == YES)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue