From dc3764a27f8ce3e28b15a7bfafbca604fb424ecb Mon Sep 17 00:00:00 2001 From: Sheharyar Naseer Date: Sun, 9 Sep 2018 15:23:18 -0400 Subject: [PATCH] Publishing docs using it's own mix env --- mix.exs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index 9f61360..89791f4 100644 --- a/mix.exs +++ b/mix.exs @@ -7,6 +7,15 @@ defmodule Que.Mixfile do @github "https://github.com/sheharyarn/#{@app}" + # NOTE: + # To publish package or update docs, use the `docs` + # mix environment to not include support modules + # that are normally included in the `dev` environment + # + # MIX_ENV=docs hex.publish + # + + def project do [ # Project @@ -43,7 +52,7 @@ defmodule Que.Mixfile do [ {:memento, "~> 0.2.1" }, {:ex_utils, "~> 0.1.6" }, - {:ex_doc, ">= 0.0.0", only: :dev }, + {:ex_doc, ">= 0.0.0", only: :docs }, {:inch_ex, ">= 0.0.0", only: :docs }, ] end