Difference between revisions of "User:Jholsenback/WikiDocGen"
Jholsenback (talk | contribs) m (minor wording) |
Jholsenback (talk | contribs) m (updated info) |
||
Line 33: | Line 33: | ||
<li>builds the various table of contents files and an <em>index.html</em> file for a given doc set</li> | <li>builds the various table of contents files and an <em>index.html</em> file for a given doc set</li> | ||
</ul> | </ul> | ||
− | + | <li><code>mkImagePackage.php</code></li> | |
− | + | <ul> | |
− | + | <li>builds the <em>images</em> directory structure and copies files from the POV-Wiki</li> | |
− | + | </ul> | |
− | + | <li><code>common.php</code></li> | |
− | + | <ul> | |
− | + | <li>frequently used functions associated with the povdocgen process</li> | |
− | + | </ul> | |
− | + | <li><code>utilities.php</code></li> | |
− | + | <ul> | |
− | + | <li>frequently used functions associated with the povdocgen process, an attempt to organize</li> | |
− | + | </ul> | |
− | + | <li><code>documentation/WikiImages</code></li> | |
− | + | <ul> | |
− | + | <li>a symbolic link to the POV-Wiki images directory</li> | |
− | + | </ul> | |
− | + | <li><code>documentation/favicon.ico</code></li> | |
− | + | <ul> | |
− | + | <li>copied to a given doc set directory</li> | |
− | + | </ul> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</ol> | </ol> | ||
Besides the <em>content</em> files on the POV-Wiki these files are also part of the process: | Besides the <em>content</em> files on the POV-Wiki these files are also part of the process: | ||
Line 65: | Line 58: | ||
<li>[[Documentation:Page Header|Page Header]]</li> | <li>[[Documentation:Page Header|Page Header]]</li> | ||
<li>[[Documentation:Content Header Footer|Content Header Footer]]</li> | <li>[[Documentation:Content Header Footer|Content Header Footer]]</li> | ||
+ | <li>[[Documentation:Povray37css|Style Sheet]]</li> | ||
<li>[[Documentation:Index Page|Index Page]]</li> | <li>[[Documentation:Index Page|Index Page]]</li> | ||
</ol> | </ol> |
Revision as of 14:28, 20 December 2010
The Setup
In the directory /a/home/jholsenback/testbed
this is the expected directory structure:
documentation
mac
images
unx
images
win
images
You should be in the above mentioned directory to run the scripts, however, the batch-files wander a bit but always end up back home.
The Files
These are the files that make up the povdocgen process:
batchMacFiles
- a bash script that processes the Mac OS documentation set
batchWinFiles
- a bash script that processes the Windows documentation set
batchUnxFiles
- a bash script that processes the Unix documentation set
getWikiPages.php
- gets the files from the POV-Wiki and processes them
mkContentsPages.php
- builds the various table of contents files and an index.html file for a given doc set
mkImagePackage.php
- builds the images directory structure and copies files from the POV-Wiki
common.php
- frequently used functions associated with the povdocgen process
utilities.php
- frequently used functions associated with the povdocgen process, an attempt to organize
documentation/WikiImages
- a symbolic link to the POV-Wiki images directory
documentation/favicon.ico
- copied to a given doc set directory
Besides the content files on the POV-Wiki these files are also part of the process:
Notes
The most important part of this process is that it is driven off these files:
- Windows Table of Contents
- Mac OS Table of Contents
- Unix Table of Contents
- Tutorial Table of Contents
- Reference Table of Contents
The GatherTOCfiles
and BuildDocMap
functions reads and processes those files. They are located in utilities
and common
respectively, they depend on the class DocumentMap
definition located in common
. During batch processing if an exception message is seen, most likely something isn't correct with an associated table of contents entry and how it appears in the content body. The title portion of the toc entry and the heading entry in the content body MUST be and exact match. Batch processing will continue and the offender will appear in the content body as wiki markup.
Hint: look for the wiki tag Documentation:
The content on the Wiki is organized such that a given section can span more than one file, the script getWikiPages.php
effectively concatenates the files together, so look near the bottom of that script to find a place to tap into the stream as it were!