File tree 3 files changed +10
-5
lines changed
3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
.vagrant
2
+ .DS_Store
Original file line number Diff line number Diff line change @@ -15,17 +15,17 @@ def index():
15
15
16
16
@app .route ('/slides.md' , methods = ['GET' ])
17
17
def get_slides ():
18
- with open ("/var /slides.md" ) as fp :
18
+ with open (". /slides.md" ) as fp :
19
19
return fp .read ()
20
20
21
21
@app .route ('/slides.md' , methods = ['PUT' ])
22
22
def save_slides ():
23
23
new_slides = request .get_data ()
24
- with open ('/var /slides.md' , 'wb' ) as fp :
24
+ with open ('. /slides.md' , 'wb' ) as fp :
25
25
fp .write (new_slides )
26
26
return make_response ("" , 200 )
27
27
28
28
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" )
31
31
app .run ('0.0.0.0' , 8000 , debug = True )
Original file line number Diff line number Diff line change 53
53
// Full list of configuration options available at:
54
54
// https://github.com/hakimel/reveal.js#configuration
55
55
Reveal . initialize ( {
56
+ width : 1000 ,
57
+ height : 1000 ,
56
58
controls : true ,
57
59
progress : true ,
58
60
history : true ,
59
61
center : true ,
60
- transition : 'slide' , // none/fade/slide/convex/concave/zoom
62
+ slideNumber : true ,
63
+ transition : 'convex' , // none/fade/slide/convex/concave/zoom
61
64
transitionSpeed : isPreview ( ) ? 'fast' : 'default' ,
62
65
embedded : isPreview ( ) ? true : false ,
63
66
82
85
} ) ;
83
86
84
87
$ ( '.slides' ) . html ( markdownReference ) ;
88
+ $ ( '.slides' ) . append ( '<section><pre><code></code>THIS ENABLES SYNTAX HIGHLIGHT</pre></code></section>' ) ;
85
89
}
86
90
87
91
function reloadMarkdown ( ) {
You can’t perform that action at this time.
0 commit comments