mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-07-31 22:04:31 +00:00
Add docs (#13)
This commit is contained in:
14
docs/scripts/move_404.py
Normal file
14
docs/scripts/move_404.py
Normal 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)
|
Reference in New Issue
Block a user