|
8 | 8 | <version>1.0</version> |
9 | 9 | <packaging>jar</packaging> |
10 | 10 | <properties> |
11 | | - <doc>en/plugins/similarity-computer-en.adoc</doc> |
| 11 | + <doc>en/plugins/cooccurrences-computer-en.adoc</doc> |
12 | 12 | <medium.publish>false</medium.publish> |
| 13 | + <asciidoctorj.diagram.version>1.5.0</asciidoctorj.diagram.version> |
13 | 14 | </properties> |
14 | 15 | <parent> |
15 | 16 | <groupId>net.clementlevallois</groupId> |
16 | 17 | <artifactId>AsciiiDocMavenJavaSE</artifactId> |
17 | 18 | <version>1.0</version> |
18 | 19 | </parent> |
19 | | - |
20 | 20 | <build> |
| 21 | + <defaultGoal>process-resources</defaultGoal> |
| 22 | + |
21 | 23 | <!-- |
22 | 24 | Plugin attach to different phases of the build process to customize it. |
23 | 25 | (see https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference). |
|
93 | 95 | <version>${asciidoctorj.pdf.version}</version> |
94 | 96 | </dependency> |
95 | 97 | <!-- AsciidoctorJ extensions --> |
| 98 | + <dependency> |
| 99 | + <groupId>org.asciidoctor</groupId> |
| 100 | + <artifactId>asciidoctorj-diagram</artifactId> |
| 101 | + <version>${asciidoctorj.diagram.version}</version> |
| 102 | + </dependency> |
96 | 103 | <dependency> |
97 | 104 | <groupId>net.clementlevallois</groupId> |
98 | 105 | <artifactId>asciidoctorj-extensions</artifactId> |
|
101 | 108 | </dependencies> |
102 | 109 | <!-- Shared configurations across `executions`. Can be overwritten if needed by an executions --> |
103 | 110 | <configuration> |
| 111 | + <requires> |
| 112 | + <require>asciidoctor-diagram</require> |
| 113 | + </requires> |
| 114 | + <attributes> |
| 115 | + <!-- Example below shows how to specify in this pom instead of System's PATH, the location of dot command of Graphviz, required by PlantUML libraries --> |
| 116 | + <!--Windows:--> |
| 117 | + <graphvizdot>C:\Program Files (x86)\Graphviz2.38\bin\dot.exe</graphvizdot> |
| 118 | + <imagesoutdir>${basedir}/src/main/asciidoc/images</imagesoutdir> |
| 119 | + |
| 120 | + <!-- *nix : |
| 121 | + <graphvizdot>/usr/local/bin/dot</graphvizdot> |
| 122 | + --> |
| 123 | + </attributes> |
| 124 | + </configuration> |
| 125 | + |
104 | 126 | <!-- Current configuration uses default layout. |
105 | 127 | I'd recommend keeping everything under `src/main/asciidoc`, docs, images, etc and use GIT or SVN to |
106 | 128 | track versions. |
107 | 129 | --> |
108 | 130 | <!-- |
109 | 131 | <sourceDirectory>C:\Users\levallois\Google Drive\open\gephi tutorial\history-of-gephi\en\temp</sourceDirectory> |
110 | 132 | --> |
111 | | - </configuration> |
112 | | - <executions> |
113 | | - <execution> |
114 | | - <id>generate-slides</id> |
115 | | - <phase>generate-resources</phase> |
116 | | - <goals> |
117 | | - <goal>process-asciidoc</goal> |
118 | | - </goals> |
119 | | - <configuration> |
120 | | - <sourceDocumentName>${doc}</sourceDocumentName> |
121 | | - <outputDirectory>${basedir}/docs/generated-slides</outputDirectory> |
122 | | - <backend>revealjs</backend> |
123 | | - <templateDir>${basedir}/docs/asciidoctor-reveal.js-${asciidoctor-revealjs.version}/templates/slim</templateDir> |
124 | | - <sourceHighlighter>coderay</sourceHighlighter> |
125 | | - <attributes> |
| 133 | + <executions> |
| 134 | + <execution> |
| 135 | + <id>generate-slides</id> |
| 136 | + <phase>generate-resources</phase> |
| 137 | + <goals> |
| 138 | + <goal>process-asciidoc</goal> |
| 139 | + </goals> |
| 140 | + <configuration> |
| 141 | + <sourceDocumentName>${doc}</sourceDocumentName> |
| 142 | + <outputDirectory>${basedir}/docs/generated-slides</outputDirectory> |
| 143 | + <backend>revealjs</backend> |
| 144 | + <templateDir>${basedir}/docs/asciidoctor-reveal.js-${asciidoctor-revealjs.version}/templates/slim</templateDir> |
| 145 | + <sourceHighlighter>coderay</sourceHighlighter> |
| 146 | + <attributes> |
126 | 147 |
|
127 | | - As we are downloading reveal.js in runtime, it sits in a nonstandard folder `reveal.js-${revealjs.version}` |
| 148 | + As we are downloading reveal.js in runtime, it sits in a nonstandard folder `reveal.js-${revealjs.version}` |
128 | 149 |
|
129 | | - <revealjsdir>reveal.js-${revealjs.version}</revealjsdir> |
130 | | - put here the reveal.js specific attributes |
131 | | - see https://github.com/asciidoctor/asciidoctor-reveal.js/#revealjs-options |
132 | | - <sourcedir>${basedir}/src/main/java</sourcedir> |
133 | | - <revealjs_theme>white</revealjs_theme> |
134 | | - <revealjs_transition>linear</revealjs_transition> |
135 | | - <revealjs_maxscale>10.0</revealjs_maxscale> |
136 | | - <project-version>${project.version}</project-version> |
| 150 | + <revealjsdir>reveal.js-${revealjs.version}</revealjsdir> |
| 151 | + put here the reveal.js specific attributes |
| 152 | + see https://github.com/asciidoctor/asciidoctor-reveal.js/#revealjs-options |
| 153 | + <sourcedir>${basedir}/src/main/java</sourcedir> |
| 154 | + <revealjs_theme>white</revealjs_theme> |
| 155 | + <revealjs_transition>linear</revealjs_transition> |
| 156 | + <revealjs_maxscale>10.0</revealjs_maxscale> |
| 157 | + <project-version>${project.version}</project-version> |
137 | 158 |
|
138 | | - </attributes> |
139 | | - <extensions> |
140 | | - <extension> |
141 | | - <className>Controller.SlidesPreProcessor</className> |
142 | | - </extension> |
143 | | - </extensions> |
| 159 | + </attributes> |
| 160 | + <extensions> |
| 161 | + <extension> |
| 162 | + <className>Controller.SlidesPreProcessor</className> |
| 163 | + </extension> |
| 164 | + </extensions> |
144 | 165 |
|
145 | | - </configuration> |
146 | | - </execution> |
147 | | - <execution> |
148 | | - <id>generate-pdf</id> |
149 | | - <phase>generate-resources</phase> |
150 | | - <goals> |
151 | | - <goal>process-asciidoc</goal> |
152 | | - </goals> |
153 | | - <configuration> |
154 | | - <sourceDocumentName>${doc}</sourceDocumentName> |
155 | | - <outputDirectory>${basedir}/docs/generated-pdf</outputDirectory> |
156 | | - <backend>pdf</backend> |
157 | | - <sourceHighlighter>coderay</sourceHighlighter> |
158 | | - <attributes> |
159 | | - <path>${basedir}</path> |
160 | | - <icons>font</icons> |
161 | | - <pagenums/> |
162 | | - <toc/> |
163 | | - </attributes> |
164 | | - <extensions> |
165 | | - <extension> |
166 | | - <className>Controller.PdfPreProcessor</className> |
167 | | - </extension> |
168 | | - </extensions> |
| 166 | + </configuration> |
| 167 | + </execution> |
| 168 | + <execution> |
| 169 | + <id>generate-pdf</id> |
| 170 | + <phase>generate-resources</phase> |
| 171 | + <goals> |
| 172 | + <goal>process-asciidoc</goal> |
| 173 | + </goals> |
| 174 | + <configuration> |
| 175 | + <sourceDocumentName>${doc}</sourceDocumentName> |
| 176 | + <outputDirectory>${basedir}/docs/generated-pdf</outputDirectory> |
| 177 | + <backend>pdf</backend> |
| 178 | + <sourceHighlighter>coderay</sourceHighlighter> |
| 179 | + <attributes> |
| 180 | + <path>${basedir}</path> |
| 181 | + <icons>font</icons> |
| 182 | + <pagenums/> |
| 183 | + <toc/> |
| 184 | + </attributes> |
| 185 | + <extensions> |
| 186 | + <extension> |
| 187 | + <className>Controller.PdfPreProcessor</className> |
| 188 | + </extension> |
| 189 | + </extensions> |
169 | 190 |
|
170 | | - </configuration> |
171 | | - </execution> |
172 | | - <execution> |
173 | | - <id>generate-html</id> |
174 | | - <phase>generate-resources</phase> |
175 | | - <goals> |
176 | | - <goal>process-asciidoc</goal> |
177 | | - </goals> |
178 | | - <configuration> |
179 | | - <sourceDocumentName>${doc}</sourceDocumentName> |
180 | | - <outputDirectory>${basedir}/docs/generated-html</outputDirectory> |
181 | | - <backend>html</backend> |
182 | | - <sourceHighlighter>coderay</sourceHighlighter> |
183 | | - <extensions> |
184 | | - <extension> |
185 | | - <className>Controller.HtmlPreProcessor</className> |
186 | | - </extension> |
187 | | - </extensions> |
188 | | - <attributes> |
189 | | - <icons>font</icons> |
190 | | - <pagenums/> |
191 | | - <toc/> |
192 | | - </attributes> |
193 | | - </configuration> |
194 | | - </execution> |
195 | | - </executions> |
| 191 | + </configuration> |
| 192 | + </execution> |
| 193 | + <execution> |
| 194 | + <id>generate-html</id> |
| 195 | + <phase>generate-resources</phase> |
| 196 | + <goals> |
| 197 | + <goal>process-asciidoc</goal> |
| 198 | + </goals> |
| 199 | + <configuration> |
| 200 | + <sourceDocumentName>${doc}</sourceDocumentName> |
| 201 | + <outputDirectory>${basedir}/docs/generated-html</outputDirectory> |
| 202 | + <backend>html</backend> |
| 203 | + <sourceHighlighter>coderay</sourceHighlighter> |
| 204 | + <extensions> |
| 205 | + <extension> |
| 206 | + <className>Controller.HtmlPreProcessor</className> |
| 207 | + </extension> |
| 208 | + </extensions> |
| 209 | + <attributes> |
| 210 | + <icons>font</icons> |
| 211 | + <pagenums/> |
| 212 | + <toc/> |
| 213 | + </attributes> |
| 214 | + </configuration> |
| 215 | + </execution> |
| 216 | + </executions> |
196 | 217 | </plugin> |
197 | 218 | <plugin> |
198 | 219 | <groupId>org.apache.maven.plugins</groupId> |
|
0 commit comments