Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooo-create committed Oct 19, 2023
1 parent 8f150ef commit 6d0567d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci_scripts/check_api_label_cn.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ def pipline(rootdir, files):
sys.exit(1)
valid_api_labels = find_all_api_labels_in_dir(rootdir)
for file in files:
if not file.endswith('.rst'):
continue
with open(Path(rootdir) / file, 'r', encoding='utf-8') as f:
pattern = f.read()
matches = re.findall(r":ref:`([^`]+)`", pattern)
Expand Down

0 comments on commit 6d0567d

Please sign in to comment.