Skip to content

Commit 2fcd649

Browse files
authored
Only hide private '_name' oneofs. (#77)
1 parent 64db18a commit 2fcd649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/build_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def gen_api_docs():
226226
old_content = fpath.read_text()
227227
new_content = old_content
228228
new_content = re.sub(r"\.\. _oneof:.*?\n", "", new_content)
229-
new_content = re.sub(r"`oneof`_.*?\n", "", new_content)
229+
new_content = re.sub(r".*?`oneof`_ ``_.*?\n", "", new_content, re.MULTILINE)
230230
new_content = re.sub(r"\.\. code-block:: python.*?\n", "", new_content)
231231

232232
new_content = re.sub(

0 commit comments

Comments
 (0)