diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/md/README.md | 2 | ||||
-rw-r--r-- | scripts/md/base.html | 29 | ||||
-rwxr-xr-x | scripts/md/render.py | 5 |
3 files changed, 33 insertions, 3 deletions
diff --git a/scripts/md/README.md b/scripts/md/README.md index 136e465..3188b3f 100644 --- a/scripts/md/README.md +++ b/scripts/md/README.md | |||
@@ -1,4 +1,4 @@ | |||
1 | Want to use markdown instead? | 1 | ### Want to use markdown to write your slides? |
2 | 2 | ||
3 | `python render.py` can do that for you. | 3 | `python render.py` can do that for you. |
4 | 4 | ||
diff --git a/scripts/md/base.html b/scripts/md/base.html index a469806..7e9d824 100644 --- a/scripts/md/base.html +++ b/scripts/md/base.html | |||
@@ -54,10 +54,39 @@ URL: https://code.google.com/p/io-2012-slides | |||
54 | </slide> | 54 | </slide> |
55 | {% endfor %} | 55 | {% endfor %} |
56 | 56 | ||
57 | <slide class="thank-you-slide segue nobackground"> | ||
58 | <aside class="gdbar right"><img src="images/google_developers_icon_128.png"></aside> | ||
59 | <article class="flexbox vleft auto-fadein"> | ||
60 | <h2><Thank You!></h2> | ||
61 | <p>Important contact information goes here.</p> | ||
62 | </article> | ||
63 | <p class="auto-fadein" data-config-contact> | ||
64 | <!-- populated from slide_config.json --> | ||
65 | </p> | ||
66 | </slide> | ||
67 | |||
68 | <slide class="logoslide dark nobackground"> | ||
69 | <article class="flexbox vcenter"> | ||
70 | <span><img src="images/google_developers_logo_white.png"></span> | ||
71 | </article> | ||
72 | </slide> | ||
73 | |||
57 | <slide class="backdrop"></slide> | 74 | <slide class="backdrop"></slide> |
58 | 75 | ||
59 | </slides> | 76 | </slides> |
60 | 77 | ||
78 | <script> | ||
79 | var _gaq = _gaq || []; | ||
80 | _gaq.push(['_setAccount', 'UA-XXXXXXXX-1']); | ||
81 | _gaq.push(['_trackPageview']); | ||
82 | |||
83 | (function() { | ||
84 | var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | ||
85 | ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
86 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
87 | })(); | ||
88 | </script> | ||
89 | |||
61 | <!--[if IE]> | 90 | <!--[if IE]> |
62 | <script src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script> | 91 | <script src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script> |
63 | <script>CFInstall.check({mode: 'overlay'});</script> | 92 | <script>CFInstall.check({mode: 'overlay'});</script> |
diff --git a/scripts/md/render.py b/scripts/md/render.py index c634ea0..fe667d8 100755 --- a/scripts/md/render.py +++ b/scripts/md/render.py | |||
@@ -1,11 +1,12 @@ | |||
1 | #!/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python | 1 | #!/usr/bin/env python |
2 | |||
2 | import codecs | 3 | import codecs |
3 | import re | 4 | import re |
4 | import jinja2 | 5 | import jinja2 |
5 | import markdown | 6 | import markdown |
6 | 7 | ||
7 | def process_slides(): | 8 | def process_slides(): |
8 | with codecs.open('../presentation.html', 'w', encoding='utf8') as outfile: | 9 | with codecs.open('../../presentation-output.html', 'w', encoding='utf8') as outfile: |
9 | md = codecs.open('slides.md', encoding='utf8').read() | 10 | md = codecs.open('slides.md', encoding='utf8').read() |
10 | md_slides = md.split('\n---\n') | 11 | md_slides = md.split('\n---\n') |
11 | print len(md_slides) | 12 | print len(md_slides) |