-
Notifications
You must be signed in to change notification settings - Fork 32
/
generate-with-alt-dir.feature
46 lines (35 loc) · 1.1 KB
/
generate-with-alt-dir.feature
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
Feature: reveal-ck generate --dir
By default, `reveal-ck generate` creates slides in a directory named
after the slide file.
And this is known as your "slides directory."
The slide directory from a slide file named 'slides.md' or
'slides.haml' will be `slides/`
However, if you'd prefer, you can indicator an alternate directory,
such as `slides_for_google_talk/` instead.
To do this, you'd say:
reveal-ck generate --directory slides_for_google_talk
Scenario: Generating custom slide directory
Given a file named "slides.haml" with:
"""
%section
%h2
Uh oh!
%section
%h3
Guess what day it is?
%section
%h3
Guess what day it is!
%section
%h3
Huh?
%section
%h3
Anybody?
"""
When I run `reveal-ck generate --dir slides_for_google_talk`
Then the exit status should be 0
And the output should contain exactly "Generating slides for 'slides.haml'..\n"
And the following files should exist:
| slides_for_google_talk/slides.html |
| slides_for_google_talk/index.html |