aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-11-05 03:20:37 -0400
committerBobby <[email protected]>2022-11-05 03:20:37 -0400
commit43823882c7ae18b19b03134fb57862a8df0ca8a1 (patch)
treecbdc328be2788c264628ae5168224243fe399993
parent880bf33c0a3a69918bb1fadd5969d6ac5a2c0ba0 (diff)
downloadtexty-43823882c7ae18b19b03134fb57862a8df0ca8a1.tar.xz
texty-43823882c7ae18b19b03134fb57862a8df0ca8a1.zip
revert: revert and fix maintainer script
-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: