Skip to content

Commit

Permalink
Merge pull request #77 from AI4WA/publish/pypi
Browse files Browse the repository at this point in the history
auto update image
  • Loading branch information
PascalSun authored Jun 3, 2024
2 parents 04bf457 + ebe1ecb commit 9e689aa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from setuptools import find_packages, setup
import re


def read_requirements():
Expand All @@ -10,6 +11,15 @@ def read_requirements():

with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
# then for all images inside the markdown
# add the url https://github.com/AI4WA/Docs2KG/blob/main to the image path
images = re.findall(r"!\[.*\]\((.*)\)", long_description)
for image in images:
long_description = long_description.replace(
image, "https://github.com/AI4WA/Docs2KG/blob/main/" + image
)
# then for all links inside the markdown


setup(
name="Docs2KG",
Expand Down

0 comments on commit 9e689aa

Please sign in to comment.