Skip to content

Commit d8caae6

Browse files
committed
[py] Skip devtools in API docs
1 parent 21b10ad commit d8caae6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

py/docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The `selenium` package is used to automate web browser interaction from Python.
2323
| **API Docs**: | `api.html <api.html>`_ |
2424
+-------------------+------------------------------------------------+
2525

26-
Updated documentation published with each commit is available at: https://selenium-python-api-docs.readthedocs.io
26+
Updated documentation published with each commit is available at: `readthedocs.io <https://selenium-python-api-docs.readthedocs.io/en/latest>`_
2727

2828
----
2929

py/generate_api_module_listing.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18+
1819
# -----------------------------------------------------------------
1920
# This script recursively scans the `selenium` package directory
2021
# to find all modules, then generates the `py/docs/source/api.rst`
@@ -47,8 +48,8 @@ def find_modules(package_name):
4748
package_name = "selenium"
4849
output_file = os.path.join("docs", "source", "api.rst")
4950
print(f"generating module list for sphinx autodoc in: {output_file}\n")
50-
modules = find_modules(package_name)
51-
base_modules = [mod for mod in sorted(set(module.rsplit(".", 1)[0] for module in modules)) if mod != package_name]
51+
modules = [module for module in find_modules(package_name) if ".devtools." not in module]
52+
base_modules = [mod for mod in sorted({module.rsplit(".", 1)[0] for module in modules}) if mod != package_name]
5253
print("found sections:")
5354
for base_module in base_modules:
5455
print(f" {base_module}")

0 commit comments

Comments
 (0)