Sha256: 3d5b2ca8872787d96c68ef893772c5ee777a22edff80e8a6814cf97ceb1d57da
Contents?: true
Size: 697 Bytes
Versions: 3
Compression:
Stored size: 697 Bytes
Contents
module Blogdown module Cli # Commandline app for blogdown class CommandLine<Thor desc "build", "builds the html files" def build # Builds html files from markdown files, located in output # and posts folders respectively begin publisher=Blogdown::Publisher.new(Dir.pwd) publisher.compose rescue Exception=>e puts e.message end end desc "server", "serves the project for preview" def server # Runs Sinatra built in server on the project root drectory ENV['BD']=Dir.pwd build Blogdown::PreviewApp.run! end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
blogdown-0.1.2 | lib/blogdown/cli.rb |
blogdown-0.1.1 | lib/blogdown/cli.rb |
blogdown-0.1.0 | lib/blogdown/cli.rb |