Packages

obelisk is a static site generator for Elixir. It is inspired by jekyll, with the goal of being fast and simple to use and extend.

Current section

Files

Jump to
obelisk lib mix tasks obelisk.ex
Raw

lib/mix/tasks/obelisk.ex

defmodule Mix.Tasks.Obelisk do
use Anubis
@shortdoc "Run obelisk tasks."
@moduledoc """
Runs obelisk tasks.
To view available commands, run:
$ mix obelisk help
"""
command :init, "Creates the scaffolding for the static site", Obelisk.Tasks.Init.run
command :build, "Compile the site to the ./build directory", Obelisk.Tasks.Build.run
command :post, "Create a new post", Obelisk.Tasks.Post.run
command :draft, "Create a new draft", Obelisk.Tasks.Draft.run
command :server, "Start a local server to host the site", Obelisk.Tasks.Server.run
parse
end