Skip to content

Commit

Permalink
Add ex_doc configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmj committed Dec 10, 2014
1 parent 0e3df20 commit a9cc002
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ defmodule Phoenix.Mixfile do
version: "0.7.0",
elixir: "~> 1.0.2 or ~> 1.1-dev",
deps: deps,
package: [
contributors: ["Chris McCord", "Darko Fabijan", "José Valim"],
licenses: ["MIT"],
links: %{github: "https://github.com/phoenixframework/phoenix"}
],
package: package,
docs: &docs/0,
name: "Phoenix",
source_url: "https://github.com/phoenixframework/phoenix",
homepage_url: "http://www.phoenixframework.org",
description: """
Elixir Web Framework targeting full-featured, fault tolerant applications
with realtime functionality
Expand All @@ -27,7 +27,7 @@ defmodule Phoenix.Mixfile do
filter_parameters: ["password"]]]
end

def deps do
defp deps do
[{:cowboy, "~> 1.0", optional: true},
# TODO: Bump Plug back to hex on next release
{:plug, github: "elixir-lang/plug"},
Expand All @@ -37,4 +37,17 @@ defmodule Phoenix.Mixfile do
{:inch_ex, "~> 0.2", only: :docs},
{:websocket_client, github: "jeremyong/websocket_client", only: :test}]
end

defp package do
[contributors: ["Chris McCord", "Darko Fabijan", "José Valim"],
licenses: ["MIT"],
links: %{github: "https://github.com/phoenixframework/phoenix"}]
end

defp docs do
{ref, 0} = System.cmd("git", ["rev-parse", "--verify", "--quiet", "HEAD"])
[source_ref: ref,
main: "overview",
readme: true]
end
end

0 comments on commit a9cc002

Please sign in to comment.