Skip to content

Commit

Permalink
update for image rendering (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorfturner authored Feb 10, 2023
1 parent 5a59a45 commit f4a33e1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
![GitHub](https://img.shields.io/github/license/CapitalOne/DataProfiler)
![GitHub last commit](https://img.shields.io/github/last-commit/CapitalOne/DataProfiler)

<p align="left">
<p text-align="left">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/capitalone/DataProfiler/blob/gh-pages/docs/source/_static/images/DataProfilerDarkLogoLong.png">
<source media="(prefers-color-scheme: light)" srcset="https://github.com/capitalone/DataProfiler/blob/gh-pages/docs/source/_static/images/DataProfilerLogoLightThemeLong.png">
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/capitalone/DataProfiler/raw/gh-pages/docs/source/_static/images/DataProfilerDarkLogoLong.png">
<source media="(prefers-color-scheme: light)" srcset="https://github.com/capitalone/DataProfiler/raw/gh-pages/docs/source/_static/images/DataProfilerLogoLightThemeLong.png">
<img alt="Shows a black logo in light color mode and a white one in dark color mode." src="https://user-images.githubusercontent.com/25423296/163456779-a8556205-d0a5-45e2-ac17-42d089e3c3f8.png">
</picture>
</p>
Expand Down
13 changes: 12 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,18 @@

# Get the long description from the README file
with open(path.join(here, "README.md"), encoding="utf-8") as f:
LONG_DESCRIPTION = f.read()
tag_to_replace = ""
tag_found = False
LONG_DESCRIPTION = ""

for line in f:
LONG_DESCRIPTION += line
if '<p text-align="left">' in line or tag_found:
tag_found = True
tag_to_replace += line
if "</p>" in line and tag_found:
tag_found = False
LONG_DESCRIPTION = LONG_DESCRIPTION.replace(tag_to_replace, "")

# Get the install_requirements from requirements.txt
with open(path.join(here, "requirements.txt"), encoding="utf-8") as f:
Expand Down

0 comments on commit f4a33e1

Please sign in to comment.