mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-05-23 21:28:21 +00:00
Merge pull request #2360 from paraglade/PDF_scripts
updates to PDF converter scripts
This commit is contained in:
@@ -8,14 +8,15 @@ RUN apt-get autoclean
|
||||
|
||||
RUN pip3 install WeasyPrint
|
||||
|
||||
COPY fonts/ /usr/share/fonts/truetype/
|
||||
|
||||
WORKDIR /doc_tools
|
||||
|
||||
COPY fonts/ fonts/
|
||||
COPY css css/
|
||||
COPY images images/
|
||||
COPY templates templates/
|
||||
COPY headers headers/
|
||||
COPY scripts scripts/
|
||||
|
||||
RUN ls -la fonts
|
||||
|
||||
ENTRYPOINT ["scripts/entrypoint.sh"]
|
||||
|
||||
@@ -2,11 +2,18 @@
|
||||
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: PoppinsExtraLight; src: url(./fonts/Poppins/Poppins-ExtraLight.ttf);}
|
||||
/*
|
||||
#@font-face {font-family: Poppins;src: url(fonts/Poppins/Poppins-Regular.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 */
|
||||
|
||||
font-family: 'Poppins', sans-serif;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
|
||||
|
||||
@page :first {
|
||||
size: portrait;
|
||||
@@ -14,7 +21,7 @@ Theme Name: Linux Academy Study Guide Template 08-14-2019
|
||||
border-left-style: none;
|
||||
background:none;
|
||||
background: url("../images/rancher-logo-stacked-color.png") no-repeat left;
|
||||
background-size: 10cm;
|
||||
background-size: 50cm;
|
||||
background-position: top 1cm left;
|
||||
margin-top:1cm;
|
||||
margin-bottom:1cm;
|
||||
@@ -23,7 +30,7 @@ Theme Name: Linux Academy Study Guide Template 08-14-2019
|
||||
@top-left {
|
||||
background: #000;
|
||||
color:#fff;
|
||||
content: "v2.3.4";
|
||||
content: "v2.3.5";
|
||||
height: 1cm;
|
||||
text-align: center;
|
||||
width: 5cm;
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="$lang$" xml:lang="$lang$"$if(dir)$ dir="$dir$"$endif$>
|
||||
<head>
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css?family=Poppins:200,400|Roboto&display=swap');
|
||||
</style>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="generator" content="pandoc" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
|
||||
|
||||
Reference in New Issue
Block a user