danschultzer / premailex

Preflight for your HTML emails - inline styling and plain text.
MIT License
172 stars 20 forks source link

Fix hexdocs link #59

Closed mbuhot closed 4 years ago

mbuhot commented 4 years ago

I'm getting 404s trying to access the docs from the hex package page (https://hexdocs.pm/premailex/0.3.12/README.html).

I think it is caused by the redirect to README.html (all caps) in from the generated index.html page:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Premailex v0.3.12 — Documentation</title>
    <meta http-equiv="refresh" content="0; url=README.html">
    <meta name="generator" content="ExDoc v0.22.6">
  <script async defer data-domain="hexdocs.pm" src="https://stats.hexdocs.pm/js/index.js"></script></head>
  <body></body>
</html>

When the docs are generated, the file is lowercase readme.html. I can only assume hexdocs.pm is case sensitive, since a request to https://hexdocs.pm/premailex/0.3.12/readme.html works.

This PR changes the main entry in the mix.exs to a lowercase readme, which produces this index page:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Premailex v0.3.12 — Documentation</title>
    <meta http-equiv="refresh" content="0; url=readme.html">
    <meta name="generator" content="ExDoc v0.22.6">
  </head>
  <body></body>
</html>
danschultzer commented 4 years ago

Great catch, thanks! Worked in local as the filename is case insensitive 🤦