Add documentation support via ex_doc.

This commit is contained in:
Jon Parise 2016-02-02 10:34:09 -08:00
parent 794ba2610b
commit 6284a12fc9
3 changed files with 11 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
/_build
/deps
/doc
/src/thrift_lexer.erl
erl_crash.dump
*.ez

10
mix.exs
View File

@ -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

View File

@ -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"},