Coordinated the DocEngine the produce documentation based on the gdoc format.
| Type | Name and description |
|---|---|
private static java.lang.String |
TOC_FILENAME |
private AntBuilder |
antThe AntBuilder instance to use |
private File |
apiDirDirectory containing the project's API documentation. |
private boolean |
asciidoc |
private java.lang.String |
authorsThe authors of the documentation |
private java.lang.String |
copyrightThe copyright message |
private File |
cssThe directory containing any CSS to use (will override defaults) * |
private java.lang.String |
encodingThe encoding to use (default is UTF-8) |
private Properties |
enginePropertiesProperties used to configure the DocEngine |
Properties |
engineProperties |
private File |
fontsThe directory containing any fonts to use (will override defaults) * |
private java.lang.String |
footerThe footer to include |
private File |
imagesThe directory containing any images to use (will override defaults) * |
private File |
jsThe directory containing any Javascript to use (will override defaults) * |
private java.lang.String |
languageThe language we're generating for (gets its own sub-directory). |
private java.lang.String |
licenseThe documentation license |
private java.lang.String |
logoHTML markup that renders the left logo |
private java.lang.Object |
output |
private File |
propertiesFileThe properties fie to populate the engine properties from |
private java.lang.String |
sourceRepoThe source repository |
private java.lang.String |
sponsorLogoHTML markup that renders the right logo |
private File |
srcThe source directory of the documentation |
private File |
styleThe directory cotnaining any templates to use (will override defaults) * |
private java.lang.String |
subtitleThe subtitle of the documentation |
private File |
targetThe target directory to publish to |
private java.lang.String |
titleThe title of the documentation |
private java.lang.String |
translatorsThe translators of the documentation (if any) |
private java.lang.String |
versionThe version of the documentation |
private File |
workDirThe temporary work directory |
| Constructor and description |
|---|
DocPublisher
() |
DocPublisher
(File src, File target, java.lang.Object out) |
DocPublisher
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Properties |
getEngineProperties()Returns the engine properties. |
|
protected void |
initialize() |
|
void |
publish() |
|
void |
registerMacro(java.lang.Object macro)Registers a custom Radeox macro. |
|
void |
setEngineProperties(Properties p)Sets the engine properties. |
|
protected java.lang.Object |
verifyToc(File baseDir, java.lang.Object gdocFiles, java.lang.Object toc)Checks the table of contents (a tree of UserGuideNodes) for duplicate section/alias names and invalid file paths. |
|
void |
writeChapter(java.lang.Object section, groovy.text.Template layoutTemplate, groovy.text.Template sectionTemplate, File guideSrcDir, java.lang.String targetDir, java.lang.Object fullContents, java.lang.Object vars) |
|
java.lang.String |
writePage(java.lang.Object section, groovy.text.Template layoutTemplate, groovy.text.Template sectionTemplate, File guideSrcDir, java.lang.String targetDir, java.lang.String subDir, java.lang.Object path, java.lang.Object level, java.lang.Object vars) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The AntBuilder instance to use
Directory containing the project's API documentation.
The authors of the documentation
The copyright message
The directory containing any CSS to use (will override defaults) *
The encoding to use (default is UTF-8)
Properties used to configure the DocEngine
The directory containing any fonts to use (will override defaults) *
The footer to include
The directory containing any images to use (will override defaults) *
The directory containing any Javascript to use (will override defaults) *
The language we're generating for (gets its own sub-directory). Defaults to ''
The documentation license
HTML markup that renders the left logo
The properties fie to populate the engine properties from
The source repository
HTML markup that renders the right logo
The source directory of the documentation
The directory cotnaining any templates to use (will override defaults) *
The subtitle of the documentation
The target directory to publish to
The title of the documentation
The translators of the documentation (if any)
The version of the documentation
The temporary work directory
Returns the engine properties.
Registers a custom Radeox macro. If the macro has an 'initialContext' property, it is set to the render context before first use.
Sets the engine properties. Allows clients to override the defaults.
Checks the table of contents (a tree of UserGuideNodes) for duplicate section/alias names and invalid file paths.
false if any errors are detected.