From de2a96140d5b9ec79aba8865af47f3659aff53ec Mon Sep 17 00:00:00 2001 From: Martin Frost Date: Sun, 10 Jan 2016 13:06:38 +0100 Subject: [PATCH] Include README.md in docs generation Also switch docs generation to use Pandoc. --- config/config.exs | 2 ++ mix.exs | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/config.exs b/config/config.exs index 136603b..f99d2fa 100644 --- a/config/config.exs +++ b/config/config.exs @@ -24,3 +24,5 @@ use Mix.Config # here (which is why it is important to import them last). # # import_config "#{Mix.env}.exs" + +config :ex_doc, :markdown_processor, ExDoc.Markdown.Pandoc diff --git a/mix.exs b/mix.exs index d7b3ef5..1928c1b 100644 --- a/mix.exs +++ b/mix.exs @@ -15,7 +15,8 @@ defmodule ISN.Mixfile do # Docs name: "ISN", docs: [source_ref: "v#{@version}", - source_url: "https://github.com/Frost/isn"] + source_url: "https://github.com/Frost/isn", + extras: ["README.md"]] ] end @@ -43,7 +44,6 @@ defmodule ISN.Mixfile do [{:postgrex, ">= 0.9.1"}, {:ecto, "~> 1.0"}, {:credo, "~> 0.1", only: :dev}, - {:ex_doc, "~> 0.10", only: :dev}, - {:earmark, ">= 0.0.0", only: :dev}] + {:ex_doc, "~> 0.10", only: :dev}] end end