Skip to content

Commit c5f029b

Browse files
ante003pivovarit
authored andcommitted
- added custom theme for asciidoc book (eugenp#2327)
- changed AsciiDoc document - added new things in pom
1 parent e8df7f8 commit c5f029b

3 files changed

Lines changed: 46 additions & 2 deletions

File tree

‎asciidoctor/pom.xml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@
3535
<configuration>
3636
<sourceDirectory>src/docs/asciidoc</sourceDirectory>
3737
<outputDirectory>target/docs/asciidoc</outputDirectory>
38+
<attributes>
39+
<pdf-stylesdir>${project.basedir}/src/themes</pdf-stylesdir>
40+
<pdf-style>custom</pdf-style>
41+
</attributes>
3842
<backend>pdf</backend>
43+
<doctype>book</doctype>
3944
</configuration>
4045
</plugin>
4146
</plugins>
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1-
== Introduction Section
1+
:icons: font
22

3-
Hi. I'm a simple test to see if this Maven build is working. If you see me in a nice PDF, then it means everything is [red]#working#.
3+
4+
= Generating book with AsciiDoctorj
5+
Baeldung
6+
7+
[abstract]
8+
This is the actual content.
9+
10+
== First Section
11+
12+
This is first section of the book where you can include some nice icons like icon:comment[].
13+
You can also create http://www.baeldung.com[links]
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
title_page:
2+
align: left
3+
4+
page:
5+
layout: portrait
6+
margin: [0.75in, 1in, 0.75in, 1in]
7+
size: A4
8+
base:
9+
font_color: #333333
10+
line_height_length: 17
11+
line_height: $base_line_height_length / $base_font_size
12+
link:
13+
font_color: #009900
14+
15+
header:
16+
height: 0.5in
17+
line_height: 1
18+
recto_content:
19+
center: '{document-title}'
20+
verso_content:
21+
center: '{document-title}'
22+
23+
footer:
24+
height: 0.5in
25+
line_height: 1
26+
recto_content:
27+
right: '{chapter-title} | *{page-number}*'
28+
verso_content:
29+
left: '*{page-number}* | {chapter-title}'

0 commit comments

Comments
 (0)