Skip to content

Commit

Permalink
Added support for hex.pm docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
oubiwann committed Jul 4, 2023
1 parent b61ee90 commit 1581bff
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 12 additions & 0 deletions priv/html/docs-redirect.html
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 1 addition & 1 deletion src/lxml.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -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/*"]}
]}.

0 comments on commit 1581bff

Please sign in to comment.