MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / generate_docs

Function generate_docs

py/generate.py:953–965  ·  view source on GitHub ↗

Generate Sphinx documents for each domain.

(docs_path, domains)

Source from the content-addressed store, hash-verified

951
952
953def generate_docs(docs_path, domains):
954 """Generate Sphinx documents for each domain."""
955 logger.info("Generating Sphinx documents")
956
957 # Remove generated documents
958 for subpath in docs_path.iterdir():
959 subpath.unlink()
960
961 # Generate document for each domain
962 for domain in domains:
963 doc = docs_path / f"{domain.module}.rst"
964 with doc.open("w") as f:
965 f.write(domain.generate_sphinx())
966
967
968def main(browser_protocol_path, js_protocol_path, output_path):

Callers

nothing calls this directly

Calls 4

openMethod · 0.80
generate_sphinxMethod · 0.80
infoMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected