-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·51 lines (47 loc) · 1.61 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Notes:
#
# Can't use --input markdown_strict, as we're using extensions
#
# Files are listed explicitly so users can re-order the material in their own branches if they wish
# Remove the HTML
rm ./php-training-course-en.html
# Convert to HTML first
pandoc \
--output ./php-training-course-en.html \
--css ./source/styles.css \
source/en/docs/title-block.md \
source/en/docs/preface.md \
source/en/docs/course-specific.md \
source/en/docs/licence.md \
source/en/docs/main-section.md \
source/en/docs/intro.md \
source/en/docs/installation.md \
source/en/docs/intro-to-code.md \
source/en/docs/the-console.md \
source/en/docs/the-web-server.md \
source/en/docs/simple-html.md \
source/en/docs/variables-and-types.md \
source/en/docs/array-type.md \
source/en/docs/conditionals.md \
source/en/docs/for-loops.md \
source/en/docs/more-html.md \
source/en/docs/thinking-about-the-web.md \
source/en/docs/intro-to-forms.md \
source/en/docs/while-loops.md \
source/en/docs/intro-to-algorithms.md \
source/en/docs/user-defined-functions.md \
source/en/docs/intro-to-css.md \
source/en/docs/intro-to-mysql.md \
source/en/docs/style.md \
source/en/docs/intro-to-objects.md \
source/en/docs/modifying-db-structure.md \
source/en/docs/intro-to-exceptions.md \
source/en/docs/more-about-objects.md \
source/en/docs/updating-deleting-database.md \
source/en/docs/connecting-to-servers.md \
source/en/docs/interfacing-with-the-db.md \
source/en/docs/fizz-buzz.md
# Remove the PDF
rm ./php-training-course-en.pdf
# Render HTML as PDF using dompdf library
php ./convert.php php-training-course-en.html php-training-course-en.pdf