diff --git a/create.sh b/create.sh new file mode 100755 index 0000000..fe0ac07 --- /dev/null +++ b/create.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +set -e + +RST_FILENAME="slides.rst" +TALK_NAME="deploying-php-ansible-ansistrano" +MODE="dark" + +docker run --rm \ + -v $PWD:/rst2pdf \ + -v $HOME/.local/share/fonts:/usr/share/fonts \ + -w /rst2pdf/${TALK_NAME} \ + opdavies/rst2pdf \ + ${RST_FILENAME} \ + --break-level 1 \ + --extension-module preprocess \ + --fit-background-mode scale \ + --font-path /usr/share/fonts \ + --output slides-${MODE}.pdf \ + --stylesheets opdavies-${MODE},tango diff --git a/deploying-php-ansible-ansistrano/opdavies-dark.style b/deploying-php-ansible-ansistrano/opdavies-dark.style new file mode 100644 index 0000000..bba3801 --- /dev/null +++ b/deploying-php-ansible-ansistrano/opdavies-dark.style @@ -0,0 +1,141 @@ +pageSetup: + firstTemplate: coverPage + height: 18cm + margin-bottom: 0cm + margin-gutter: 0cm + margin-left: 0cm + margin-right: 0cm + margin-top: 0cm + size: null + spacing-footer: 2mm + spacing-header: 2mm + width: 32cm + +pageTemplates: + coverPage: + frames: [] + [12%, 10%, 76%, 75%] + showFooter: false + showHeader: false + background: ../images/bg-dark.png + + titlePage: + alignment: TA_CENTER + frames: [] + [8%, 8%, 85%, 65%] + showFooter: true + showHeader: false + background: ../images/bg-dark.png + + standardPage: + frames: [] + [3%, 3%, 92%, 92%] + showFooter: true + showHeader: false + background: ../images/bg-dark.png + + imagePage: + alignment: TA_CENTER + frames: [] + [12%, 10%, 76%, 80%] + showFooter: true + showHeader: false + background: ../images/bg-dark.png + + outputPage: + frames: [] + [8%, 10%, 82%, 65%] + showFooter: false + showHeader: false + background: ../images/bg-dark.png + +linkColor: #60a5fa + +fontsAlias: + stdMono: Inconsolata-Regular + stdMonoBold: Inconsolata-Regular + stdMonoItalic: Inconsolata-Regular + +styles: + normal: + fontSize: 24 + leading: 32 + textColor: #ffffff + + bodytext: + alignment: TA_LEFT + + heading: + fontSize: 20 + spaceAfter: 16 + textColor: #60a5fa + + heading1: + parent: heading + alignment: TA_LEFT + + title: + fontSize: 300% + parent: heading + + bullet-list: + commands: [] + [LEFTPADDING, [0, 0], [1, -1], 10] + [RIGHTPADDING, [0, 0], [1, -1], 0] + [VALIGN, [0, 0], [-1, -1], TOP] + colWidths: ["20", null] + textColor: #aaaaaa + + bullet-list-item: + spaceBefore: 14 + spaceAfter: 0 + + titleslideinfo: + alignment: TA_CENTER + fontSize: 140% + parent: normal + + footer: + alignment: TA_RIGHT + fontName: stdMono + fontSize: 20 + textColor: #60a5fa + rightIndent: 16 + spaceBefore: 0 + + literal: + backColor: white + fontName: stdMono + + code: + backColor: white + borderWidth: 0 + fontSize: 19 + leading: 22 + parent: literal + spaceBefore: 4 + + blockquote: + parent: normal + fontName: stdItalic + leading: 36 + + attribution: + parent: normal + textColor: #66666 + + centred: + alignment: TA_CENTER + parent: normal + + centredtitle: + alignment: TA_CENTER + fontName: stdBold + fontSize: 48 + leading: 64 + parent: heading + + small: + fontSize: 90% + parent: normal + diff --git a/deploying-php-ansible-ansistrano/main.style b/deploying-php-ansible-ansistrano/opdavies-light.style similarity index 97% rename from deploying-php-ansible-ansistrano/main.style rename to deploying-php-ansible-ansistrano/opdavies-light.style index 6c35205..b1864f8 100644 --- a/deploying-php-ansible-ansistrano/main.style +++ b/deploying-php-ansible-ansistrano/opdavies-light.style @@ -44,7 +44,7 @@ pageTemplates: showFooter: false showHeader: false -linkColor: #24608a +linkColor: #0045aa fontsAlias: stdMono: Inconsolata-Regular @@ -63,7 +63,7 @@ styles: heading: fontSize: 20 spaceAfter: 16 - textColor: #24608a + textColor: #0045aa heading1: parent: heading @@ -94,7 +94,7 @@ styles: alignment: TA_RIGHT fontName: stdMono fontSize: 20 - textColor: #24608a + textColor: #0045aa rightIndent: 16 spaceBefore: 0