docs: add "Things about PHP" slides
This commit is contained in:
parent
260d2d6c58
commit
3f3260764e
68 changed files with 969 additions and 0 deletions
12
things-to-know-php/code/building.txt
Normal file
12
things-to-know-php/code/building.txt
Normal file
|
@ -0,0 +1,12 @@
|
|||
rst2pdf slides.rst
|
||||
|
||||
|
||||
rst2pdf slides.rst --break-level 1 --stylesheets main
|
||||
|
||||
|
||||
rst2pdf slides.rst \
|
||||
--output slides.pdf \
|
||||
--stylesheets main \
|
||||
--break-level 1 \
|
||||
--fit-background-mode scale \
|
||||
--extension-module preprocess
|
4
things-to-know-php/code/includes-code.txt
Normal file
4
things-to-know-php/code/includes-code.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
.. code-block:: javascript
|
||||
:include: code/additional-config-options.txt
|
||||
:hl_lines: 2 3 4
|
||||
:linenos:
|
1
things-to-know-php/code/includes-sections.txt
Normal file
1
things-to-know-php/code/includes-sections.txt
Normal file
|
@ -0,0 +1 @@
|
|||
.. include:: sections/intro.rst
|
3
things-to-know-php/code/page-templates-rst.txt
Normal file
3
things-to-know-php/code/page-templates-rst.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
.. raw:: pdf
|
||||
|
||||
PageBreak standardPage
|
6
things-to-know-php/code/page-templates-style.txt
Normal file
6
things-to-know-php/code/page-templates-style.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
pageTemplates:
|
||||
standardPage:
|
||||
frames: []
|
||||
[3%, 3%, 92%, 92%]
|
||||
showFooter: true
|
||||
showHeader: false
|
29
things-to-know-php/code/styling.txt
Normal file
29
things-to-know-php/code/styling.txt
Normal file
|
@ -0,0 +1,29 @@
|
|||
linkColor: #24608a
|
||||
|
||||
styles:
|
||||
normal:
|
||||
fontSize: 24
|
||||
leading: 32
|
||||
textColor: #383745
|
||||
|
||||
bodytext:
|
||||
alignment: TA_LEFT
|
||||
|
||||
heading:
|
||||
fontSize: 20
|
||||
spaceAfter: 16
|
||||
textColor: #24608a
|
||||
|
||||
title:
|
||||
fontSize: 300%
|
||||
parent: heading
|
||||
textColor: white
|
||||
|
||||
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
|
||||
|
14
things-to-know-php/code/useful-rst-1.txt
Normal file
14
things-to-know-php/code/useful-rst-1.txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
Building and presenting slide decks with rst2pdf
|
||||
################################################
|
||||
|
||||
.. class:: titleslideinfo
|
||||
|
||||
Oliver Davies (@opdavies)
|
||||
|
||||
|
||||
What is rst2pdf?
|
||||
================
|
||||
|
||||
* "Use a text editor. Make a PDF."
|
||||
* reStructuredText to PDF
|
||||
* Each slide is a page
|
14
things-to-know-php/code/useful-rst-2.txt
Normal file
14
things-to-know-php/code/useful-rst-2.txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
.. image:: images/editing.png
|
||||
:width: 20cm
|
||||
|
||||
|
||||
.. code-block:: php
|
||||
:startinline: true
|
||||
:linenos:
|
||||
|
||||
echo 'Hello world!';
|
||||
|
||||
|
||||
.. raw:: pdf
|
||||
|
||||
TextAnnotation "This is a speaker note."
|
8
things-to-know-php/code/watching.txt
Normal file
8
things-to-know-php/code/watching.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
nodemon --ext rst,style,txt --exec "
|
||||
rst2pdf slides.rst \
|
||||
--output slides.pdf \
|
||||
--stylesheets main \
|
||||
--break-level 1 \
|
||||
--fit-background-mode scale \
|
||||
--extension-module preprocess
|
||||
"
|
Loading…
Add table
Add a link
Reference in a new issue