| 1 | <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/xsd/maven-4.0.0.xsd"> |
|---|
| 2 | <modelVersion>4.0.0</modelVersion> |
|---|
| 3 | <parent> |
|---|
| 4 | <artifactId>pustefixframework</artifactId> |
|---|
| 5 | <groupId>org.pustefixframework</groupId> |
|---|
| 6 | <version>1.0.2</version> |
|---|
| 7 | </parent> |
|---|
| 8 | |
|---|
| 9 | <name>Pustefix Docbook Documentation</name> |
|---|
| 10 | |
|---|
| 11 | <groupId>org.pustefixframework</groupId> |
|---|
| 12 | <artifactId>pustefix-docbook</artifactId> |
|---|
| 13 | <version>1.0.2</version> |
|---|
| 14 | <packaging>pom</packaging> |
|---|
| 15 | |
|---|
| 16 | <build> |
|---|
| 17 | <plugins> |
|---|
| 18 | <plugin> |
|---|
| 19 | <!-- Notes: |
|---|
| 20 | * pdf generation needs an image path because the image is resolved at build-time |
|---|
| 21 | (html images are resolved at runtime) |
|---|
| 22 | * documentation: http://code.google.com/p/docbkx-tools/ |
|---|
| 23 | * built-in images (src/site/resources/docbkx/images/docbkx copied from |
|---|
| 24 | http://mvnrepository.com/artifact/org.docbook/docbook-xsl/1.72.0) |
|---|
| 25 | --> |
|---|
| 26 | <groupId>com.agilejava.docbkx</groupId> |
|---|
| 27 | <artifactId>docbkx-maven-plugin</artifactId> |
|---|
| 28 | <version>2.0.9</version> |
|---|
| 29 | <executions> |
|---|
| 30 | <execution> |
|---|
| 31 | <id>tutorial-html</id> |
|---|
| 32 | <phase>pre-site</phase> |
|---|
| 33 | <goals> |
|---|
| 34 | <goal>generate-html</goal> |
|---|
| 35 | </goals> |
|---|
| 36 | <configuration> |
|---|
| 37 | <sourceDirectory>src/docbkx/tutorial</sourceDirectory> |
|---|
| 38 | <includes>tutorial.xml</includes> |
|---|
| 39 | <admonGraphicsPath>images/docbkx/</admonGraphicsPath> |
|---|
| 40 | <calloutGraphicsPath>images/docbkx/callouts/</calloutGraphicsPath> |
|---|
| 41 | </configuration> |
|---|
| 42 | </execution> |
|---|
| 43 | <execution> |
|---|
| 44 | <id>tutorial-pdf</id> |
|---|
| 45 | <phase>pre-site</phase> |
|---|
| 46 | <goals> |
|---|
| 47 | <goal>generate-pdf</goal> |
|---|
| 48 | </goals> |
|---|
| 49 | <configuration> |
|---|
| 50 | <sourceDirectory>src/docbkx/tutorial</sourceDirectory> |
|---|
| 51 | <includes>tutorial.xml</includes> |
|---|
| 52 | <imgSrcPath>../../site/resources/docbkx/</imgSrcPath> |
|---|
| 53 | <admonGraphicsPath>../../site/resources/docbkx/images/docbkx/</admonGraphicsPath> |
|---|
| 54 | <calloutGraphicsPath>../../site/resources/docbkx/images/docbkx/callouts/</calloutGraphicsPath> |
|---|
| 55 | </configuration> |
|---|
| 56 | </execution> |
|---|
| 57 | <execution> |
|---|
| 58 | <id>reference-html</id> |
|---|
| 59 | <phase>pre-site</phase> |
|---|
| 60 | <goals> |
|---|
| 61 | <goal>generate-html</goal> |
|---|
| 62 | </goals> |
|---|
| 63 | <configuration> |
|---|
| 64 | <sourceDirectory>src/docbkx/reference</sourceDirectory> |
|---|
| 65 | <includes>reference.xml</includes> |
|---|
| 66 | </configuration> |
|---|
| 67 | </execution> |
|---|
| 68 | <execution> |
|---|
| 69 | <id>reference-pdf</id> |
|---|
| 70 | <phase>pre-site</phase> |
|---|
| 71 | <goals> |
|---|
| 72 | <goal>generate-pdf</goal> |
|---|
| 73 | </goals> |
|---|
| 74 | <configuration> |
|---|
| 75 | <sourceDirectory>src/docbkx/reference</sourceDirectory> |
|---|
| 76 | <includes>reference.xml</includes> |
|---|
| 77 | <imgSrcPath>../../site/resources/docbkx/</imgSrcPath> |
|---|
| 78 | <admonGraphicsPath>../../site/resources/docbkx/images/docbkx/</admonGraphicsPath> |
|---|
| 79 | <calloutGraphicsPath>../../site/resources/docbkx/images/docbkx/callouts/</calloutGraphicsPath> |
|---|
| 80 | </configuration> |
|---|
| 81 | </execution> |
|---|
| 82 | <execution> |
|---|
| 83 | <id>faq-html</id> |
|---|
| 84 | <phase>pre-site</phase> |
|---|
| 85 | <goals> |
|---|
| 86 | <goal>generate-html</goal> |
|---|
| 87 | </goals> |
|---|
| 88 | <configuration> |
|---|
| 89 | <sourceDirectory>src/docbkx/faq</sourceDirectory> |
|---|
| 90 | <includes>faq.xml</includes> |
|---|
| 91 | </configuration> |
|---|
| 92 | </execution> |
|---|
| 93 | <execution> |
|---|
| 94 | <id>faq-pdf</id> |
|---|
| 95 | <phase>pre-site</phase> |
|---|
| 96 | <goals> |
|---|
| 97 | <goal>generate-pdf</goal> |
|---|
| 98 | </goals> |
|---|
| 99 | <configuration> |
|---|
| 100 | <sourceDirectory>src/docbkx/faq</sourceDirectory> |
|---|
| 101 | <includes>faq.xml</includes> |
|---|
| 102 | <imgSrcPath>../../site/resources/docbkx/</imgSrcPath> |
|---|
| 103 | <admonGraphicsPath>../../site/resources/docbkx/images/docbkx/</admonGraphicsPath> |
|---|
| 104 | <calloutGraphicsPath>../../site/resources/docbkx/images/docbkx/callouts/</calloutGraphicsPath> |
|---|
| 105 | </configuration> |
|---|
| 106 | </execution> |
|---|
| 107 | </executions> |
|---|
| 108 | <dependencies> |
|---|
| 109 | <dependency> |
|---|
| 110 | <groupId>org.docbook</groupId> |
|---|
| 111 | <artifactId>docbook-xml</artifactId> |
|---|
| 112 | <version>4.4</version> |
|---|
| 113 | <scope>runtime</scope> |
|---|
| 114 | </dependency> |
|---|
| 115 | </dependencies> |
|---|
| 116 | <configuration> |
|---|
| 117 | <xincludeSupported>true</xincludeSupported> |
|---|
| 118 | <chunkedOutput>false</chunkedOutput> |
|---|
| 119 | <targetDirectory>${basedir}/target/site/docbkx</targetDirectory> |
|---|
| 120 | |
|---|
| 121 | <sectionAutolabel>1</sectionAutolabel> |
|---|
| 122 | <sectionAutolabelMaxDepth>2</sectionAutolabelMaxDepth> |
|---|
| 123 | <sectionLabelIncludesComponentLabel>1</sectionLabelIncludesComponentLabel> |
|---|
| 124 | <htmlCleanup>1</htmlCleanup> |
|---|
| 125 | <useExtensions>1</useExtensions> |
|---|
| 126 | <textinsertExtension>1</textinsertExtension> |
|---|
| 127 | <linenumberingExtension>1</linenumberingExtension> |
|---|
| 128 | <graphicsizeExtension>0</graphicsizeExtension> |
|---|
| 129 | <highlightSource>1</highlightSource> |
|---|
| 130 | <admonGraphics>1</admonGraphics> |
|---|
| 131 | <htmlStylesheet>css/style.css</htmlStylesheet> |
|---|
| 132 | <tocSectionDepth>2</tocSectionDepth> |
|---|
| 133 | |
|---|
| 134 | </configuration> |
|---|
| 135 | </plugin> |
|---|
| 136 | </plugins> |
|---|
| 137 | </build> |
|---|
| 138 | </project> |
|---|