author | Michel Szarindar <Michel.Szarindar@Nokia.com> |
Fri, 23 Apr 2010 20:47:58 +0100 | |
changeset 3 | d8fccb2cd802 |
parent 2 | 932c358ece3e |
permissions | -rw-r--r-- |
2
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
1 |
License |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
2 |
======= |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
3 |
Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
4 |
This component and the accompanying materials are made available under the terms of the License |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
5 |
"Eclipse Public License v1.0" which accompanies this distribution, |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
6 |
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
7 |
|
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
8 |
Introduction |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
9 |
============ |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
10 |
This document explains how to use mpdot.exe on converted cxx specialisation xml to create html. |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
11 |
|
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
12 |
MPDOT.exe runs the DITA Open Toolkit for each cxx specialisation reference component in parallel. This decreases the time it |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
13 |
takes to build a large amount of reference xml documentation and also reduces the likelihood of java out of memory issues. |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
14 |
|
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
15 |
Prerequisites |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
16 |
============= |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
17 |
This supplied version of the DITA Open Toolkit is based onDITA-OT version 1.5.1. It contains the specialised cxxapiref plugin |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
18 |
DITA-OT1.5.1/plugins/cxxapiref and some specific python scripts. |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
19 |
|
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
20 |
To use this modified version of DITA Open Toolkit unzip it to a location on your build machine and follow the instructions below. |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
21 |
|
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
22 |
You should have already installed and run ORB and orb_process_cxx.bat on your content and as a result have a directory |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
23 |
with all the cxx reference and maps within it. This directory can be found here: |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
24 |
%EPOCROOT%epoc32\release\doxygen\dita |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
25 |
|
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
26 |
This directory should contain a set of files including maps and reference documents. Maps are named .ditamap |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
27 |
and reference documents .xml. All the files should have been renamed with a global unique id (GUID) and there should |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
28 |
be a file named GUID-445218BA-A6BF-334B-9337-5DCBD993AEB3.ditamap. This file is the main ditamap and this is passed to |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
29 |
the mpdot.exe for processing. |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
30 |
|
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
31 |
If you do not have these files see the README.txt document in ORB for instructions. |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
32 |
|
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
33 |
Building html with mpdot |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
34 |
======================== |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
35 |
Open a command prompt with startcmd.bat in the DITA-OT1.5.1 installation. This sets the required environment variables and opens |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
36 |
a command prompt. |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
37 |
|
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
38 |
envoke mpdot.exe with the path to the ditamap you wish to build and the path of the output directory. |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
39 |
If the output directory does not already exist then create it first. |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
40 |
|
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
41 |
mpdot.exe <DITA map> <output directory> |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
42 |
|
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
43 |
For example: |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
44 |
python\dist\mpdot.exe "C:\epoc32\release\doxygen\dita\GUID-445218BA-A6BF-334B-9337-5DCBD993AEB3.ditamap" "C:\epoc32\release\mpdot_out" |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
45 |
|
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
46 |
Other options |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
47 |
============= |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
48 |
These options can also be passed to mpdot.exe. |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
49 |
* -j 0 This option detects and uses maximum processors on the build machine. |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
50 |
* dita.preprocess.reloadstylesheet=true This option reduces the amount of memory the java virtual machine uses and so will reduce |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
51 |
the likelihood of memory errors. |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
52 |
* transtype=xhtml This is the output type that DITA Open Toolkit will produce. Check DITA Open Toolkit help |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
53 |
for other options. |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
54 |
For example: |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
55 |
python\dist\mpdot.exe -j 0 "C:\epoc32\release\doxygen\dita\GUID-445218BA-A6BF-334B-9337-5DCBD993AEB3.ditamap" "C:\epoc32\release\mpdot_out" transtype=xhtml dita.preprocess.reloadstylesheet=true |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
56 |
|
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
57 |
Output |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
58 |
====== |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
59 |
In the output directory you will find these directories: |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
60 |
|
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
61 |
Directory tree Description |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
62 |
-------------- ----------- |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
63 |
+---dot_comp Contains all components individually built in their own directories. The name of the ditamap built by DOT is in the name of the folder. |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
64 |
+---dot_src All component files and their maps and the main ditamap |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
65 |
+---dot_toc Contains the main toc only. |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
66 |
+---dot_toc_tmp Temporary directory |
932c358ece3e
Orb version 0.1.9. Fixes Bug 1965, Bug 2401
Michel Szarindar <Michel.Szarindar@Nokia.com>
parents:
diff
changeset
|
67 |