|
|
Class: HTMLDocGenerator
Object
|
+--HTMLDocGenerator
|
+--HTMLDocGeneratorForJavaScript
- Package:
- stx:libbasic3
- Category:
- System-Documentation
- Version:
- rev:
1.92
date: 2010/03/12 18:29:09
- user: stefan
- file: HTMLDocGenerator.st directory: libbasic3
- module: stx stc-classLibrary: libbasic3
- Author:
- Claus Gittinger
Generates HTML documentation for a class.
Although this is normally used with the SystemBrowser
(classes-generate documentation menu),
it may be useful on its own, to programatically generate
up-to-date documents from a classes source.
This generator extracts the documentation methods source
(or comment), individual method comments (the first comment in
a method) and version information to generate a neatly formatted
HTML page.
If executable examples (EXBEGIN .. EXEND) are present in the classes
documentation category these are also added as executable code
to the document.
BrowserView
HTMLDocumentView
document generation
-
htmlClassCategoryList
-
generate a formatted list of all available class categories as
an HTML string. Each category will be a hyperlink to another
autogenerated page, containing the classes per category.
The generated page is supposed to be given to an HTML reader
with home being set to ../doc/online/xxx/classDoc
(i.e. the images are to be found one-up in the doc hierarchy)
-
htmlClassListPrefix: prefix
-
generate an HTML document string which contains HREFS for a list
of classes which start with some prefix (typically, the first
character is given)
-
htmlClasses: classes title: title backTo: backRef
-
generate an HTML document string which contains HREFS for a given list
of classes. If backref is nonNil, a back-button to that
HREF is added at the top.
The generated page is supposed to be given to an HTML reader
with home being set to ../doc/online/xxx/classDoc
(i.e. the images are to be found one-up in the doc hierarchy)
-
htmlClassesListOfCategory: aCategory backTo: backMessage
-
generate an HTML document string which contains HREFS for a list
of classes which are contained in a particular category.
-
htmlDocOf: aClass
-
generate an HTML document string which contains a classes documentation
-
htmlDocOf: aClass back: backCmd backRef: backRef imagePath: imagePath
-
generate a nice HTML page from a class, with a back-reference
to a command or document.
-
htmlDocOf: aClass backRef: backRef
-
generate an HTML document string which contains a classes documentation
-
htmlDocOfImplementorsOf: selector
-
generate an HTML document string which contains HREFS
to all implementors of a particular selector
-
htmlDocOfImplementorsOfAnyMatching: selectorPattern
-
generate an HTML document string which contains HREFS
to all implementors of a particular selector pattern
-
htmlPackageDocOf: packageID
-
generate an HTML document string which contains a packages classlist
-
htmlPackageList
-
generate an HTML string for all packages in the system
-
htmlSelectorList
-
generate an HTML string for all selectors (for which methods exist)
in the system
-
htmlSelectorListMatching: prefix
-
generate an HTML string for all selectors which match a pattern
(and for which methods exist) in the system
-
htmlSelectorListPrefix: prefix
-
generate an HTML string for all selectors whose names starts with
a prefix (and for which methods exist) in the system
-
manPageFor: aCommandName
-
generate a (unix-) man page for a given command & convert the output to html
-
manPageFor: aManPageTemplateFile manCommand: nroffCommand
-
convert man-command output to html.
Only the body of the text (without head../head and body../body) is generated
-
manPageForFile: aManPageTemplateFile
-
convert a .man file to html
pathnames
-
findPathToTopOfDocumentation
-
-
languageSpecificDocDirectory
-
accessing
-
generateBodyOnly: something
-
set the value of the instance variable 'generateBodyOnly' (automatically generated)
-
httpRequest: aRequest
-
-
pathToLanguageTopOfDocumentation: something
-
set the value of the instance variable 'pathToLanguageTopOfDocumentation' (automatically generated)
-
pathToTopOfDocumentation: something
-
set the value of the instance variable 'pathToTopOfDocumentation' (automatically generated)
document generation
-
generateClassInfoForClass: aClass
-
-
generateClassProtocolDocumentationForClass: aClass
-
-
generateDemo
-
-
generateDescription: docu
-
-
generateExampleEnd
-
-
generateExampleStart
-
-
generateExamples: examples
-
-
generateInheritanceTreeForClass: aClass
-
-
generateInstanceProtocolDocumentationForClass: aClass
-
-
generatePrivateClassInfoForClass: aClass withPrivateClasses: privateClasses
-
-
generateRefLineFor: ref forClass: aClass
-
-
generateRefLines: refLines forClass: aClass
-
-
generateSubclassInfoForClass: aClass
-
-
htmlDocOf: aClass
-
generate an HTML document string which contains a classes documentation
-
htmlDocOf: aClass back: backCmd
-
generate an HTML document string which contains a classes documentation
-
htmlDocOf: aClass back: backCmd backRef: backRef
-
generate a nice HTML page from a class, with a back-reference
to a command or document.
Extract sections from the classes documentation method,
where the following lines start a special subsection:
[see also:] - references to other classes and/or documents
[start with:] - one-liners to start a demonstration
[author:] - author(s) of this class
[warning:] - usage warnings if any
[hints:] - usage hints if any
Each section ends with an empty line - however, for formatting,
a line consisting of a single backslash character will be converted
to an empty line.
Also extract examples from the classes example method,
where executable examples are made from sections enclosed in:
[exBegin]
...
[exEnd]
these parts are displayed in courier and will be made executable.
everything else is plain documentation text.
-
htmlDocOf: aClass back: backCmdArg backRef: backRefArg imagePath: imagePathArg
-
generate a nice HTML page from a class, with a back-reference
to a command or document.
Extract sections from the classes documentation method,
where the following lines start a special subsection:
[see also:] - references to other classes and/or documents
[start with:] - one-liners to start a demonstration
[author:] - author(s) of this class
[warning:] - usage warnings if any
[hints:] - usage hints if any
Each section ends with an empty line - however, for formatting,
a line consisting of a single backslash character will be converted
to an empty line.
Also extract examples from the classes example method,
where executable examples are made from sections enclosed in:
[exBegin]
...
[exEnd]
these parts are displayed in courier and will be made executable.
everything else is plain documentation text.
-
htmlDocOf: aClass backRef: backRef
-
generate an HTML document string which contains a classes documentation
-
htmlDocOfImplementorsOf: selector
-
generate an HTML document string which contains HREFS
to all implementors of a particular selector
-
htmlDocOfImplementorsOfAnyMatching: selectorPattern
-
generate an HTML document string which contains HREFS
to all implementors of a particular selector
document generation-helpers
-
extractAndRemoveSpecial: pattern from: docu
-
given a collection of docu lines (from documentation methods comment),
extract things like [see also:], [author:] etc.
If found, remove the lines from the string collection,
and return the extracted ones. Otherwise return nil.
Attention: docu is sideeffectively changed (lines removed)
-
extractAndRemoveSpecialLinesFromDocumentation: docu
-
Extract things like [see also:], [author:] etc. from docu
If found, remove the lines from the string collection,
and leave them in corresponding instVars.
Attention: docu is sideeffectively changed (lines removed)
-
extractDocumentationFromClass: aClass
-
-
extractExamplesFromClass: aClass
-
-
extractProtocolCategoriesFrom: aClass
-
-
htmlForMethod: aMethod
-
-
htmlRevisionDocOf: aClass to: s
-
extract a classes versionInfo and return an HTML document string
for that.
-
printOutHTMLCategoryProtocol: aCategory of: aClass on: aStream
-
append documentation on each method in a particular methodCategory
of the given class in HTML onto aStream.
-
printOutHTMLMethodProtocol: aMethod on: aStream
-
given the source in aString, print the methods message specification
and any method comments - without source; used to generate documentation
pages
-
printOutHTMLMethodProtocol: aMethod on: aStream showClassName: showClassName classRef: withClassRef
-
given the source in aString, print the methods message specification
and any method comments - without source; used to generate documentation
pages
-
printOutHTMLMethodProtocol: aMethod on: aStream showClassName: showClassName classRef: withClassRef picturePath: picturePath
-
given the source in aString, print the methods message specification
and any method comments - without source; used to generate documentation
pages
-
printOutHTMLProtocolOf: aClass on: aStream
-
append documentation of the given class in HTML onto aStream.
-
undentedToFirstLinesIndent: someText
-
document generation-lists
-
htmlClassCategoryList
-
generate a formatted list of all available class categories as
an HTML string. Each category will be a hyperlink to another
autogenerated page, containing the classes per category.
The generated page is supposed to be given to an HTML reader
with home being set to ../doc/online/xxx/classDoc
(i.e. the images are to be found one-up in the doc hierarchy)
-
htmlClassListPrefix: prefix
-
generate an HTML document string which contains HREFS for a list
of classes which start with some prefix (typically, the first
character is given)
-
htmlClasses: classes title: title
-
generate an HTML document string which contains HREFS for a given list
of classes
-
htmlClasses: classes title: title backTo: backRef
-
generate an HTML document string which contains HREFS for a given list
of classes. If backref is nonNil, a back-button to that
HREF is added at the top.
The generated page is supposed to be given to an HTML reader
with home being set to ../doc/online/xxx/classDoc
(i.e. the images are to be found one-up in the doc hierarchy)
-
htmlClassesListOfCategory: category
-
generate an HTML document string which contains HREFS for a list
of classes which are contained in a particular category.
-
htmlClassesListOfCategory: category backTo: backRef
-
generate an HTML document string which contains HREFS for a list
of classes which are contained in a particular category.
-
htmlClassesMatching: aMatchPattern backTo: backRef
-
generate an HTML document string which contains HREFS
for a list of classes whose name matches a given matchPattern.
-
htmlPackageDocOf: packageID
-
-
htmlPackageList
-
generate an HTML string for a given list of selectors
-
htmlSelectorList
-
generate an HTML string for all selectors (for which methods exist)
in the system
-
htmlSelectorListMatching: pattern
-
generate an HTML string for all selectors which match a pattern
(and for which methods exist) in the system
-
htmlSelectorListPrefix: prefix
-
generate an HTML string for all selectors whose names starts with
a prefix (and for which methods exist) in the system
-
htmlSelectors: selectors title: title
-
generate an HTML string for a given list of selectors
format conversion-man pages
-
manPageFor: aCommand
-
generate a (unix-) man page for a given command & convert the output to html
-
manPageFor: aCommand inSection: sectionOrNil
-
generate a (unix-) man page for some entry in a section
& convert the output to html
-
manPageFor: aCommand manCommand: manCommand
-
convert man-command output to html.
Only the body of the text (without head../head and body../body) is generated
-
manPageForFile: aFilename
-
convert a .man file to html
-
manPageFromStream: manPageStream
-
convert man-command output to html.
Only the body of the text (without head../head and body../body) is generated.
This method looks for
char-backspace-char -> bold
char-backspace-underline -> italic
-
noManPageForCommand: aCommand usingManCommand: manCommand
-
helpers
-
anchorFor: href info: infoMessageOrNil text: text name: nameOrNil
-
-
anchorForHTMLAction: actionString info: infoMessageOrNil text: text
-
-
anchorForHTMLAction: actionString info: infoMessageOrNil text: text name: nameOrNil
-
-
anchorForHTMLDocAction: actionString info: infoMessageOrNil text: text
-
-
anchorForHTMLDocAction: actionString info: infoMessageOrNil text: text name: anchorName
-
-
anchorForHTMLDocAction: actionString text: text
-
-
generateBODYEnd
-
-
generateBODYStart
-
-
generateBODYandHTMLEnd
-
-
generateBackButton
-
-
generateClassDocReferenceFor: className
-
-
generateClassDocReferenceFor: className text: text
-
-
generateClassDocReferenceFor: className text: text autoloading: autoloadedClass
-
generates a link to a classes documentation
-
generateH1: headerLine
-
-
generateHTMLEnd
-
-
generateHTMLHeadWithTitle: title
-
-
generateHorizontalLine
-
-
generatePackageDocReferenceFor: packageID text: text
-
generates a link to a package documentation
-
generateUpArrowButtonForTop
-
-
generateUpArrowButtonWithReference: backHRef command: backCmd imagePath: imagePath altLabel: altLabel
-
-
generatingForSTXBrowser
-
-
infoParameterFor: infoMessageOrNil
-
-
methodCommentOf: aMethod
-
-
nextPutAllEscaped: aStringOrCharacter
-
-
nextPutBold: aStringOrCharacter
-
-
nextPutItalic: aStringOrCharacter
-
-
shownSubclassesOf: aClass
-
-
withSpecialHTMLCharactersEscaped: aStringOrCharacter
-
pathnames
-
findPathToTopOfDocumentation
-
-
pathToDocumentationFile: relativeHref
-
-
pathToEnglishTopOfDocumentation
-
always unix-name convention (used as an URL)
-
pathToLanguageTopOfDocumentation
-
-
pathToTopOfDocumentation
-
|