Add docs (#13)

This commit is contained in:
Manuel Goulão
2022-09-13 20:27:34 +01:00
committed by GitHub
parent b48e1626fd
commit 91769fc862
351 changed files with 13137 additions and 6 deletions

14
docs/scripts/move_404.py Normal file
View File

@@ -0,0 +1,14 @@
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)