-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpatch_docs.py
More file actions
23 lines (19 loc) · 764 Bytes
/
patch_docs.py
File metadata and controls
23 lines (19 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import os
for path in [
"src/codomyrmex/documentation/docs/modules/llm/mcp_tool_specification.md",
"src/codomyrmex/documentation/docs/modules/data_visualization/usage_examples.md",
"src/codomyrmex/llm/README.md",
"src/codomyrmex/llm/MCP_TOOL_SPECIFICATION.md",
"src/codomyrmex/llm/ollama/AGENTS.md",
"src/codomyrmex/data_visualization/USAGE_EXAMPLES.md",
]:
if os.path.exists(path):
with open(path) as f:
content = f.read()
# for plot_outputs/ -> plot_output/
content = content.replace("plot_outputs/", "plot_output/")
# for outputs/ -> output/
content = content.replace("outputs/", "output/")
with open(path, "w") as f:
f.write(content)
print("Updated docs")