Skip to content

Commit 0d2ab7d

Browse files
committed
Remove unnecessary json file write
1 parent 5aaab20 commit 0d2ab7d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

.ci/generate_operators_doc.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import argparse
22
from pathlib import Path
3-
import json
4-
import os
53

64
from jinja2 import Template
75

@@ -160,10 +158,6 @@ def generate_toc_tree(docs_path):
160158
operators.append({"operator_name": operator_name, "file_name": file_name})
161159
data.append({"category": category, "operators": operators})
162160

163-
# Write the JSON file for debugging purposes
164-
with open(docs_path / "toc_tree.json", "w") as file:
165-
json.dump(data, file, indent=4)
166-
167161
# Render the Jinja2 template
168162
template_path = docs_path / "toc_template.j2"
169163
with open(template_path, "r") as template_file:

0 commit comments

Comments
 (0)