diff --git a/.gitignore b/.gitignore index 92e11c5..f6c96af 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /_build /deps +/doc /src/thrift_lexer.erl erl_crash.dump *.ez diff --git a/mix.exs b/mix.exs index 2d4c929..e7e429e 100644 --- a/mix.exs +++ b/mix.exs @@ -26,7 +26,11 @@ defmodule Thrift.Mixfile do # Hex description: description, package: package, - ] + + + # Docs + name: "Thrift", + docs: [source_ref: "v#{@version}", main: "Thrift", source_url: @project_url]] end def application do @@ -34,7 +38,9 @@ defmodule Thrift.Mixfile do end defp deps do - [{:excoveralls, github: "parroty/excoveralls", tag: "v0.4.5", override: true, only: :test}] + [{:ex_doc, "~> 0.10", only: :dev}, + {:earmark, "~> 0.1", only: :dev}, + {:excoveralls, github: "parroty/excoveralls", tag: "v0.4.5", override: true, only: :test}] end defp description do diff --git a/mix.lock b/mix.lock index 28ab944..d9bc2b4 100644 --- a/mix.lock +++ b/mix.lock @@ -1,4 +1,6 @@ %{"certifi": {:hex, :certifi, "0.3.0"}, + "earmark": {:hex, :earmark, "0.2.1"}, + "ex_doc": {:hex, :ex_doc, "0.11.4"}, "excoveralls": {:git, "https://github.com/parroty/excoveralls.git", "a0d3d57b7137f3204690e4126a82d48d985a09fb", [tag: "v0.4.5"]}, "exjsx": {:hex, :exjsx, "3.2.0"}, "hackney": {:hex, :hackney, "1.4.8"},