Update docs (#552)

This commit is contained in:
Manuel Goulão
2023-06-12 11:20:44 +01:00
committed by GitHub
parent e66ff46e54
commit 2b1772fac9
15 changed files with 18 additions and 49 deletions

15
docs/_scripts/move_404.py Normal file
View File

@@ -0,0 +1,15 @@
import sys
if __name__ == "__main__":
if len(sys.argv) < 2:
print("Provide a path")
filePath = sys.argv[1]
with open(filePath, "r+") as fp:
content = fp.read()
content = content.replace('href="../', 'href="/').replace('src="../', 'src="/')
fp.seek(0)
fp.truncate()
fp.write(content)