We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52d1d1e commit 4769adcCopy full SHA for 4769adc
docs/scripts/post-render.py
@@ -1,8 +1,17 @@
1
-with open("reference/Actions.html", "r") as file:
+import os
2
+
3
+# Print the working directory
4
+print("Current working directory:", os.getcwd())
5
6
+# Get a list of all files in the current directory
7
+files = os.listdir("reference")
8
+print("Files in 'reference' directory:", files)
9
10
+with open("docs/reference/Actions.html", "r") as file:
11
content = file.readlines()
12
13
# Replace `<h1>Actions</h1>` with `<h1><code>Actions</code></h1>`
14
content = [line.replace("<h1>Actions</h1>", "<h1><code>Actions</code></h1>") for line in content]
15
-with open("reference/Actions.html", "w") as file:
16
+with open("docs/reference/Actions.html", "w") as file:
17
file.writelines(content)
0 commit comments