Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
fix pypi images
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Feb 2, 2021
1 parent 30a5a66 commit 101f560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flash/setup_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def _load_readme_description(path_dir: str, homepage: str = __homepage__, ver: s
github_source_url = os.path.join(homepage, "raw", ver)
# replace relative repository path to absolute link to the release
# do not replace all "docs" as in the readme we reger some other sources with particular path to docs
text = text.replace("docs/source/_images/", f"{os.path.join(github_source_url, 'docs/source/_images/')}")
text = text.replace("docs/source/_static/images/", f"{os.path.join(github_source_url, 'docs/source/_static/images/')}")

# readthedocs badge
text = text.replace('badge/?version=stable', f'badge/?version={ver}')
Expand Down

0 comments on commit 101f560

Please sign in to comment.