~openstackbook/openstackbook/essex

« back to all changes in this revision

Viewing changes to pom.xml

  • Committer: Anne Gentle
  • Date: 2011-11-18 19:07:47 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: anne@openstack.org-20111118190747-h0o1e8pjrwtxttnn
Adds epub output to pom, fixes typo and adds link

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
            </resource>
47
47
        </resources>
48
48
        <plugins>
49
 
            <!--<plugin>
50
 
                <groupId>org.codehaus.mojo</groupId>
51
 
                <artifactId>batik-maven-plugin</artifactId>
52
 
                <version>1.0-beta-1</version>
53
 
                
54
 
                <executions>
55
 
                <execution>
56
 
                <goals>
57
 
                <goal>rasterize</goal>
58
 
                </goals>
59
 
                <phase>generate-sources</phase>
60
 
                <configuration>
61
 
                <srcDir>${basedir}/source/docbkx/openstack-api-extensions/figures</srcDir>
62
 
                <destDir>${basedir}/target/docbkx/webhelp/apix-intro-proposal/content/figures</destDir>
63
 
                </configuration>
64
 
                </execution>
65
 
                </executions>
66
 
                </plugin>-->
 
49
            
67
50
            <plugin>
68
51
                <groupId>com.rackspace.cloud.api</groupId>
69
52
                <artifactId>clouddocs-maven-plugin</artifactId>
70
 
                <version>1.0.4</version>
 
53
                <version>1.0.8-SNAPSHOT</version>
71
54
                <executions>
72
55
                    <execution>
 
56
                        <id>goal1</id>
73
57
                        <goals>
74
58
                            <goal>generate-pdf</goal>
 
59
                        </goals>
 
60
                        <phase>generate-sources</phase>
 
61
                        <configuration>
 
62
                            <highlightSource>false</highlightSource>
 
63
                            <!-- The following elements sets the autonumbering of sections in output for chapter numbers but no numbered sections-->
 
64
                            <sectionAutolabel>0</sectionAutolabel>
 
65
                            <sectionLabelIncludesComponentLabel>0</sectionLabelIncludesComponentLabel>
 
66
                        </configuration>
 
67
                    </execution>
 
68
                    <execution>
 
69
                        <id>goal2</id>
 
70
                        <goals>
75
71
                            <goal>generate-webhelp</goal>
76
72
                        </goals>
77
73
                        <phase>generate-sources</phase>
 
74
                        <configuration>
 
75
                            <!-- These parameters only apply to webhelp -->
 
76
                            <enableDisqus>0</enableDisqus>
 
77
                            <disqusShortname>openstackstarterdoc</disqusShortname>
 
78
                            <enableGoogleAnalytics>1</enableGoogleAnalytics>
 
79
                            <googleAnalyticsId>UA-17511903-6</googleAnalyticsId>
 
80
                            <generateToc>
 
81
                                appendix  toc,title
 
82
                                article/appendix  nop
 
83
                                article   toc,title
 
84
                                book      title,figure,table,example,equation
 
85
                                chapter   toc,title
 
86
                                part      toc,title
 
87
                                preface   toc,title
 
88
                                qandadiv  toc
 
89
                                qandaset  toc
 
90
                                reference toc,title
 
91
                                set       toc,title
 
92
                            </generateToc>
 
93
                            <!-- The following elements sets the autonumbering of sections in output for chapter numbers but no numbered sections-->
 
94
                            <sectionAutolabel>0</sectionAutolabel>
 
95
                            <sectionLabelIncludesComponentLabel>0</sectionLabelIncludesComponentLabel>
 
96
                            <postProcess>
 
97
                                <!-- Copies the figures to the correct location for webhelp -->
 
98
                                
 
99
                                <copy todir="${basedir}/target/docbkx/webhelp/OpenStackbook/content/images">
 
100
                                    <fileset dir="${basedir}/images">
 
101
                                        <include name="**/*.*" />
 
102
                                    </fileset>
 
103
                                </copy>
 
104
                                
 
105
                                <!-- Copies webhelp (HTML output) to desired URL location on docs.openstack.org -->
 
106
                                
 
107
                                <copy
 
108
                                    todir="${basedir}/target/docbkx/webhelp/openstack-compute/starter">
 
109
                                    <fileset
 
110
                                        dir="${basedir}/target/docbkx/webhelp/Openstackbook/">
 
111
                                        <include name="**/*" />
 
112
                                    </fileset>
 
113
                                </copy>
 
114
                                
 
115
                                <!--Moves PDFs to the needed placement -->
 
116
                                
 
117
                                <move failonerror="false"
 
118
                                    file="${basedir}/target/docbkx/pdf/Openstackbook.pdf"
 
119
                                    tofile="${basedir}/target/docbkx/webhelp/openstack-compute/starter/os-compute-starterguide-trunk.pdf"/>                
 
120
                                
 
121
                                <!--Deletes leftover uneeded directories -->
 
122
                                
 
123
                                <delete dir="${basedir}/target/docbkx/webhelp/Openstackbook"/>
 
124
                                
 
125
                            </postProcess>
 
126
                        </configuration>
 
127
                    </execution>
 
128
                    <execution>
 
129
                        <id>goal3</id>
 
130
                        <goals>
 
131
                            <goal>generate-epub</goal>
 
132
                        </goals>
 
133
                        <phase>generate-sources</phase>
 
134
                        <configuration>
 
135
                            <highlightSource>true</highlightSource>
 
136
                            <!-- The following elements sets the autonumbering of sections in output for chapter numbers but no numbered sections-->
 
137
                            <sectionAutolabel>0</sectionAutolabel>
 
138
                            <sectionLabelIncludesComponentLabel>0</sectionLabelIncludesComponentLabel>
 
139
                            <postProcess>
 
140
                                <!-- Copies the figures to the correct location for epub -->
 
141
                                <mkdir dir="${basedir}/target/docbkx/epub/Openstackbook/images"/>
 
142
                                <copy todir="${basedir}/target/docbkx/epub/Openstackbook/images">
 
143
                                    <fileset dir="${basedir}/images">
 
144
                                        <include name="**/*.png" />
 
145
                                    </fileset>
 
146
                                </copy>
 
147
                               
 
148
                                <!-- Rezip now that the figures are in the correct location -->
 
149
                                <zip
 
150
                                    destfile="${basedir}/target/docbkx/webhelp/openstack-compute/starter/os-compute-starterguide.epub"
 
151
                                    basedir="${basedir}/target/docbkx/epub/Openstackbook/"
 
152
                                    update="true"
 
153
                                    excludes="**/*.epub"/>
 
154
                                
 
155
                            </postProcess>
 
156
                        </configuration>
78
157
                    </execution>
79
158
                </executions>
80
 
                <dependencies>
81
 
                    <dependency>
82
 
                        <groupId>org.docbook</groupId>
83
 
                        <artifactId>docbook-xml</artifactId>
84
 
                        <version>4.4</version>
85
 
                        <scope>runtime</scope>
86
 
                    </dependency>
87
 
                </dependencies>
88
159
                <configuration>
 
160
                    <!-- These parameters apply to all the goals -->
89
161
                    <xincludeSupported>true</xincludeSupported>
90
162
                    <sourceDirectory>.</sourceDirectory>
91
163
                    <includes>
92
164
                        Openstackbook.xml
93
165
                    </includes>
94
 
                    <highlightSource>false</highlightSource>
95
166
                    <profileSecurity>reviewer</profileSecurity>
96
167
                    <branding>openstack</branding>
97
 
                    <enableDisqus>1</enableDisqus>
98
 
                    <disqusShortname>openstackstarterdoc</disqusShortname>
99
 
                    <enableGoogleAnalytics>1</enableGoogleAnalytics>
100
 
                    <googleAnalyticsId>UA-17511903-6</googleAnalyticsId>
101
 
                    <generateToc>
102
 
                        appendix  toc,title
103
 
                        article/appendix  nop
104
 
                        article   toc,title
105
 
                        book      title,figure,table,example,equation
106
 
                        chapter   toc,title
107
 
                        part      toc,title
108
 
                        preface   toc,title
109
 
                        qandadiv  toc
110
 
                        qandaset  toc
111
 
                        reference toc,title
112
 
                        set       toc,title
113
 
                    </generateToc>
114
 
                    <!-- The following elements sets the autonumbering of sections in output for chapter numbers but no numbered sections-->
115
 
                    <sectionAutolabel>0</sectionAutolabel>
116
 
                    <sectionLabelIncludesComponentLabel>0</sectionLabelIncludesComponentLabel>
117
 
                    <postProcess>
118
 
                        <!-- Copies the figures to the correct location for webhelp -->
119
 
                        <copy todir="${basedir}/target/docbkx/webhelp/Openstackbook/content/images">
120
 
                            <fileset dir="${basedir}/images">
121
 
                                <include name="**/*.png"/>
122
 
                            </fileset>
123
 
                        </copy>
124
 
                        
125
 
                        <!-- Moves HTML of Starter Guide to diablo directory -->
126
 
                        <copy todir="${basedir}/target/docbkx/webhelp/diablo/openstack-compute/starter/">
127
 
                            <fileset
128
 
                                dir="${basedir}/target/docbkx/webhelp/Openstackbook">
129
 
                                <include name="**/*" />
130
 
                            </fileset>
131
 
                        </copy>
132
 
                        
133
 
                        <!--Moves PDFs to the needed placement -->
134
 
                        <move failonerror="false"
135
 
                            file="${basedir}/target/docbkx/pdf/Openstackbook.pdf"
136
 
                            tofile="${basedir}/target/docbkx/webhelp/diablo/openstack-compute/starter/openstack-starter-guide-diablo.pdf"/>
137
 
                        <!--Deletes leftover uneeded directories -->
138
 
                        <!--<delete
139
 
                            dir="${basedir}/target/docbkx/pdf"/>-->
140
 
                    </postProcess>
141
168
                </configuration>
142
 
                
143
169
            </plugin>
144
170
            
145
171
        </plugins>