Navigation Menu

Skip to content

Commit

Permalink
Add github links to generated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rubencaro committed Aug 4, 2017
1 parent 8b2993b commit eda3405
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion mix.exs
Expand Up @@ -7,6 +7,8 @@ defmodule Cipher.Mixfile do
elixir: ">= 1.3.0",
package: package(),
description: "Elixir crypto library to encrypt/decrypt arbitrary binaries.",
source_url: "https://github.com/rubencaro/cipher",
docs: [source_ref: get_commit()],
deps: deps()]
end

Expand All @@ -19,8 +21,12 @@ defmodule Cipher.Mixfile do

defp deps do
[{:poison, "~> 2.0 or ~> 3.0"},
{:ex_doc, ">= 0.0.0", only: :dev},
{:ex_doc, "~> 0.14", only: :dev, runtime: false},
{:plug, ">= 1.1.0"}]
end

defp get_commit do
:os.cmd('git rev-parse --short HEAD') |> to_string |> String.trim_trailing("\n")
end

end
4 changes: 2 additions & 2 deletions mix.lock
@@ -1,5 +1,5 @@
%{"earmark": {:hex, :earmark, "1.0.1", "2c2cd903bfdc3de3f189bd9a8d4569a075b88a8981ded9a0d95672f6e2b63141", [:mix], []},
"ex_doc": {:hex, :ex_doc, "0.13.0", "aa2f8fe4c6136a2f7cfc0a7e06805f82530e91df00e2bff4b4362002b43ada65", [:mix], [{:earmark, "~> 1.0", [hex: :earmark, optional: false]}]},
%{"earmark": {:hex, :earmark, "1.2.3", "206eb2e2ac1a794aa5256f3982de7a76bf4579ff91cb28d0e17ea2c9491e46a4", [:mix], [], "hexpm"},
"ex_doc": {:hex, :ex_doc, "0.16.2", "3b3e210ebcd85a7c76b4e73f85c5640c011d2a0b2f06dcdf5acdb2ae904e5084", [:mix], [{:earmark, "~> 1.1", [hex: :earmark, repo: "hexpm", optional: false]}], "hexpm"},
"mime": {:hex, :mime, "1.0.0", "b63027733bba00b1013bad14e25dc8b6629ecb817731544a88a0fd14f2a55685", [:mix], []},
"plug": {:hex, :plug, "1.1.6", "8927e4028433fcb859e000b9389ee9c37c80eb28378eeeea31b0273350bf668b", [:mix], [{:cowboy, "~> 1.0", [hex: :cowboy, optional: true]}]},
"poison": {:hex, :poison, "2.1.0", "f583218ced822675e484648fa26c933d621373f01c6c76bd00005d7bd4b82e27", [:mix], []}}

0 comments on commit eda3405

Please sign in to comment.