Section | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
DocBook as OLE help - pdf, html, webhelp
- Peri worked with Jeff to add the documents to SVN. See Developing Rice DocBook Documentation
(Kuali OLE follows Rice and is currently using the DocBook 5 format for documentation and the docbkx-maven plugin to generate the documentation as part of our maven build.) Needed to change the image file references to ../images/filename.png and reference files to ../html/linkname (for html)
Example:Code Block <link xlink:href="../html/releaseNotes.html">HTML</link> <link xlink:href="../pdf/releaseNotes.pdf">PDF</link>
For webhelp, when linking FROM the index page (which follows the html format), links appear the same way
Code Block <link xlink:href="../webhelp/ADMIN/index.html">Webhelp</link>
However IF you are inserting a link from webhelp back to the index page or to another webhelp space, format is
Code Block <link xlink:href="../../../html/Index.html"> <link xlink:href="../../../webhelp/BASICS/index.html">OLE Basic Functionality and Key Concepts</link>
Separated out the chapters into individual xml files and pasted the docbook document type declaration in the chapter element:
Code Block <chapter xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en-US">
- Created an index page
...
- Enter your local OLE directory, once per day run
1. svn update
2. mvn clean install -DskipTests=true
Each time, to test type "mvn clean pre-site -N".
- To view the changes, open Windows Explorer and dig into the correct folder: your local OLE directory > target > site > reference > pdf, html or html-multi.
- Enter your local OLE directory, once per day run
DocBook as built-in help (webhelp)
Peri is working to create webhelp from DocBook. Currently images are not displaying. It is our intent to have the webhelp pages had to do some modifications to get the webhelp to show correctly. We had to modify images and tables to get them to display correctly. Webhelp pages are now linked with OLE.
DocBook Notes
...
- Sections are added with the <section> tag.
- Sections can be nested within sections.
Each section has a title. The structure is as follows:
<section>Code Block <section> <title>Section Level One</title>
<section>
<title>Section Level Two</title>
</section><section> <title>Section Level Two</title> </section> </section>
- Depending on the level, sections will usually appear in the table of contents.
To prevent a section from appearing in the table of contents, use this construct:
<sectionCode Block <section role="NotInToc"><title>Do Not Show In TOC</title>
Adding an Image File
- Create the image file and add to the images directory.
Use oXygen to link to the image file and you should be able to navigate to the image file in the GUI and the path will be generated for you. Image paths should be relative, i.e. "../images/image_name.png" and use underscores instead of spaces since they are more web friendly.
Make sure the image is sized properly by building the HTML webhelp and PDF versions and ensuring that they show up ok (I mentally calculate the depth for approximately 50% of the image's original size but do not state any width). Improperly sized images can look pretty bad, especially in the PDF output. Tools like Gimp are free and can be used to do the resizing.
Image files are inserted this ways into docbooks.
<inlinemediaobject><imageobject><imagedataCode Block <inlinemediaobject><imageobject><imagedata fileref="../images/EDL_Guide/example1.png" width="100%"/>
-OR-
<inlinemediaobject><imageobject><imagedataCode Block <inlinemediaobject><imageobject><imagedata fileref="../images/EDL_Guide/example1.png"/>
...
Links to external documents (in a different module) within a release should be entered like this :
Code Block |
---|
...
<link xlink:href="../../ |
...
../webhelp/BASICS/content/ch02s04.html#_Describe_ |
...
Workbench>OLE Search Workbench</link> |
Note: In the above example, this presumes we have the following anchor within the CG BASICS books:
Code Block |
---|
<section xml:id="_Describe_Workbench"> |
Links to internal documents (i.e. another section of the same module/chapter) should be entered as:
Code Block |
---|
<link linkend="_Editors">MARC Editor</link> |
where elsewhere the anchor exists somewhere else in the document there exists:
Code Block |
---|
<section xml:id="_Editors"> |
...
To link to a figure, set up the figure to have an xml id as follows:
Code Block |
---|
|
<figure xml:id="fig1"><title>Service Based Architecture</title>
...