Merge pull request #2360 from paraglade/PDF_scripts

updates to PDF converter scripts
This commit is contained in:
Catherine Luse
2020-03-17 14:03:37 -06:00
committed by GitHub
3 changed files with 18 additions and 7 deletions
+3 -2
View File
@@ -8,14 +8,15 @@ RUN apt-get autoclean
RUN pip3 install WeasyPrint RUN pip3 install WeasyPrint
COPY fonts/ /usr/share/fonts/truetype/
WORKDIR /doc_tools WORKDIR /doc_tools
COPY fonts/ fonts/
COPY css css/ COPY css css/
COPY images images/ COPY images images/
COPY templates templates/ COPY templates templates/
COPY headers headers/ COPY headers headers/
COPY scripts scripts/ COPY scripts scripts/
RUN ls -la fonts
ENTRYPOINT ["scripts/entrypoint.sh"] ENTRYPOINT ["scripts/entrypoint.sh"]
+12 -5
View File
@@ -2,11 +2,18 @@
Theme Name: Linux Academy Study Guide Template 08-14-2019 Theme Name: Linux Academy Study Guide Template 08-14-2019
*/ */
@font-face {font-family: Poppins;src: url(./fonts/Poppins/Poppins-Regular.ttf);} /*
@font-face {font-family: Roboto;src: url(./fonts/Roboto/Roboto-Regular.ttf);} #@font-face {font-family: Poppins;src: url(fonts/Poppins/Poppins-Regular.ttf);}
@font-face {font-family: PoppinsExtraLight; src: url(./fonts/Poppins/Poppins-ExtraLight.ttf);} @font-face {font-family: Poppins;src: url('https://fonts.googleapis.com/css?family=Poppins&display=swap');}
@font-face {font-family: Roboto;src: url(fonts/truetype/Roboto/Roboto-Regular.ttf);}
@font-face {font-family: PoppinsExtraLight; src: url(fonts/truetype/Poppins/Poppins-ExtraLight.ttf);}
*/
/* This lighter one is only used as H1, and in the table of contents */ /* This lighter one is only used as H1, and in the table of contents */
font-family: 'Poppins', sans-serif;
font-family: 'Roboto', sans-serif;
@page :first { @page :first {
size: portrait; size: portrait;
@@ -14,7 +21,7 @@ Theme Name: Linux Academy Study Guide Template 08-14-2019
border-left-style: none; border-left-style: none;
background:none; background:none;
background: url("../images/rancher-logo-stacked-color.png") no-repeat left; background: url("../images/rancher-logo-stacked-color.png") no-repeat left;
background-size: 10cm; background-size: 50cm;
background-position: top 1cm left; background-position: top 1cm left;
margin-top:1cm; margin-top:1cm;
margin-bottom:1cm; margin-bottom:1cm;
@@ -23,7 +30,7 @@ Theme Name: Linux Academy Study Guide Template 08-14-2019
@top-left { @top-left {
background: #000; background: #000;
color:#fff; color:#fff;
content: "v2.3.4"; content: "v2.3.5";
height: 1cm; height: 1cm;
text-align: center; text-align: center;
width: 5cm; width: 5cm;
@@ -1,6 +1,9 @@
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="$lang$" xml:lang="$lang$"$if(dir)$ dir="$dir$"$endif$> <html xmlns="http://www.w3.org/1999/xhtml" lang="$lang$" xml:lang="$lang$"$if(dir)$ dir="$dir$"$endif$>
<head> <head>
<style>
@import url('https://fonts.googleapis.com/css?family=Poppins:200,400|Roboto&display=swap');
</style>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="generator" content="pandoc" /> <meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />