Skip to content

Commit 3bc4eb9

Browse files
committed
test themes
1 parent 9b00787 commit 3bc4eb9

File tree

2 files changed

+193
-1
lines changed

2 files changed

+193
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ OPTIONS := --trace \
4242
-a revremark=${REVMARK} \
4343
-a revdate=${DATE} \
4444
-a pdf-fontsdir=docs-resources/fonts \
45-
-a pdf-theme=docs-resources/themes/riscv-pdf.yml \
45+
-a pdf-theme=riscv-pdf-test.yml \
4646
$(XTRA_ADOC_OPTS) \
4747
-D build \
4848
--failure-level=ERROR

riscv-pdf-test.yml

+192
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
extends: default
2+
3+
# Font configuration
4+
font:
5+
catalog:
6+
merge: true
7+
sans-serif: 'GEM_FONTS_DIR/mplus1p-regular-fallback.ttf'
8+
body:
9+
normal: 'Petrona-Light.ttf'
10+
bold: 'Petrona-Medium.ttf'
11+
italic: 'Petrona-LightItalic.ttf'
12+
bold_italic: 'Petrona-MediumItalic.ttf'
13+
header_thin: 'Petrona-Thin.ttf'
14+
headings:
15+
normal: 'Montserrat-Regular.ttf'
16+
italic: 'Montserrat-Italic.ttf'
17+
bold: 'Montserrat-Medium.ttf'
18+
light: 'Montserrat-Light.ttf'
19+
code:
20+
normal: 'JetBrainsMono-Regular.ttf'
21+
bold: 'JetBrainsMono-Bold.ttf'
22+
italic: 'JetBrainsMono-Italic.ttf'
23+
bold_italic: 'JetBrainsMono-BoldItalic.ttf'
24+
M+ 1mn:
25+
normal: 'mplus-1mn-regular.ttf'
26+
bold: 'mplus-1mn-bold.ttf'
27+
italic: 'mplus-1mn-light.ttf'
28+
bold_italic: 'mplus-1mn-medium.ttf'
29+
M+ 1p Fallback:
30+
normal: 'mplus-1p-regular-fallback.ttf'
31+
bold: 'mplus-1p-regular-fallback.ttf'
32+
italic: 'mplus-1p-regular-fallback.ttf'
33+
bold_italic: 'mplus-1p-regular-fallback.ttf'
34+
Droid Fallback:
35+
normal: 'droid-sans-fallback.ttf'
36+
italic: 'droid-sans-fallback.ttf'
37+
bold: 'droid-sans-fallback.ttf'
38+
bold_italic: 'droid-sans-fallback.ttf'
39+
fallbacks:
40+
- 'M+ 1p Fallback'
41+
- 'Droid Fallback'
42+
svg:
43+
fallback-font-family: 'M+ 1mn'
44+
45+
# Page settings
46+
page:
47+
background_color: 'ffffff'
48+
layout: 'portrait'
49+
margin: ['0.5in', '0.67in', '0.67in', '0.67in']
50+
margin_inner: '0.75in'
51+
margin_outer: '0.59in'
52+
size: 'A4'
53+
54+
# Base settings
55+
base:
56+
font-family: 'body'
57+
font_size: 11.5
58+
line_height_length: 12
59+
font_style: 'normal'
60+
font_size_large: 'round($base_font_size * 1.25)'
61+
font_size_small: 'round($base_font_size * 0.85)'
62+
font_size_min: '$base_font_size * 0.75'
63+
border_radius: 3
64+
border_width: 0.25
65+
border_color: 'EEEEEE'
66+
67+
# Vertical and horizontal rhythm and spacing
68+
vertical_rhythm: '$base_line_height_length'
69+
horizontal_rhythm: '$base_line_height_length'
70+
vertical_spacing: '$vertical_rhythm'
71+
72+
# Link settings
73+
link:
74+
font_color: '428bca'
75+
76+
# Codespan settings
77+
codespan:
78+
font-color: 0
79+
font_family: 'JetBrains Mono'
80+
81+
# Blockquote settings
82+
blockquote:
83+
font_family: 'body'
84+
font_style: 'italic'
85+
86+
# Figure settings
87+
figure:
88+
align: 'left'
89+
caption:
90+
align: 'left'
91+
indent: '2em'
92+
93+
# Prose settings
94+
prose:
95+
margin_top: '$block_margin_top'
96+
margin_bottom: '$block_margin_bottom'
97+
98+
# Thematic break settings
99+
thematic_break:
100+
border_color: '$base_border_color'
101+
border_style: 'solid'
102+
border_width: '$base_border_width'
103+
margin_top: '$vertical_rhythm * 0.5'
104+
margin_bottom: '$vertical_rhythm * 1.5'
105+
106+
# Description list settings
107+
description_list:
108+
term_font_style: 'bold'
109+
term_spacing: '$vertical_rhythm / 4'
110+
description_indent: '$horizontal_rhythm * 1.25'
111+
112+
# List settings
113+
list:
114+
indent: '$horizontal_rhythm * 1.5'
115+
item_spacing: '$vertical_rhythm / 2'
116+
bullet:
117+
font_size: 'round($base_font_size * 1.5)'
118+
content: ''
119+
120+
# Table settings
121+
table:
122+
background_color: '$page_background_color'
123+
font-size: 9
124+
head_font_style: 'bold'
125+
body_stripe_background_color: 'd7d7d7'
126+
foot_background_color: 'f0f0f0'
127+
border_color: 'dddddd'
128+
border_width: '$base_border_width'
129+
cell_padding: 3
130+
caption:
131+
end: 'top'
132+
align: 'left'
133+
indent: '2em'
134+
text-align: 'left'
135+
max-width: 'none'
136+
137+
# Table of Contents settings
138+
toc:
139+
indent: '$horizontal_rhythm'
140+
line_height: 1.4
141+
dot_leader:
142+
content: '.' # Set the dot leader character to a period
143+
font_color: 'a9a9a9'
144+
font_style: 'bold'
145+
h2_font_style: 'bold'
146+
147+
# Header settings
148+
header:
149+
font_size: '$base_font_size_small'
150+
border_color: 'dddddd'
151+
border_width: 0.35
152+
height: '$base_line_height_length * 2.6'
153+
line_height: 1
154+
padding: ['$base_line_height_length / 1', 1, 0.5, 1]
155+
vertical_align: 'margin_inside'
156+
recto:
157+
right:
158+
content: '{section-or-chapter-title} | Page {page-number}'
159+
verso:
160+
left:
161+
content: '{section-or-chapter-title} | Page {page-number}'
162+
163+
# Footer settings
164+
footer:
165+
font_size: '$base_font_size_small'
166+
border_color: 'dddddd'
167+
border_width: 0.35
168+
height: '$base_line_height_length * 2.6'
169+
line_height: 1
170+
padding: ['$base_line_height_length / 1', 1, 0.5, 1]
171+
vertical_align: 'top'
172+
recto:
173+
right:
174+
content: '{document-title} | © RISC-V International'
175+
verso:
176+
left:
177+
content: '$footer_recto_right_content'
178+
179+
# List of figures settings
180+
lof:
181+
label_width: '3em' # Adjust the width for figure labels
182+
align: left
183+
caption:
184+
indent: '4em' # Ensure captions align consistently
185+
186+
# List of tables settings
187+
lot:
188+
label_width: '3em' # Adjust the width for table labels
189+
align: left
190+
caption:
191+
indent: '4em' # Ensure captions align consistently
192+

0 commit comments

Comments
 (0)