diff --git a/.gitignore b/.gitignore index 7d56110..4d986d3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ /_build /cover /deps +/doc erl_crash.dump *.ez .credo.exs diff --git a/mix.exs b/mix.exs index cd6a2a9..23423e2 100644 --- a/mix.exs +++ b/mix.exs @@ -8,6 +8,8 @@ defmodule Readability.Mixfile do [app: :readability, version: "0.0.1", elixir: "~> 1.2", + description: description, + package: package, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps] @@ -35,8 +37,24 @@ defmodule Readability.Mixfile do defp deps do [{:floki, "~> 0.8.0"}, {:httpoison, "~> 0.8.0"}, + {:earmark, "~> 0.1", only: :dev}, + {:ex_doc, "~> 0.11", only: :dev}, {:credo, "~> 0.3", only: [:dev, :test]}, {:dialyxir, "~> 0.3", only: [:dev]} ] end + + defp description do + """ + Readability to elixir. This project is heavily based on Arc90's project. + """ + end + + defp package do + [files: ["lib", "mix.exs", "README*", "LICENSE*", "doc"], + maintainers: ["Jaehyun Shin"], + licenses: ["Apache 2.0"], + links: %{"GitHub" => "https://github.com/keepcosmos/readability", + "Docs" => "http://https://hexdocs.pm/readability"}] + end end diff --git a/mix.lock b/mix.lock index 9aaf1ae..f5347da 100644 --- a/mix.lock +++ b/mix.lock @@ -2,6 +2,8 @@ "certifi": {:hex, :certifi, "0.4.0"}, "credo": {:hex, :credo, "0.3.12"}, "dialyxir": {:hex, :dialyxir, "0.3.3"}, + "earmark": {:hex, :earmark, "0.2.1"}, + "ex_doc": {:hex, :ex_doc, "0.11.4"}, "floki": {:hex, :floki, "0.8.0"}, "hackney": {:hex, :hackney, "1.6.0"}, "httpoison": {:hex, :httpoison, "0.8.3"},