forked from ASF-inhambane/dhis2docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
user-stories-pom.xml
137 lines (137 loc) · 4.51 KB
/
user-stories-pom.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
<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>dhis-documentation-docbook-user-stories</artifactId>
<name>DHIS2 User Stories</name>
<version>2.25</version>
<description>DHIS2 User Stories</description>
<packaging>pom</packaging>
<prerequisites>
<maven>3.0.0</maven>
</prerequisites>
<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>
<pluginRepository>
<id>docbook-utils</id>
<name>DocBook Utils</name>
<url>http://docbook-utils.sourceforge.net/maven2</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</releases>
</pluginRepository>
</pluginRepositories>
<properties>
<docbkx.plugin.version>2.0.17</docbkx.plugin.version>
<docbook.source>${project.basedir}/src/docbkx</docbook.source>
<docbook.target>${project.basedir}/target/site</docbook.target>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.agilejava.docbkx</groupId>
<artifactId>docbkx-maven-plugin</artifactId>
<version>${docbkx.plugin.version}</version>
<configuration>
<xincludeSupported>true</xincludeSupported>
<bodyFontFamily>DejaVu Sans</bodyFontFamily>
<fonts>
<font>
<name>DejaVu Sans</name>
<style>normal</style>
<weight>normal</weight>
<embedFile>${project.basedir}/src/fonts/DejaVuSans.ttf</embedFile>
<metricsFile>${project.basedir}/target/fonts/DejaVuSans-metrics.xml</metricsFile>
</font>
</fonts>
</configuration>
<executions>
<!-- HTML User stories -->
<execution>
<id>chunked-html-docs-user-stories</id>
<phase>package</phase>
<goals>
<goal>generate-html</goal>
</goals>
<configuration>
<admonGraphics>1</admonGraphics>
<admonGraphicsPath>resources/images/admon/</admonGraphicsPath>
<htmlStylesheet>resources/css/user_stories.css</htmlStylesheet>
<chapterAutolabel>false</chapterAutolabel>
<sectionAutolabel>false</sectionAutolabel>
<tableAutolabel>false</tableAutolabel>
<sectionLabelIncludesComponentLabel>false</sectionLabelIncludesComponentLabel>
<chunkedOutput>true</chunkedOutput>
<chunkSectionDepth>0</chunkSectionDepth>
<useIdAsFilename>true</useIdAsFilename>
<includes>user_stories_book.xml</includes>
<sourceDirectory>${docbook.source}/en/content/user_stories</sourceDirectory>
<targetDirectory>${docbook.target}/en/user-stories/html</targetDirectory>
<postProcess>
<copy todir="${docbook.target}/en/user-stories/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-stories/html/resources/css">
<fileset dir="src/docbkx/en/resources/css">
<include name="**/*.css" />
</fileset>
</copy>
</postProcess>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>net.sf.docbook</groupId>
<artifactId>docbook-xml</artifactId>
<version>5.0-all</version>
<classifier>resources</classifier>
<type>zip</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>net.sf.offo</groupId>
<artifactId>fop-hyph</artifactId>
<version>1.2</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>