This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
/
README
136 lines (103 loc) · 5.12 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
Welcome
-------
This repository contains the installation, administration, user, and reference
documentation for Eucalyptus. It includes files for generating guides published
on the Eucalyptus website (www.eucalyptus.com).
Contributing to Eucalyptus
--------------------------
Eucalyptus welcomes all people interested in cloud computing. We recommend that
you connect with other Eucalyptus users or get actively involved with Eucalyptus
development, including documentation.
The Eucalyptus IRC channel is #eucalyptus on Freenode. This channel is used for
real-time communication among users and developers. Information about how to use
the network is available from Freenode
(http://freenode.net/using_the_network.shtml).
The Eucalyptus community mailing list is [email protected]. This
list is used for user discussions, problem reports, and other communications.
Information about how to subscribe is available at
http://lists.eucalyptus.com/cgi-bin/mailman/listinfo/community.
Building PDF Documentation
--------------------------
If you want to generate PDF from the files in this repository, perform
the following tasks:
* Make sure that you have Java and ANT installed.
* Create environment variables for the following:
DOC_HOME (path to the /content directory),
DITA_HOME (path to the /tools/DITA-OT directory)
JAVA_HOME
ANT_HOME
* In the build.properties file for the guide you want to build, make sure that the
pdf.formatter value is set to fop. The pdf.formatter value for xep should be
commented out.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pdf.formatter=fop
#pdf.formatter=xep
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Change to the /tools/DITA-OT directory, and run the shell script
DITA-OT/startcmd.sh (or startcmd.bat in Windows) to set up the necessary
environment variables.
* In the same shell window, change directories to the directory you want to
generate documentation for.
* Enter the ant command and the output format type:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ant pdf
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Building HTML Documentation
---------------------------
If you want to generate HTML from the files in this repository, perform
the following tasks:
* Make sure that you have Java.
* Create environment variables for DOC_HOME (path to the /content/ directory
is), DITAC_HOME (path to the /tools/tools/ditac/ditac-2_2_3 directory),
and JAVA_HOME.
* Open a terminal and run the following command:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
( DOC_NAME=ig DOC_VER=3.2;
$DITAC_HOME/bin/ditac \
-f webhelp \
-images img \
-p use-note-icon yes \
-p xsl-resources-directory css \
-toc \
-p chain-pages both \
-p wh-jquery-ui ../../jquery-ui/js/jquery-ui-1.8.23.custom.min.js \
-p wh-jquery-css ../../jquery-ui/css/custom-theme/jquery-ui-1.8.23.custom.css \
-p wh-user-header ./whc_template/_wh/euca/header_$DOC_NAME.html \
-p wh-user-resources ./whc_template/_wh/euca \
-p wh-user-css ./whc_template/_wh/euca/eucadoc.css \
-p wh-user-footer ./whc_template/_wh/euca/footer.html \
-p wh-collapse-toc yes \
-index \
out/docs/$DOC_VER/$DOC_NAME/_.html \
$DOC_HOME/en_us/$DOC_NAME.ditamap )
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* To generate other guides, change the value for DOC_NAME to the initials of the
guide you want to generate:
* ag - Administration Guide
* cli - Command Line Reference Guide
* fs - FastStart Guide
* ig - Installation Guide
* ug - User Guide
* To open the generated set of HTML file, go to:
$DITAC_HOME/out/docs/3.2/$DOC_NAME/index.html
* Note that the Eucalyptus logo will not display in your output. You can edit this
path or image file by editing each header file located in:
$DITAC_HOME/whc_template/_wh/euca/header_$DOC_NAME.html
Before You Submit Content
_________________________
Please make sure that your content is valid. If the XML content is not valid,
our build breaks and we get unhappy when our build breaks.
To validate your content:
* Set up a session variable to point to the DITA-OT catalog file.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export SGML_CATALOG_FILES=$DITA_HOME/catalog-dita.xml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Run the xmllint command against a file you worked on.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xmllint --noout --valid --catalogs [path_to_the_file]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If there is a validation error, the command will return the line number and the
section where the error is located. No output means that there are no errors and
you can submit content.
* For more information about xmllint, go to:
http://xmlsoft.org/xmllint.html