mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-07-31 05:44:31 +00:00
Update docs (#552)
This commit is contained in:
15
docs/_scripts/move_404.py
Normal file
15
docs/_scripts/move_404.py
Normal 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)
|
Reference in New Issue
Block a user