mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-12-01 05:43:45 +03:00
e4d88e061d
Python is likely to be installed when working on Python code, which should make it more portable and consistent.
18 lines
321 B
Python
18 lines
321 B
Python
"""
|
|
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:
|
|
exit(run("sphinx", "-nW", "client/doc", "dist-doc"))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|