Skip to content

Commit b9dac0b

Browse files
authored
[py] Fix API doc generation script and include BiDi Emulation docs (#16037)
1 parent b98063c commit b9dac0b

File tree

2 files changed

+3
-25
lines changed

2 files changed

+3
-25
lines changed

py/docs/source/api.rst

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -49,34 +49,10 @@ webdriver.common
4949
:toctree: selenium_webdriver_common
5050

5151
selenium.webdriver.common.action_chains
52-
selenium.webdriver.common.actions.action_builder
53-
selenium.webdriver.common.actions.input_device
54-
selenium.webdriver.common.actions.interaction
55-
selenium.webdriver.common.actions.key_actions
56-
selenium.webdriver.common.actions.key_input
57-
selenium.webdriver.common.actions.mouse_button
58-
selenium.webdriver.common.actions.pointer_actions
59-
selenium.webdriver.common.actions.pointer_input
60-
selenium.webdriver.common.actions.wheel_actions
61-
selenium.webdriver.common.actions.wheel_input
6252
selenium.webdriver.common.alert
63-
selenium.webdriver.common.bidi.browser
64-
selenium.webdriver.common.bidi.browsing_context
65-
selenium.webdriver.common.bidi.cdp
66-
selenium.webdriver.common.bidi.common
67-
selenium.webdriver.common.bidi.console
68-
selenium.webdriver.common.bidi.log
69-
selenium.webdriver.common.bidi.network
70-
selenium.webdriver.common.bidi.permissions
71-
selenium.webdriver.common.bidi.script
72-
selenium.webdriver.common.bidi.session
73-
selenium.webdriver.common.bidi.storage
74-
selenium.webdriver.common.bidi.webextension
7553
selenium.webdriver.common.by
7654
selenium.webdriver.common.desired_capabilities
7755
selenium.webdriver.common.driver_finder
78-
selenium.webdriver.common.fedcm.account
79-
selenium.webdriver.common.fedcm.dialog
8056
selenium.webdriver.common.keys
8157
selenium.webdriver.common.log
8258
selenium.webdriver.common.options
@@ -119,6 +95,7 @@ webdriver.common.bidi
11995
selenium.webdriver.common.bidi.cdp
12096
selenium.webdriver.common.bidi.common
12197
selenium.webdriver.common.bidi.console
98+
selenium.webdriver.common.bidi.emulation
12299
selenium.webdriver.common.bidi.log
123100
selenium.webdriver.common.bidi.network
124101
selenium.webdriver.common.bidi.permissions

py/generate_api_module_listing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ def find_modules(package_name):
8282
)
8383
for module in modules:
8484
if base_module in module:
85-
f.write(f" {module}\n")
85+
if len(module.split(".")) - len(base_module.split(".")) == 1:
86+
f.write(f" {module}\n")
8687
f.write(
8788
"""
8889
Indices and tables

0 commit comments

Comments
 (0)