Skip to content

Commit 9d01140

Browse files
committed
Add source links to docs; bump deps
1 parent 7d4b99f commit 9d01140

File tree

2 files changed

+29
-17
lines changed

2 files changed

+29
-17
lines changed

mix.exs

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

4+
@version "0.5.1"
5+
@source_url "https://github.com/nerves-hub/nerves_key"
6+
47
def project do
58
[
69
app: :nerves_key,
7-
version: "0.5.1",
10+
version: @version,
811
description: description(),
912
package: package(),
10-
source_url: "https://github.com/nerves-hub/nerves_key",
13+
source_url: @source_url,
1114
elixir: "~> 1.7",
1215
elixirc_paths: elixirc_paths(Mix.env()),
1316
start_permanent: Mix.env() == :prod,
14-
docs: [extras: ["README.md", "hw/hw.md"], main: "readme"],
17+
docs: docs(),
1518
aliases: [docs: ["docs", &copy_images/1]],
1619
deps: deps(),
1720
dialyzer: [
@@ -36,10 +39,10 @@ defmodule NervesKey.MixProject do
3639
end
3740

3841
defp package do
39-
%{
42+
[
4043
licenses: ["Apache-2.0"],
41-
links: %{"GitHub" => "https://github.com/nerves-hub/nerves_key"}
42-
}
44+
links: %{"GitHub" => @source_url}
45+
]
4346
end
4447

4548
defp deps do
@@ -51,6 +54,15 @@ defmodule NervesKey.MixProject do
5154
]
5255
end
5356

57+
defp docs do
58+
[
59+
extras: ["README.md", "hw/hw.md"],
60+
main: "readme",
61+
source_ref: "v#{@version}",
62+
source_url: @source_url
63+
]
64+
end
65+
5466
# Copy the images referenced by docs, since ex_doc doesn't do this.
5567
defp copy_images(_) do
5668
File.cp_r("hw/assets", "doc/assets")

mix.lock

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
%{
2-
"atecc508a": {:hex, :atecc508a, "0.2.0", "ebf734dc57fcfe9b0cade69a92564608bf815c9e030b18319d0965138261bbba", [:mix], [{:circuits_i2c, "~> 0.2", [hex: :circuits_i2c, repo: "hexpm", optional: false]}, {:x509, "~> 0.5.1 or ~> 0.6", [hex: :x509, repo: "hexpm", optional: false]}], "hexpm"},
3-
"circuits_i2c": {:hex, :circuits_i2c, "0.3.3", "9c3e22b5622214ab1b9c2af166cce53a3562f7ef32e7a6cb40a2298925487a95", [:make, :mix], [{:elixir_make, "~> 0.5", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm"},
4-
"dialyxir": {:hex, :dialyxir, "1.0.0-rc.6", "78e97d9c0ff1b5521dd68041193891aebebce52fc3b93463c0a6806874557d7d", [:mix], [{:erlex, "~> 0.2.1", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm"},
5-
"earmark": {:hex, :earmark, "1.3.2", "b840562ea3d67795ffbb5bd88940b1bed0ed9fa32834915125ea7d02e35888a5", [:mix], [], "hexpm"},
2+
"atecc508a": {:hex, :atecc508a, "0.2.1", "a1789f749e97eb8439109f547c537afaa2071794a807f37ed95a61587519f907", [:mix], [{:circuits_i2c, "~> 0.2", [hex: :circuits_i2c, repo: "hexpm", optional: false]}, {:x509, "~> 0.5.1 or ~> 0.6", [hex: :x509, repo: "hexpm", optional: false]}], "hexpm"},
3+
"circuits_i2c": {:hex, :circuits_i2c, "0.3.4", "d86951092e44487fe6fecbd6544511d894510be2856280eb93258a171bdc1552", [:make, :mix], [{:elixir_make, "~> 0.5", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm"},
4+
"dialyxir": {:hex, :dialyxir, "1.0.0-rc.7", "6287f8f2cb45df8584317a4be1075b8c9b8a69de8eeb82b4d9e6c761cf2664cd", [:mix], [{:erlex, ">= 0.2.5", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm"},
5+
"earmark": {:hex, :earmark, "1.4.2", "3aa0bd23bc4c61cf2f1e5d752d1bb470560a6f8539974f767a38923bb20e1d7f", [:mix], [], "hexpm"},
66
"elixir_circuits_i2c": {:git, "https://github.com/elixir-circuits/i2c.git", "60b45c6959f302b688558cb083f3f27aed4e082e", []},
7-
"elixir_make": {:hex, :elixir_make, "0.5.2", "96a28c79f5b8d34879cd95ebc04d2a0d678cfbbd3e74c43cb63a76adf0ee8054", [:mix], [], "hexpm"},
8-
"erlex": {:hex, :erlex, "0.2.1", "cee02918660807cbba9a7229cae9b42d1c6143b768c781fa6cee1eaf03ad860b", [:mix], [], "hexpm"},
9-
"ex_doc": {:hex, :ex_doc, "0.20.2", "1bd0dfb0304bade58beb77f20f21ee3558cc3c753743ae0ddbb0fd7ba2912331", [:mix], [{:earmark, "~> 1.3", [hex: :earmark, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.10", [hex: :makeup_elixir, repo: "hexpm", optional: false]}], "hexpm"},
7+
"elixir_make": {:hex, :elixir_make, "0.6.0", "38349f3e29aff4864352084fc736fa7fa0f2995a819a737554f7ebd28b85aaab", [:mix], [], "hexpm"},
8+
"erlex": {:hex, :erlex, "0.2.5", "e51132f2f472e13d606d808f0574508eeea2030d487fc002b46ad97e738b0510", [:mix], [], "hexpm"},
9+
"ex_doc": {:hex, :ex_doc, "0.21.2", "caca5bc28ed7b3bdc0b662f8afe2bee1eedb5c3cf7b322feeeb7c6ebbde089d6", [:mix], [{:earmark, "~> 1.3.3 or ~> 1.4", [hex: :earmark, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}], "hexpm"},
1010
"i2c": {:git, "https://github.com/elixir-circuits/i2c.git", "34275072c5dd30ac52c89a6d775e74f5bba2fb8f", []},
11-
"makeup": {:hex, :makeup, "0.8.0", "9cf32aea71c7fe0a4b2e9246c2c4978f9070257e5c9ce6d4a28ec450a839b55f", [:mix], [{:nimble_parsec, "~> 0.5.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm"},
12-
"makeup_elixir": {:hex, :makeup_elixir, "0.13.0", "be7a477997dcac2e48a9d695ec730b2d22418292675c75aa2d34ba0909dcdeda", [:mix], [{:makeup, "~> 0.8", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm"},
11+
"makeup": {:hex, :makeup, "1.0.0", "671df94cf5a594b739ce03b0d0316aa64312cee2574b6a44becb83cd90fb05dc", [:mix], [{:nimble_parsec, "~> 0.5.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm"},
12+
"makeup_elixir": {:hex, :makeup_elixir, "0.14.0", "cf8b7c66ad1cff4c14679698d532f0b5d45a3968ffbcbfd590339cb57742f1ae", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm"},
1313
"mox": {:hex, :mox, "0.4.0", "7f120840f7d626184a3d65de36189ca6f37d432e5d63acd80045198e4c5f7e6e", [:mix], [], "hexpm"},
1414
"nerves_key_pkcs11": {:hex, :nerves_key_pkcs11, "0.2.1", "bccd4faca41081cd1eaa51afc4530ad323fa6fc2085e5ba423306a244aa177e8", [:make, :mix], [{:elixir_make, "~> 0.4", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm"},
15-
"nimble_parsec": {:hex, :nimble_parsec, "0.5.0", "90e2eca3d0266e5c53f8fbe0079694740b9c91b6747f2b7e3c5d21966bba8300", [:mix], [], "hexpm"},
16-
"x509": {:hex, :x509, "0.5.4", "471e84f81464b1a55fd1e5441887c15e6ef251e0ec827647f659fc1f68282bee", [:mix], [], "hexpm"},
15+
"nimble_parsec": {:hex, :nimble_parsec, "0.5.1", "c90796ecee0289dbb5ad16d3ad06f957b0cd1199769641c961cfe0b97db190e0", [:mix], [], "hexpm"},
16+
"x509": {:hex, :x509, "0.7.0", "001b762cd99e1a33bc876bb090bd34d9cadc66eb7df3deb76d9f4d8a37b89612", [:mix], [], "hexpm"},
1717
}

0 commit comments

Comments
 (0)