2023-01-19 10:33:49 +01:00
|
|
|
#!/usr/bin/python3
|
|
|
|
# SPDX-License-Identifier: LicenseRef-EliasSteurerTachiom OR AGPL-3.0-only
|
2021-05-13 13:05:05 +02:00
|
|
|
import subprocess
|
|
|
|
import os
|
|
|
|
import shutil
|
2022-11-02 12:15:34 +01:00
|
|
|
from sys import stdout
|
2023-01-28 11:02:10 +01:00
|
|
|
import defines
|
2022-11-02 12:15:34 +01:00
|
|
|
|
|
|
|
stdout.reconfigure(encoding='utf-8')
|
2021-05-13 13:05:05 +02:00
|
|
|
|
|
|
|
def main():
|
2023-01-28 11:02:10 +01:00
|
|
|
|
2021-05-13 13:05:05 +02:00
|
|
|
shutil.rmtree('../Docs/html/')
|
|
|
|
os.mkdir('../Docs/html/')
|
2023-01-28 11:02:10 +01:00
|
|
|
|
|
|
|
qt_bin_path = defines.QT_BIN_PATH
|
|
|
|
executable = "qdoc"
|
|
|
|
if os.name == 'nt':
|
|
|
|
executable = "qdoc.exe"
|
|
|
|
executable = qt_bin_path.joinpath(executable)
|
|
|
|
|
|
|
|
process = subprocess.Popen(f"{executable} ../Docs/config.qdocconf", stdout=subprocess.PIPE)
|
2021-05-13 13:05:05 +02:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|