Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
blob: fe93208da2f64f41367d9494dce76fd587634b09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
defmodule Mix.Tasks.Pandoc do
  use Mix.Task

  @out_dir "priv/static"

  @impl true
  def run([profile | _args]) do
    IO.puts "profile: #{profile}"

    "priv/posts"
    |> File.ls!()
    |> Enum.each(fn path ->
      Pandoc.install_and_run(Path.join(["priv", "posts", path]))
    end)
  end
end