|
50 | 50 | </dependency>
|
51 | 51 | </dependencies>
|
52 | 52 | <configuration>
|
53 |
| - <sourceDirectory>src/docs/asciidoc</sourceDirectory> |
54 |
| - <attributes> |
55 |
| - <sourcedir>${project.build.sourceDirectory}</sourcedir> |
56 |
| - </attributes> |
| 53 | + <backend>epub3</backend> |
| 54 | + <sourceDocumentName>spine.adoc</sourceDocumentName> |
| 55 | +<!-- <sourceDirectory>src/docs/asciidoc</sourceDirectory>--> |
| 56 | +<!-- <attributes>--> |
| 57 | +<!-- <sourcedir>${project.build.sourceDirectory}</sourcedir>--> |
| 58 | +<!-- </attributes>--> |
57 | 59 | <resources>
|
58 | 60 | <resource>
|
59 | 61 | <directory>.</directory>
|
|
71 | 73 | <goals>
|
72 | 74 | <goal>process-asciidoc</goal>
|
73 | 75 | </goals>
|
74 |
| - <configuration> |
75 |
| - <backend>epub3</backend> |
76 |
| - <sourceDocumentName>spine.adoc</sourceDocumentName> |
77 |
| - </configuration> |
78 | 76 | </execution>
|
79 |
| - |
80 |
| - |
81 |
| - <!-- for converting asciidoc to a mobi format, asciidoc performs 2 steps. --> |
82 |
| - <!-- first, it generates a xxxx-kf8.epub file, which is then, in the second step, processed in order |
83 |
| - to create xxxx.mobi file. --> |
84 |
| - |
85 |
| - <!-- general information: epub and mobi generation differs only in the attribute 'ebook-format', |
86 |
| - which is set to 'epub3' for epub and to kf8 in order to generate a special annotated epub3 |
87 |
| - document which is suitable for kindlegen --> |
88 |
| - |
89 |
| - <!-- per default, this attribute is set to 'epub3'. --> |
90 |
| - <!-- you can set this attribute either in the corresponding .adoc file, or provide it like showed |
91 |
| - in this execution block below --> |
| 77 | + <!-- For testing and troubleshooting you can see the |
| 78 | + contained resources in an extracted structure --> |
92 | 79 | <execution>
|
93 |
| - <id>generate-spine-kf8</id> |
| 80 | + <id>generate-extracted-epub</id> |
94 | 81 | <phase>generate-resources</phase>
|
95 | 82 | <goals>
|
96 | 83 | <goal>process-asciidoc</goal>
|
97 | 84 | </goals>
|
98 | 85 | <configuration>
|
99 |
| - <backend>epub3</backend> |
100 |
| - <sourceDocumentName>spine.adoc</sourceDocumentName> |
101 | 86 | <attributes>
|
102 |
| - <source-highlighter>rouge</source-highlighter> |
103 |
| - <ebook-format>kf8</ebook-format> |
| 87 | + <ebook-extract/> |
104 | 88 | </attributes>
|
105 | 89 | </configuration>
|
106 | 90 | </execution>
|
107 |
| - |
108 |
| - |
109 |
| - <!-- attention: if there are problems calling kindlegen (see discussion here https://github.com/asciidoctor/asciidoctor-maven-examples/pull/68) --> |
110 |
| - <!-- then you can call kindlegen directly via maven like showed below --> |
111 |
| - <!--- |
112 |
| -
|
113 |
| - </executions> |
114 |
| - </plugin> |
115 |
| - <plugin> |
116 |
| - <groupId>org.codehaus.mojo</groupId> |
117 |
| - <artifactId>exec-maven-plugin</artifactId> |
118 |
| - <version>1.6.0</version> |
119 |
| - <executions> |
120 |
| - <execution> |
121 |
| - <id>generate-mobi-file</id> |
122 |
| - <phase>generate-resources</phase> |
123 |
| - <goals> |
124 |
| - <goal>exec</goal> |
125 |
| - </goals> |
126 |
| - <configuration> |
127 |
| - <workingDirectory>${project.build.directory}/generated-docs/</workingDirectory> |
128 |
| - <executable>${path.to.kindlegen}</executable> |
129 |
| - <arguments> |
130 |
| - <argument>spine.epub</argument> |
131 |
| - </arguments> |
132 |
| - </configuration> |
133 |
| - </execution> |
134 |
| - --> |
135 | 91 | </executions>
|
136 | 92 | </plugin>
|
137 | 93 | </plugins>
|
|
0 commit comments