Skip to content

Commit cff2489

Browse files
authored
fix GH release badges (#5040)
* fix GH release badges * rtd
1 parent ef8ef12 commit cff2489

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytorch_lightning/setup_tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,11 @@ def _load_long_description(path_dir: str) -> str:
169169

170170
# readthedocs badge
171171
text = text.replace('badge/?version=stable', f'badge/?version={__version__}')
172+
text = text.replace('pytorch-lightning.readthedocs.io/en/stable/', f'pytorch-lightning.readthedocs.io/en/{__version__}')
172173
# codecov badge
173174
text = text.replace('/branch/master/graph/badge.svg', f'/release/{__version__}/graph/badge.svg')
174175
# replace github badges for release ones
175-
text = text.replace('badge.svg?branch=master&event=push', f'badge.svg?branch={__version__}&event=release')
176+
text = text.replace('badge.svg?branch=master&event=push', f'badge.svg?tag={__version__}')
176177

177178
# # https://github.com/Borda/pytorch-lightning/releases/download/1.1.0a6/codecov_badge.png
178179
# github_release_url = os.path.join(__homepage__, "releases", "download", __version__)

0 commit comments

Comments
 (0)