Skip to content

Commit 93fe9e9

Browse files
authored
Merge pull request #4 from kianmeng/misc-doc-changes
Misc doc changes
2 parents 3e01dfa + 045a824 commit 93fe9e9

2 files changed

Lines changed: 46 additions & 31 deletions

File tree

README.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Sparrow [![Build Status](https://img.shields.io/travis/ExpressApp/sparrow.svg)](https://travis-ci.org/ExpressApp/sparrow) [![Hex.pm](https://img.shields.io/hexpm/v/sparrow.svg)](https://hex.pm/packages/sparrow)
1+
# Sparrow [![Build Status](https://img.shields.io/travis/ExpressApp/sparrow.svg)](https://travis-ci.org/ExpressApp/sparrow) [![Hex.pm](https://img.shields.io/hexpm/v/sparrow.svg)](https://hex.pm/packages/sparrow) [![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/sparrow/) [![Total Download](https://img.shields.io/hexpm/dt/sparrow.svg)](https://hex.pm/packages/sparrow) [![License](https://img.shields.io/hexpm/l/sparrow.svg)](https://hex.pm/packages/sparrow) [![Last Updated](https://img.shields.io/github/last-commit/ExpressApp/sparrow.svg)](https://github.com/ExpressApp/sparrow/commits/master)
22

33
---
44

@@ -22,31 +22,31 @@ Sentry client for Elixir based on the new Erlang's [logger](http://erlang.org/do
2222

2323
## Installation
2424

25-
1. Add `sparrrow` to your list of dependencies in `mix.exs`:
26-
27-
```elixir
28-
def deps do
29-
[
30-
{:sparrow, "~> 1.0"}
31-
]
32-
end
33-
```
34-
35-
2. Add configuration to your app:
36-
37-
```elixir
38-
# config/config.exs
39-
40-
config :sparrow,
41-
dsn: "your_sentry_dsn",
42-
# optional configuration
43-
server_name: "server_name",
44-
release: "1.14.3-rc.3",
45-
tags: %{
46-
some: "of",
47-
your: "tags",
48-
}
49-
```
25+
1. Add `sparrrow` to your list of dependencies in `mix.exs`:
26+
27+
```elixir
28+
def deps do
29+
[
30+
{:sparrow, "~> 1.0"}
31+
]
32+
end
33+
```
34+
35+
2. Add configuration to your app:
36+
37+
```elixir
38+
# config/config.exs
39+
40+
config :sparrow,
41+
dsn: "your_sentry_dsn",
42+
# optional configuration
43+
server_name: "server_name",
44+
release: "1.14.3-rc.3",
45+
tags: %{
46+
some: "of",
47+
your: "tags",
48+
}
49+
```
5050

5151
---
5252

mix.exs

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
defmodule Sparrow.MixProject do
22
use Mix.Project
33

4+
@source_url "https://github.com/ExpressApp/sparrow"
5+
@version "1.1.1"
6+
47
def project do
58
[
69
app: :sparrow,
7-
version: "1.1.1",
10+
version: @version,
811
elixir: "~> 1.9",
9-
elixirc_paths: elixirc_paths(Mix.env),
12+
elixirc_paths: elixirc_paths(Mix.env()),
1013
start_permanent: Mix.env() == :prod,
1114
deps: deps(),
1215

1316
# Hex
1417
description: description(),
1518
package: package(),
19+
docs: docs()
1620
]
1721
end
1822

@@ -24,13 +28,12 @@ defmodule Sparrow.MixProject do
2428
end
2529

2630
defp elixirc_paths(:test), do: ["lib", "test/support"]
27-
defp elixirc_paths(_), do: ["lib"]
31+
defp elixirc_paths(_), do: ["lib"]
2832

2933
defp deps do
3034
[
3135
{:hackney, ">= 1.8.0"},
3236
{:jason, ">= 0.0.0", optional: true},
33-
3437
{:mox, "~> 0.5", only: :test},
3538
{:plug, "~> 1.7", only: :test},
3639
{:plug_cowboy, "~> 2.0", only: :test},
@@ -47,7 +50,19 @@ defmodule Sparrow.MixProject do
4750
name: :sparrow,
4851
maintainers: ["Yuri Artemev"],
4952
licenses: ["MIT"],
50-
links: %{"GitHub" => "https://github.com/ExpressApp/sparrow"}
53+
links: %{
54+
"Changelog" => "#{@source_url}/blob/master/CHANGELOG.md",
55+
"GitHub" => @source_url
56+
}
57+
]
58+
end
59+
60+
defp docs do
61+
[
62+
main: "readme",
63+
source_ref: "v#{@version}",
64+
source_url: @source_url,
65+
extras: ["README.md", "CHANGELOG.md"]
5166
]
5267
end
5368
end

0 commit comments

Comments
 (0)