somewhat fix meta

h
This commit is contained in:
taskylizard 2023-10-31 20:42:36 +05:30
parent d3d5858b13
commit 2b65bc9332
No known key found for this signature in database
GPG key ID: 5CABA3D642DDC497
7 changed files with 42 additions and 47 deletions

2
.github/replace.py vendored
View file

@ -6,7 +6,7 @@ def replaces_for_beginners_guide(text):
text = re.sub('\[TOC\]\n', '', text, flags=re.MULTILINE)
text = re.sub('\*\*Table of Contents\*\*\n\[TOC2\]\n', '', text, flags=re.MULTILINE)
text = re.sub('# -> \*\*\*Beginners Guide to Piracy\*\*\* <-\n', '', text, flags=re.MULTILINE)
text = re.sub(r"!!!note\s(.+?)\n", r":::tip\n\1\n:::\n", text, flags=re.MULTILINE)
text = re.sub(r"!!!note\s(.+?)\n", r":::info\n\1\n:::\n", text, flags=re.MULTILINE)
text = re.sub(r"!!!info\s(.+?)\n", r":::info\n\1\n:::\n", text, flags=re.MULTILINE)
text = re.sub(r"!!!warning\s(.+?)\n", r":::warning\n\1\n:::\n", text, flags=re.MULTILINE)
text = re.sub(r">\s(.+?)\n", r"> \1\n\n", text, flags=re.MULTILINE)

3
.github/script.sh vendored
View file

@ -1,5 +1,6 @@
python .github/add-headers.py
for file in *; do
[[ -f "$file" ]] && mv "$file" "${file,,}" 2>/dev/null
done
python .github/replace.py
# python .github/add-headers.py