2
0
mirror of https://github.com/LonamiWebs/Telethon synced 2025-08-23 18:37:42 +00:00
telethon/tools/docgen.py

19 lines
321 B
Python
Raw Normal View History

"""
Run `sphinx-build` to create HTML documentation and detect errors.
"""
import subprocess
import sys
def run(*args: str) -> int:
return subprocess.run((sys.executable, "-m", *args)).returncode
def main() -> None:
2023-10-12 19:31:41 +02:00
exit(run("sphinx", "-n", "client/doc", "dist-doc"))
if __name__ == "__main__":
main()