forked from litlfred/DeansDashboardDocs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom-two-books.xml
237 lines (237 loc) · 8.71 KB
/
pom-two-books.xml
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.hisp.dhis</groupId>
<artifactId>deans-dashboard-documentation-docbook</artifactId>
<name>Deans Dashboard Documentation</name>
<version>2.17</version>
<description>Deans Dashboard Documentation</description>
<packaging>pom</packaging>
<pluginRepositories>
<pluginRepository>
<id>docbkx.snapshots</id>
<name>Maven Plugin Snapshots</name>
<url>http://docbkx-tools.sourceforge.net/snapshots/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<properties>
<docbkx.plugin.version>2.0.15</docbkx.plugin.version>
<docbook.source>${project.basedir}/src/docbkx</docbook.source>
<docbook.target>${project.basedir}/target/site</docbook.target>
</properties>
<build>
<plugins>
<!--This section dynamically builds the build.properties which is replaced inside the document preface -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>revision</id>
<phase>package</phase>
<configuration>
<tasks>
<tstamp>
<format property="now" pattern="yyyy-MM-dd HH:mm:ss"/>
</tstamp>
<exec executable="git" outputproperty="revision" failifexecutionfails="false">
<arg line="rev-list --count HEAD"/>
</exec>
<echo file="${project.basedir}/src/docbkx/build.properties" message="<?xml version='1.0' encoding='UTF-8'?><revhistory><revision><revnumber>Revision ${revision}</revnumber><revremark>Version ${project.version} ${now}</revremark></revision></revhistory>" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>submodules</id>
<phase>package</phase>
<configuration>
<tasks>
<exec executable ="git" failifexecutionfails="true">
<arg line="submodule update --init --recursive"/>
</exec>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.agilejava.docbkx</groupId>
<artifactId>docbkx-maven-plugin</artifactId>
<version>${docbkx.plugin.version}</version>
<configuration>
<xincludeSupported>true</xincludeSupported>
</configuration>
<!-- Chunked HTML User docs-->
<executions>
<execution>
<id>chunked-html-docs-user</id>
<phase>package</phase>
<goals>
<goal>generate-html</goal>
</goals>
<configuration>
<sourceDirectory>${docbook.source}/en/</sourceDirectory>
<targetDirectory>${docbook.target}/en/user/html/</targetDirectory>
<admonGraphics>1</admonGraphics>
<admonGraphicsPath>resources/images/admon/</admonGraphicsPath>
<htmlStylesheet>resources/css/docbook_bsd.css</htmlStylesheet>
<glossaryCollection>resources/glossary_en.xml</glossaryCollection>
<sectionAutolabel>1</sectionAutolabel>
<sectionLabelIncludesComponentLabel>1</sectionLabelIncludesComponentLabel>
<chunkedOutput>true</chunkedOutput>
<useEmbedForSvg>1</useEmbedForSvg>
<includes>dhis2_user_manual_en.xml</includes>
<postProcess>
<copy todir="${docbook.target}/en/user/html/resources/images">
<fileset dir="src/docbkx/en/resources/images">
<include name="**/*.png" />
<include name="**/*.PNG" />
<include name="**/*.gif" />
<include name="**/*.jpg" />
<include name="**/*.svg" />
</fileset>
</copy>
<copy todir="${docbook.target}/en/user/html/resources/css">
<fileset dir="src/docbkx/en/resources/css">
<include name="**/*.css" />
</fileset>
</copy>
</postProcess>
</configuration>
</execution>
<!-- Chunked HTML End User docs-->
<execution>
<id>chunked-html-docs-end-user</id>
<phase>package</phase>
<goals>
<goal>generate-html</goal>
</goals>
<configuration>
<admonGraphics>1</admonGraphics>
<admonGraphicsPath>resources/images/admon/</admonGraphicsPath>
<htmlStylesheet>resources/css/docbook_bsd.css</htmlStylesheet>
<glossaryCollection>resources/glossary_en.xml</glossaryCollection>
<sectionAutolabel>1</sectionAutolabel>
<sectionLabelIncludesComponentLabel>1</sectionLabelIncludesComponentLabel>
<chunkedOutput>true</chunkedOutput>
<includes>dhis2_end_user_manual.xml</includes>
<sourceDirectory>${docbook.source}/en/</sourceDirectory>
<targetDirectory>${docbook.target}/en/end-user/html</targetDirectory>
<postProcess>
<copy todir="${docbook.target}/en/end-user/html/resources/images">
<fileset dir="src/docbkx/en/resources/images">
<include name="**/*.png" />
<include name="**/*.PNG" />
<include name="**/*.gif" />
<include name="**/*.jpg" />
<include name="**/*.svg" />
</fileset>
</copy>
<copy todir="${docbook.target}/en/end-user/html/resources/css">
<fileset dir="src/docbkx/en/resources/css">
<include name="**/*.css" />
</fileset>
</copy>
</postProcess>
</configuration>
</execution>
<!-- Single page HTML -->
<execution>
<id>html-docs-en</id>
<phase>package</phase>
<goals>
<goal>generate-html</goal>
</goals>
<configuration>
<admonGraphics>1</admonGraphics>
<admonGraphicsPath>resources/images/admon/</admonGraphicsPath>
<htmlStylesheet>resources/css/docbook_bsd.css</htmlStylesheet>
<glossaryCollection>resources/glossary_en.xml</glossaryCollection>
<sectionAutolabel>1</sectionAutolabel>
<sectionLabelIncludesComponentLabel>1</sectionLabelIncludesComponentLabel>
<chunkedOutput>false</chunkedOutput>
<includes>dhis2_user_manual_en.xml,dhis2_end_user_manual.xml</includes>
<sourceDirectory>${docbook.source}/en/</sourceDirectory>
<postProcess>
<copy file="target/docbkx/html/dhis2_user_manual_en.html" tofile="${docbook.target}/en/user/html/dhis2_user_manual_en_full.html" />
<copy file="target/docbkx/html/dhis2_end_user_manual.html" tofile="${docbook.target}/en/end-user/html/dhis2_end_user_manual_full.html" />
</postProcess>
</configuration>
</execution>
<!-- PDF User docs-->
<execution>
<id>pdf-docs-en-user</id>
<phase>package</phase>
<goals>
<goal>generate-pdf</goal>
</goals>
<configuration>
<argLine>-Xmx1024m</argLine>
<foCustomization>${docbook.source}/en/resources/xsl/fop-cust.xsl</foCustomization>
<doubleSided>1</doubleSided>
<paperType>A4</paperType>
<includes>dhis2_user_manual_en.xml</includes>
<sourceDirectory>${docbook.source}/en/</sourceDirectory>
<postProcess>
<copy file="target/docbkx/pdf/dhis2_user_manual_en.pdf" todir="${docbook.target}/en/user" />
</postProcess>
</configuration>
</execution>
<!-- Adds an RTF build, but broken at the moment.
<execution>
<id>rtf-docs-user</id>
<phase>package</phase>
<goals>
<goal>generate-rtf</goal>
</goals>
<configuration>
<argLine>-Xmx1024m</argLine>
<doubleSided>1</doubleSided>
<includes>dhis2_user_manual_en.xml</includes>
<sourceDirectory>${docbook.source}/en/</sourceDirectory>
<postProcess>
<copy file="target/docbkx/rtf/dhis2_end_user_manual.rtf" todir="${docbook.target}/en/user" />
</postProcess>
</configuration>
</execution> -->
</executions>
<dependencies>
<dependency>
<groupId>org.docbook</groupId>
<artifactId>docbook-xml</artifactId>
<version>4.4</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>com.agilejava.docbkx</groupId>
<artifactId>docbkx-fop-support</artifactId>
<version>${docbkx.plugin.version}</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<ansi>false</ansi>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>