Render PDF copies of tldr pages (#1964)

This commit is contained in:
Ayush Dwivedi
2018-03-12 00:23:48 +05:30
committed by Agniva De Sarker
parent 930cfe7f89
commit 490da5763d
6 changed files with 283 additions and 0 deletions

34
scripts/pdf/basic.css Normal file
View File

@@ -0,0 +1,34 @@
@font-face {
font-family: 'PT_Serif-Web-Regular';
src: url('PT_Serif-Web-Regular.ttf') format('truetype');
}
p {
margin-left: 2.5em;
}
code {
color: darkslategrey;
}
h1, h4, h2, ul {
font-family: "PT_Serif-Web-Regular";
}
h1.titlemain {
text-align: center;
margin-top: 6em;
font-size: 350%;
}
h4.titlesub {
text-align: center;
font-size: 120%;
color: darkslategrey;
}
h2.titledir {
text-align: center;
margin-top: 8.2em;
font-size: 300%;
}