Commit d61f6e011ab2e845e2c1ce95976ab8d0e45a981f

Stephen Moloney 2016-06-09T15:02:48

add version to docs link

diff --git a/mix.exs b/mix.exs
index 1ef45ea..c562d16 100644
--- a/mix.exs
+++ b/mix.exs
@@ -1,11 +1,12 @@
 defmodule ExOvh.Mixfile do
   use Mix.Project
+  @version "0.1.1"
 
   def project do
     [
       app: :ex_ovh,
       name: "ExOvh",
-      version: "0.1.1",
+      version: @version,
       source_url: "https://github.com/stephenmoloney/ex_ovh",
       elixir: "~> 1.2",
       build_embedded: Mix.env == :prod,
@@ -55,7 +56,7 @@ defmodule ExOvh.Mixfile do
 
   defp docs() do
     [
-    main: "api-reference",
+    main: @version <> "/api-reference.html",
     extras: [
              "docs/mix_task_advanced.md": [path: "mix_task_advanced.md", title: "Step 1: Generating the OVH application (Optional)"],
              "docs/getting_started_advanced.md": [path: "getting_started_advanced.md", title: "Step 2: Setting up client(s)"]