Logo: Relish

  1. Sign in

Project: Reveal-ck

Using 'reveal-ck serve'

reveal-ck has two main commands: generate and serve.

generate builds slides.

serve is a longer running and more complicated process:

  • It starts up a webserver to serve up your slides
  • It listens for file system changes to rebuild your slides
  • It reloads your browser when slides are regenerated

It's expected that most users will usually just run reveal-ck
serve
.

However, for testing purposes, we can run reveal-ck serve in a mode
where it starts up and shuts down after a few moments. This allows
us to quickly verify that things are looking good.

Scenarios
Starting up `reveal-ck serve`
Given
a file named "slides.md" with:
# reveal-ck serve
When
I temporarily start reveal-ck serve with host "localhost"
Then
the exit status should be 1
And
the output should contain "[ reveal-ck ] Serving up slide content in 'slides/'."
And
the output should contain "[ reveal-ck ] Open your browser to 'http://localhost"
And
the output should contain "[ reveal-ck ] Press CTRL-C to stop."
And
the output should contain "[ reveal-ck ] Getting Ready to Rebuild Slides."
And
the output should contain "[ reveal-ck ] Starting Webserver."
And
the output should contain "[ reload ] Guard is now watching"
Starting up `reveal-ck serve` and specifying a host
Given
a file named "slides.md" with:
# reveal-ck serve
When
I temporarily start reveal-ck serve with host "0.0.0.0"
Then
the exit status should be 1
And
the output should contain "[ reveal-ck ] Open your browser to 'http://0.0.0.0"

Last published 10 months ago by jedcn.