-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Besides other documentation changes, this commit ensures the generated HTML doc for HexDocs.pm will become the main source doc for this Elixir library which leverage on latest ExDoc features.
- Loading branch information
Showing
7 changed files
with
84 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Used by "mix format" | ||
[ | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,58 @@ | ||
defmodule GeoPostgis.Mixfile do | ||
use Mix.Project | ||
|
||
@source_url "https://github.com/bryanjos/geo_postgis" | ||
@version "3.3.1" | ||
|
||
def project do | ||
[ | ||
app: :geo_postgis, | ||
version: "3.3.1", | ||
version: @version, | ||
elixir: "~> 1.7", | ||
build_embedded: Mix.env() == :prod, | ||
start_permanent: Mix.env() == :prod, | ||
name: "GeoPostGIS", | ||
deps: deps(), | ||
description: description(), | ||
package: package(), | ||
name: "GeoPostGIS", | ||
docs: docs(), | ||
elixirc_paths: elixirc_paths(Mix.env()), | ||
source_url: source_url() | ||
] | ||
end | ||
|
||
def application do | ||
[extra_applications: [:logger]] | ||
end | ||
|
||
defp source_url do | ||
"https://github.com/bryanjos/geo_postgis" | ||
end | ||
|
||
defp elixirc_paths(:test), do: ["lib", "test/support"] | ||
defp elixirc_paths(_), do: ["lib"] | ||
|
||
defp description do | ||
""" | ||
PostGIS extension for Postgrex. | ||
""" | ||
end | ||
|
||
defp deps do | ||
[ | ||
{:geo, "~> 3.3"}, | ||
{:postgrex, "~> 0.14"}, | ||
{:ex_doc, "~> 0.21.0", only: :dev}, | ||
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}, | ||
{:ecto_sql, "~> 3.0", optional: true, only: :test}, | ||
{:poison, "~> 2.2 or ~> 3.0 or ~> 4.0", optional: true}, | ||
{:jason, "~> 1.0", optional: true} | ||
] | ||
end | ||
|
||
defp package do | ||
# These are the default files included in the package | ||
[ | ||
description: "PostGIS extension for Postgrex.", | ||
files: ["lib", "mix.exs", "README.md", "CHANGELOG.md"], | ||
maintainers: ["Bryan Joseph"], | ||
licenses: ["MIT"], | ||
links: %{"GitHub" => source_url()} | ||
links: %{"GitHub" => @source_url} | ||
] | ||
end | ||
|
||
defp docs do | ||
[ | ||
extras: ["CHANGELOG.md", "README.md"], | ||
main: "readme", | ||
source_url: @source_url, | ||
source_ref: "v#{@version}", | ||
formatters: ["html"] | ||
] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters