Skip to content

Commit cb6e7dd

Browse files
committed
+++ Modified for working without Vagrant and added slides for IoT
1 parent 45ab50a commit cb6e7dd

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.vagrant
2+
.DS_Store

main.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ def index():
1515

1616
@app.route('/slides.md', methods=['GET'])
1717
def get_slides():
18-
with open("/var/slides.md") as fp:
18+
with open("./slides.md") as fp:
1919
return fp.read()
2020

2121
@app.route('/slides.md', methods=['PUT'])
2222
def save_slides():
2323
new_slides = request.get_data()
24-
with open('/var/slides.md', 'wb') as fp:
24+
with open('./slides.md', 'wb') as fp:
2525
fp.write(new_slides)
2626
return make_response("", 200)
2727

2828
if __name__ == '__main__':
29-
if not os.path.isfile("/var/slides.md"):
30-
shutil.copy("initial-slides.md", "/var/slides.md")
29+
if not os.path.isfile("./slides.md"):
30+
shutil.copy("initial-slides.md", "./slides.md")
3131
app.run('0.0.0.0', 8000, debug=True)

static/slides.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,14 @@
5353
// Full list of configuration options available at:
5454
// https://github.com/hakimel/reveal.js#configuration
5555
Reveal.initialize({
56+
width: 1000,
57+
height: 1000,
5658
controls: true,
5759
progress: true,
5860
history: true,
5961
center: true,
60-
transition: 'slide', // none/fade/slide/convex/concave/zoom
62+
slideNumber: true,
63+
transition: 'convex', // none/fade/slide/convex/concave/zoom
6164
transitionSpeed: isPreview() ? 'fast' : 'default',
6265
embedded: isPreview() ? true : false,
6366

@@ -82,6 +85,7 @@
8285
});
8386

8487
$('.slides').html(markdownReference);
88+
$('.slides').append('<section><pre><code></code>THIS ENABLES SYNTAX HIGHLIGHT</pre></code></section>');
8589
}
8690

8791
function reloadMarkdown() {

0 commit comments

Comments
 (0)