aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md5
-rw-r--r--scripts/maintainers.py7
2 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index 2046cf1..365d12a 100644
--- a/README.md
+++ b/README.md
@@ -113,7 +113,4 @@ The maintainers in the `maintainers.yml` file are listed in the following format
> **Note**: Please do not edit the `README.md` file directly. Instead, edit the `maintainers.yml` file and run the `commit.sh` script to generate the `README.md` file.
-<!-- maintainers --> - [Bobby](luciferreeves) - [https://thatcomputerscientist.com](https://thatcomputerscientist.com) ![Bobby](https://github.com/luciferreeves.png?size=40)
-- [Bobby](luciferreeves) - [https://thatcomputerscientist.com](https://thatcomputerscientist.com)
-
-![Bobby](https://github.com/luciferreeves.png?size=40) \ No newline at end of file
+<!-- maintainers --> - [Bobby](luciferreeves) - [https://thatcomputerscientist.com](https://thatcomputerscientist.com) ![Bobby](https://github.com/luciferreeves.png?size=40) \ No newline at end of file
diff --git a/scripts/maintainers.py b/scripts/maintainers.py
index b4111b2..2ab3b0f 100644
--- a/scripts/maintainers.py
+++ b/scripts/maintainers.py
@@ -36,8 +36,11 @@ def main():
image_url = "https://github.com/{}.png?size=40".format(maintainer['github'])
maintainer_images += "![{}]({}) ".format(maintainer['name'], image_url)
- # Replace "<!-- maintainers -->" in the README.md file
- readme = readme.replace("<!-- maintainers -->", "<!-- maintainers -->\r" + maintainers_list + "\r" + maintainer_images)
+ # Remove everything below "<!-- maintainers -->" in the README.md file
+ readme = readme.split("<!-- maintainers -->")[0]
+
+ # Add the list of maintainers to the README.md file
+ readme += "<!-- maintainers -->\r" + maintainers_list + "\r" + maintainer_images
# Save the README.md file
with open('README.md', 'w') as f: