Skip to content

Commit

Permalink
Only hide private '_name' oneofs. (google-gemini#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkDaoust authored and markmcd committed Oct 30, 2023
1 parent 533883f commit c895252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/build_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def gen_api_docs():
old_content = fpath.read_text()
new_content = old_content
new_content = re.sub(r"\.\. _oneof:.*?\n", "", new_content)
new_content = re.sub(r"`oneof`_.*?\n", "", new_content)
new_content = re.sub(r".*?`oneof`_ ``_.*?\n", "", new_content, re.MULTILINE)
new_content = re.sub(r"\.\. code-block:: python.*?\n", "", new_content)

new_content = re.sub(
Expand Down

0 comments on commit c895252

Please sign in to comment.