From 1581bffe7161b7e82bc1b700d49e04accc7751f0 Mon Sep 17 00:00:00 2001 From: Duncan McGreggor <oubiwann@gmail.com> Date: Tue, 4 Jul 2023 16:03:27 -0500 Subject: [PATCH] Added support for hex.pm docs. --- Makefile | 8 ++++++++ priv/html/docs-redirect.html | 12 ++++++++++++ src/lxml.app.src | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 priv/html/docs-redirect.html diff --git a/Makefile b/Makefile index a2f361a..10dabbd 100644 --- a/Makefile +++ b/Makefile @@ -91,3 +91,11 @@ publish-docs: docs setup-temp-repo @make teardown-temp-repo .PHONY: docs + +hex-publish: + @echo "\nPublishing to hex.pm ...\n" + rm -rf doc + mkdir doc + cp priv/html/docs-redirect.html doc/index.html + rebar3 hex publish + rm -rf doc diff --git a/priv/html/docs-redirect.html b/priv/html/docs-redirect.html new file mode 100644 index 0000000..457dd51 --- /dev/null +++ b/priv/html/docs-redirect.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html> + +<head> + <meta http-equiv="refresh" content="0; url='http://lfex.github.io/lxml/current/user-guide'" /> +</head> + +<body> + <p>Redirecting to main project docs ...</p> +</body> + +</html> diff --git a/src/lxml.app.src b/src/lxml.app.src index f75f359..d2a8823 100644 --- a/src/lxml.app.src +++ b/src/lxml.app.src @@ -43,5 +43,5 @@ {"GitHub", "https://github.com/lfex/lxml"}, {"Hex", "https://hex.pm/packages/lxml"} ]}, - {exclude_files, ["priv/images/*"]} + {exclude_files, ["priv/images/*", "priv/html/*"]} ]}.