@@ -5,6 +5,19 @@ multilingual = false
5
5
src = " src"
6
6
title = " 100 Exercises To Learn Rust"
7
7
8
+ [preprocessor .exercise-linker ]
9
+ exercise_root_url = " https://github.com/mainmatter/100-exercises-to-learn-rust/tree/main/exercises"
10
+
11
+ [preprocessor .link-shortener ]
12
+ base_url = " https://ruex.io"
13
+ renderers = [" pandoc" ]
14
+ mapping = " link2alias.json"
15
+ verify = false
16
+ after = [" exercise-linker" ]
17
+
18
+ [output .html ]
19
+ git-repository-url = " https://github.com/mainmatter/100-exercises-to-learn-rust"
20
+
8
21
[output .pandoc ]
9
22
optional = true
10
23
hosted-html = " https://rust-exercises.com/100-exercises/"
@@ -16,9 +29,9 @@ highlight-style = "tango"
16
29
# We use `lualatext` because, right now, it's the only engine
17
30
# that supports fallback fonts, which we need for emojis.
18
31
pdf-engine = " lualatex"
32
+ metadata-file = " metadata.yml"
19
33
20
34
[output .pandoc .profile .pdf .variables ]
21
- subtitle = " A hands-on course by Mainmatter"
22
35
# You can get these fonts here: https://fonts.google.com/selection?query=noto+color+
23
36
mainfont = " Noto Serif"
24
37
sansfont = " Noto Sans"
@@ -43,12 +56,12 @@ header-includes = [
43
56
output-file = " 100-exercises-to-learn-rust.pdf"
44
57
to = " latex"
45
58
highlight-style = " monochrome"
59
+ metadata-file = " metadata.yml"
46
60
# We use `lualatext` because, right now, it's the only engine
47
61
# that supports fallback fonts, which we need for emojis.
48
62
pdf-engine = " lualatex"
49
63
50
64
[output .pandoc .profile .paperback .variables ]
51
- subtitle = " A hands-on course by Mainmatter"
52
65
# You can get these fonts here: https://fonts.google.com/selection?query=noto+color+
53
66
mainfont = " Noto Serif"
54
67
sansfont = " Noto Sans"
@@ -68,15 +81,26 @@ header-includes = [
68
81
]
69
82
links-as-notes = true
70
83
71
- [output .html ]
72
- git-repository-url = " https://github.com/mainmatter/100-exercises-to-learn-rust"
73
-
74
- [preprocessor .exercise-linker ]
75
- exercise_root_url = " https://github.com/mainmatter/100-exercises-to-learn-rust/tree/main/exercises"
84
+ # We go through HTML, rather than directly to ePUB, since routing
85
+ # Pandoc's HTML through Calibre's ePUB converter gives us better results.
86
+ [output .pandoc .profile .html ]
87
+ output-file = " 100-exercises-to-learn-rust.html"
88
+ to = " html"
89
+ highlight-style = " monochrome"
90
+ embed-resources = true
91
+ standalone = true
92
+ metadata-file = " metadata.yml"
76
93
77
- [preprocessor .link-shortener ]
78
- base_url = " https://ruex.io"
79
- renderers = [" pandoc" ]
80
- mapping = " link2alias.json"
81
- verify = false
82
- after = [" exercise-linker" ]
94
+ [output .pandoc .profile .html .variables ]
95
+ # You can get these fonts here: https://fonts.google.com/selection?query=noto+color+
96
+ mainfont = " Noto Serif"
97
+ sansfont = " Noto Sans"
98
+ monofont = " Noto Sans Mono"
99
+ mainfontfallback = [" Noto Color Emoji:mode=harf" ]
100
+ sansfontfallback = [" Noto Color Emoji:mode=harf" ]
101
+ monofontfallback = [
102
+ " Noto Color Emoji:mode=harf" ,
103
+ ]
104
+ linkcolor = " blue"
105
+ urlcolor = " blue"
106
+ urlstyle = " rm"
0 commit comments