2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-01-19 04:22:08 +00:00

Improved PDF formatting

This commit is contained in:
Emil Dotchevski
2020-05-11 17:46:01 -07:00
parent d56d93ff3c
commit f5f446e5bd
3 changed files with 30 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ import asciidoctor ;
html index.html : leaf.adoc : <asciidoctor-attribute>stylesheet=zajo-dark.css <asciidoctor-attribute>linkcss ;
install html_ : index.html LEAF-1.png LEAF-2.png skin.png zajo-dark.css zajo-light.css : <location>out ;
pdf leaf.pdf : leaf.adoc : <asciidoctor-doctype>book ;
pdf leaf.pdf : leaf.adoc : <asciidoctor-doctype>book <asciidoctor-attribute>pdf-themesdir=doc <asciidoctor-attribute>pdf-theme=leaf ;
install pdf_ : leaf.pdf : <location>out ;
alias boostdoc ;

28
doc/leaf-theme.yml Normal file
View File

@@ -0,0 +1,28 @@
extends: default
base:
font:
color: #404040
literal:
font:
family: Courier
color: #000000
admonition:
icon:
note:
stroke-color: #000000
tip:
stroke-color: #000000
warning:
stroke-color: #FF5100
important:
stroke-color: #FF5100
caution:
stroke-color: #FF5100
conum:
font:
glyphs: circled
color: #000000
link:
text-decoration: underline
text-decoration-width: 0.5
font-color: #000000

View File

@@ -6,8 +6,8 @@
= LEAF
Lightweight Error Augmentation Framework
ifndef::backend-pdf[]
:source-highlighter: coderay
ifndef::backend-pdf[]
:toc: left
:toclevels: 3
:toc-title: pass:[<div style="float:right"><input width="32" height="32" type="image" alt="Skin" src="./skin.png" onclick="this.blur();switch_style();return false;"/></div>]