From a685ccf99fcf44c72929ff66b8ca5035fab56205 Mon Sep 17 00:00:00 2001 From: Sergei Maximov Date: Tue, 27 Aug 2024 16:52:34 +0300 Subject: [PATCH] Add README.md and CHANGELOG.md to the docs (#168) README.md is now the entry point of the docs instead of "API Reference". --- mix.exs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/mix.exs b/mix.exs index 508c5fd..67af0ae 100644 --- a/mix.exs +++ b/mix.exs @@ -16,10 +16,7 @@ defmodule PhoenixLiveReload.Mixfile do # Docs name: "Phoenix Live-Reload", - docs: [ - source_ref: "v#{@version}", - source_url: "https://github.com/phoenixframework/phoenix_live_reload" - ] + docs: docs() ] end @@ -48,4 +45,16 @@ defmodule PhoenixLiveReload.Mixfile do {:jason, "~> 1.0", only: :test} ] end + + defp docs do + [ + main: "readme", + extras: [ + "README.md", + "CHANGELOG.md" + ], + source_ref: "v#{@version}", + source_url: "https://github.com/phoenixframework/phoenix_live_reload" + ] + end end