Skip to content

Commit bdb88e1

Browse files
[TUTORIAL DEPENDENCY REMOVAL] Add cuda_ctc_decoder_tutorial to sphinx ignore regexp (#4026)
Co-authored-by: Sam Anklesaria <[email protected]>
1 parent ea7855b commit bdb88e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/source/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,13 @@ def _get_pattern():
121121
}
122122

123123
ret = {"filename_pattern": "tutorial.py"}
124+
no_build = r"/examples/tutorials/asr_inference_with_cuda_ctc_decoder_tutorial.py"
124125
if os.getenv("GALLERY_PATTERN"):
125126
# See https://github.com/pytorch/tutorials/blob/cbf2238df0e78d84c15bd94288966d2f4b2e83ae/conf.py#L75-L83
126-
ret["ignore_pattern"] = r"/(?!" + re.escape(os.getenv("GALLERY_PATTERN")) + r")[^/]+$"
127+
ret["ignore_pattern"] = r"(/(?!" + re.escape(os.getenv("GALLERY_PATTERN")) + r")[^/]+$)"
128+
ret["ignore_pattern"] += "|(" + no_build + ")"
129+
else:
130+
ret["ignore_pattern"] = no_build
127131
return ret
128132

129133

0 commit comments

Comments
 (0)