aboutsummaryrefslogtreecommitdiff
path: root/scripts/md
diff options
context:
space:
mode:
authorEric Bidelman2012-10-16 11:26:53 -0700
committerEric Bidelman2012-10-16 11:26:53 -0700
commitc52fcb4a65c516a3e8f21a39de899fb88eb5fb7a (patch)
tree9ee075172091452371810efcf765faf1cc81208d /scripts/md
parentf208307cbdd403d3fa92a1aae1dc9c094c7ec9d8 (diff)
downloadio-slides-remote-c52fcb4a65c516a3e8f21a39de899fb88eb5fb7a.tar.gz
Updating md render script
Diffstat (limited to 'scripts/md')
-rw-r--r--scripts/md/README.md2
-rw-r--r--scripts/md/base.html29
-rwxr-xr-xscripts/md/render.py5
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 @@
1Want 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>&lt;Thank You!&gt;</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>
79var _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
2import codecs 3import codecs
3import re 4import re
4import jinja2 5import jinja2
5import markdown 6import markdown
6 7
7def process_slides(): 8def 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)