Skip to content

Commit 0aca43b

Browse files
committed
docs: few changes for action.
1 parent 3360e92 commit 0aca43b

9 files changed

Lines changed: 6 additions & 0 deletions

File tree

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

scripts/split_reference.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"13.": "13-interop.md",
2222
"14.": "14-unit-testing-framework.md",
2323
"15.": "15-diagnostics.md",
24+
"16.": "16-misra-rules.md",
2425
}
2526

2627
WEIGHTS = {
@@ -157,6 +158,11 @@ def process_file(filename):
157158

158159
out_path = os.path.join(TARGET_DIR, out_name)
159160

161+
# Skip if the file already exists — manual edits in reference/ take priority
162+
if os.path.exists(out_path):
163+
print(f" Skipping {out_name} — already exists, keeping manual edits")
164+
continue
165+
160166
# Combine parts for grouped files (like 12-advanced)
161167
combined_body = ""
162168
main_title = parts[0][0] # use first title as main title for now

0 commit comments

Comments
 (0)