mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Fix links to outdated 'master' in RTD.
ReadTheDocs hosts master (dev branch) docs under /latest. (Old /master was not building regularly.)
This commit is contained in:
2
setup.py
2
setup.py
@@ -12,7 +12,7 @@ def long_description_from_readme(rst):
|
||||
# In release branches, freeze some external links to refer to this X.Y version:
|
||||
if not "dev" in __version__:
|
||||
rst = re.sub(r'branch=master', 'branch=v' + __minor_version__, rst) # Travis build status
|
||||
rst = re.sub(r'/master', '/v' + __minor_version__, rst) # ReadTheDocs
|
||||
rst = re.sub(r'/latest', '/v' + __minor_version__, rst) # ReadTheDocs
|
||||
return rst
|
||||
|
||||
with open('README.rst') as f:
|
||||
|
||||
Reference in New Issue
Block a user