Skip to content

Commit 3327ff7

Browse files
committed
Axway theme for generating PDF documentation
1 parent ed464a0 commit 3327ff7

File tree

5 files changed

+53
-4
lines changed

5 files changed

+53
-4
lines changed

doc/manual/_faq.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ There is an _Asciidoctor.js_ extension for Chrome to view Asciidoc files in a be
7979
=== How do I get the documentation in PDF format?
8080

8181
link:https://asciidoctor.org/[Asciidoctor] provides some tools to render Asciidoc sources into various output formats.
82+
link:https://github.com/asciidoctor/asciidoctor-pdf[Asciidoctor PDF] can be used to convert the documentation into a well layouted PDF document.
83+
Follow the instructions on the the home page to install the tool.
8284

83-
Just download the binary distribution from the link:https://github.com/asciidoctor/asciidoctorj[AsciidoctorJ] site and follow the installation instructions.
85+
To generate the PDF execute the following command in the root project folder:
8486

85-
To generate the PDF execute the following command:
86-
87-
$ asciidoctorj -b pdf -r asciidoctor-pdf doc/manual/user-guide.adoc -o user-guide.pdf
87+
$ asciidoctor-pdf -a pdf-themesdir=doc/pdf-themes -a pdf-theme=axway doc/manual/user-guide.adoc -d book -o user-guide.pdf

doc/pdf-themes/axway-theme.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
extends: default
2+
3+
page:
4+
size: A4
5+
layout: portrait
6+
margin: [2.5cm, 1.5cm, 2.5cm, 1.5cm]
7+
8+
outline-list:
9+
text-align: left
10+
11+
title_page:
12+
align: center
13+
title:
14+
top: 0%
15+
logo:
16+
image: image:images/axway-logo-big.jpeg[pdfwidth=30%,align=center]
17+
top: 20%
18+
background-image: image:images/background.jpeg[]
19+
20+
running_content:
21+
start_at: toc
22+
23+
footer:
24+
recto:
25+
right:
26+
content: '{page-number}'
27+
left:
28+
content: '{document-title}'
29+
verso:
30+
left:
31+
content: $footer_recto_left_content
32+
right:
33+
content: $footer_recto_right_content
34+
35+
header:
36+
height: 2.0cm
37+
vertical_align: bottom
38+
border_color: dddddd
39+
border_width: 0.25
40+
recto:
41+
left:
42+
content: "{chapter-title}"
43+
right:
44+
content: image:images/axway-logo.png[width=50%]
45+
verso:
46+
left:
47+
content: $header_recto_left_content
48+
right:
49+
content: $header_recto_right_content
110 KB
Loading
12.8 KB
Loading
244 KB
Loading

0 commit comments

Comments
 (0)