-
Notifications
You must be signed in to change notification settings - Fork 29
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 source of truth for this Elixir library and leverage on latest features of ExDoc.
- Loading branch information
Showing
9 changed files
with
123 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
# The directory Mix will write compiled artifacts to. | ||
/_build | ||
/_build/ | ||
|
||
# If you run "mix test --cover", coverage assets end up here. | ||
/cover | ||
/cover/ | ||
|
||
# The directory Mix downloads your dependencies sources to. | ||
/deps | ||
/deps/ | ||
|
||
# Where 3rd-party dependencies like ExDoc output generated docs. | ||
/doc | ||
# Where third-party dependencies like ExDoc output generated docs. | ||
/doc/ | ||
|
||
# Ignore .fetch files in case you like to edit your project deps locally. | ||
/.fetch | ||
|
||
# If the VM crashes, it generates a dump, let's ignore it too. | ||
erl_crash.dump | ||
|
||
# Also ignore archive artifacts (built via "mix archive.build"). | ||
*.ez | ||
|
||
# Ignore package tarball (built via "mix hex.build"). | ||
bamboo_postmark-*.tar | ||
|
||
# Temporary files, for example, from tests. | ||
/tmp/ |
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
File renamed without changes.
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,40 +1,63 @@ | ||
defmodule BambooPostmark.Mixfile do | ||
use Mix.Project | ||
|
||
@project_url "https://github.com/pablo-co/bamboo_postmark" | ||
@source_url "https://github.com/pablo-co/bamboo_postmark" | ||
@version "1.0.0" | ||
|
||
def project do | ||
[app: :bamboo_postmark, | ||
version: "1.0.0", | ||
elixir: "~> 1.4", | ||
source_url: @project_url, | ||
homepage_url: @project_url, | ||
name: "Bamboo Postmark Adapter", | ||
description: "A Bamboo adapter for Postmark", | ||
build_embedded: Mix.env == :prod, | ||
start_permanent: Mix.env == :prod, | ||
package: package(), | ||
deps: deps()] | ||
[ | ||
app: :bamboo_postmark, | ||
version: @version, | ||
elixir: "~> 1.4", | ||
name: "Bamboo Postmark", | ||
build_embedded: Mix.env() == :prod, | ||
start_permanent: Mix.env() == :prod, | ||
package: package(), | ||
deps: deps(), | ||
docs: docs() | ||
] | ||
end | ||
|
||
def application do | ||
[extra_applications: [:logger]] | ||
[ | ||
extra_applications: [:logger] | ||
] | ||
end | ||
|
||
defp deps do | ||
[{:bamboo, ">= 2.0.0"}, | ||
{:hackney, ">= 1.6.5"}, | ||
{:poison, ">= 1.5.0", only: :test}, | ||
{:plug, "~> 1.0"}, | ||
{:plug_cowboy, "~> 1.0", only: [:test, :dev]}, | ||
{:ex_doc, "~> 0.19", only: :dev}] | ||
[ | ||
{:bamboo, ">= 2.0.0"}, | ||
{:hackney, ">= 1.6.5"}, | ||
{:poison, ">= 1.5.0", only: :test}, | ||
{:plug, "~> 1.0"}, | ||
{:plug_cowboy, "~> 1.0", only: [:test, :dev]}, | ||
{:ex_doc, "> 0.0.0", only: :dev, runtime: false} | ||
] | ||
end | ||
|
||
defp package do | ||
[ | ||
description: "A Bamboo adapter for Postmark", | ||
maintainers: ["Pablo Cárdenas"], | ||
licenses: ["MIT"], | ||
links: %{"GitHub" => @project_url} | ||
links: %{ | ||
"Changelog" => "https://hexdocs.pm/bamboo/postmark/changelog.html", | ||
"GitHub" => @source_url | ||
} | ||
] | ||
end | ||
|
||
defp docs do | ||
[ | ||
extras: [ | ||
"CHANGELOG.md": [title: "Changelog"], | ||
"LICENSE.md": [title: "License"], | ||
"README.md": [title: "Overview"] | ||
], | ||
main: "readme", | ||
source_url: @source_url, | ||
homepage_url: @source_url, | ||
formatters: ["html"] | ||
] | ||
end | ||
end |
Oops, something went wrong.