-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
65 lines (59 loc) · 1.35 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
defmodule Stripper.MixProject do
use Mix.Project
@version "1.4.0"
def project do
[
app: :stripper,
name: "Stripper",
description:
"A package for normalizing string input from unpredictable sources (such as web scraping)",
source_url: "https://github.com/fireproofsocks/stripper",
version: @version,
elixir: "~> 1.9",
deps: deps(),
package: package(),
docs: [
source_ref: "v#{@version}",
logo: "docs/logo.png",
main: "readme",
extras: extras()
]
]
end
# Extra pages for the docs
def extras do
[
"README.md",
"CHANGELOG.md",
"CONTRIBUTING.md"
]
end
defp package do
[
maintainers: ["Everett Griffiths"],
licenses: ["Apache 2.0"],
logo: "logo.png",
links: links(),
files: [
"lib",
"docs/logo.png",
"mix.exs",
"README*",
"CHANGELOG*",
"LICENSE*"
]
]
end
def links do
%{
"GitHub" => "https://github.com/fireproofsocks/stripper",
"Readme" => "https://github.com/fireproofsocks/stripper/blob/v#{@version}/README.md",
"Changelog" => "https://github.com/fireproofsocks/stripper/blob/v#{@version}/CHANGELOG.md"
}
end
defp deps do
[
{:ex_doc, "~> 0.24.0", only: :dev, runtime: false}
]
end
end