100-exercises-to-learn-rust/book/book.toml

130 lines
3.8 KiB
TOML
Raw Permalink Normal View History

2024-05-12 22:21:03 +02:00
[book]
authors = ["Luca Palmieri"]
2024-05-12 22:21:03 +02:00
language = "en"
multilingual = false
src = "src"
title = "100 Exercises To Learn Rust"
2024-05-16 16:46:45 +02:00
2024-08-13 15:53:43 +02:00
[preprocessor.exercise-linker]
exercise_root_url = "https://github.com/mainmatter/100-exercises-to-learn-rust/tree/main/exercises"
[preprocessor.link-shortener]
base_url = "https://ruex.io"
renderers = ["pandoc"]
mapping = "link2alias.json"
verify = false
after = ["exercise-linker"]
[output.html]
git-repository-url = "https://github.com/mainmatter/100-exercises-to-learn-rust"
[output.pandoc]
optional = true
hosted-html = "https://rust-exercises.com/100-exercises/"
[output.pandoc.code]
show-hidden-lines = true
[output.pandoc.profile.pdf] # options to pass to Pandoc (see https://pandoc.org/MANUAL.html)
output-file = "100-exercises-to-learn-rust.pdf"
to = "latex"
2024-08-22 15:38:18 +02:00
highlight-style = "./custom.theme"
# We use `lualatext` because, right now, it's the only engine
# that supports fallback fonts, which we need for emojis.
pdf-engine = "lualatex"
2024-08-13 15:53:43 +02:00
metadata-file = "metadata.yml"
[output.pandoc.profile.pdf.variables]
2024-08-20 15:48:55 +02:00
mainfont = "CoreSansA45.ttf"
mainfontoptions = [
"BoldFont=CoreSansA65.ttf",
"ItalicFont=CoreSansA45It.ttf",
2024-08-20 16:54:53 +02:00
"BoldItalicFont=CoreSansA65It.ttf",
2024-08-20 15:48:55 +02:00
]
sansfont = "CoreSansA45.ttf"
sansfontoptions = [
"BoldFont=CoreSansA65.ttf",
"ItalicFont=CoreSansA45It.ttf",
2024-08-20 16:54:53 +02:00
"BoldItalicFont=CoreSansA65It.ttf",
2024-08-20 15:48:55 +02:00
]
# You can get these fonts here: https://fonts.google.com/selection?query=noto+color+
monofont = "Noto Sans Mono"
2024-11-12 11:41:00 +01:00
mainfontfallback = ["Open Sans:style=Regular"]
sansfontfallback = ["Open Sans:style=Regular"]
monofontfallback = [
"Noto Color Emoji:mode=harf",
]
2024-08-20 16:54:53 +02:00
linkcolor = "Links"
urlcolor = "Links"
urlstyle = "rm"
documentclass = "book"
2024-08-27 09:13:38 +02:00
fontsize = "10pt"
geometry = "papersize={8in,10in},top=2cm,bottom=2cm,left=2.4cm,right=2.4cm"
header-includes = [
2024-08-20 16:54:53 +02:00
"\\definecolor{Links}{HTML}{6200EE}",
# Reduce font size of code blocks
"\\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\\\\{\\},fontsize=\\small}",
]
2024-08-06 17:09:04 +02:00
[output.pandoc.profile.paperback]
output-file = "100-exercises-to-learn-rust.pdf"
to = "latex"
highlight-style = "monochrome"
2024-08-13 15:53:43 +02:00
metadata-file = "metadata.yml"
2024-08-06 17:09:04 +02:00
# We use `lualatext` because, right now, it's the only engine
# that supports fallback fonts, which we need for emojis.
pdf-engine = "lualatex"
[output.pandoc.profile.paperback.variables]
2024-08-20 15:48:55 +02:00
mainfont = "CoreSansA45.ttf"
mainfontoptions = [
"BoldFont=CoreSansA65.ttf",
"ItalicFont=CoreSansA45It.ttf",
2024-08-20 16:54:53 +02:00
"BoldItalicFont=CoreSansA65It.ttf",
2024-08-20 15:48:55 +02:00
]
sansfont = "CoreSansA45.ttf"
sansfontoptions = [
"BoldFont=CoreSansA65.ttf",
"ItalicFont=CoreSansA45It.ttf",
2024-08-20 16:54:53 +02:00
"BoldItalicFont=CoreSansA65It.ttf",
2024-08-20 15:48:55 +02:00
]
2024-08-06 17:09:04 +02:00
# You can get these fonts here: https://fonts.google.com/selection?query=noto+color+
monofont = "Noto Sans Mono"
2024-11-12 11:41:00 +01:00
mainfontfallback = ["Open Sans:style=Regular"]
sansfontfallback = ["Open Sans:style=Regular"]
2024-08-06 17:09:04 +02:00
monofontfallback = [
"Noto Color Emoji:mode=harf",
]
2024-08-20 18:11:31 +02:00
linkcolor = "Links"
urlcolor = "Links"
2024-08-06 17:09:04 +02:00
urlstyle = "rm"
documentclass = "book"
2024-08-27 09:13:38 +02:00
fontsize = "10pt"
geometry = "papersize={8in,10in},top=2cm,bottom=2cm,left=2.8cm,right=2.5cm"
2024-08-06 17:09:04 +02:00
header-includes = [
2024-08-20 18:11:31 +02:00
"\\definecolor{Links}{HTML}{6200EE}",
2024-08-06 17:09:04 +02:00
# Reduce font size of code blocks
"\\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\\\\{\\},fontsize=\\small}",
]
links-as-notes = true
2024-08-13 15:53:43 +02:00
# We go through HTML, rather than directly to ePUB, since routing
# Pandoc's HTML through Calibre's ePUB converter gives us better results.
[output.pandoc.profile.html]
output-file = "100-exercises-to-learn-rust.html"
to = "html"
highlight-style = "monochrome"
embed-resources = true
standalone = true
metadata-file = "metadata.yml"
2024-08-06 17:09:04 +02:00
2024-08-13 15:53:43 +02:00
[output.pandoc.profile.html.variables]
# You can get these fonts here: https://fonts.google.com/selection?query=noto+color+
monofont = "Noto Sans Mono"
2024-11-12 11:41:00 +01:00
mainfontfallback = ["Open Sans:style=Regular"]
sansfontfallback = ["Open Sans:style=Regular"]
2024-08-13 15:53:43 +02:00
monofontfallback = [
"Noto Color Emoji:mode=harf",
]
urlstyle = "rm"