* Add profiler to document build scripts * Add script name * Use system doxygen and try to understand the build of each cmake target * Revert doxygen * Try to speed up documentation build * Try to cache results * Added cache for sphinx * Remove profilers * Fix install dependencies * Restored config options * Added ccache * Cache python and update sphinx * Update packaging * Revert sphinx upgrade * Don't need to clone recursive * Revert "Don't need to clone recursive" This reverts commit7a2043df7b. * Change cache apt action * Updated ccache calls * Don't use recursice init * Update sphinx to 4.5 * Fixed indent * Disable all custom code in theme * Remove quite mode * Revert "Disable all custom code in theme" This reverts commit096ca2f329. * Removed dependency on python * Disable code analyse * Disable common functions * Revert edit page * Minimize the number of cycles for li * Fixed is none * Try to fix build * Disable sidebar * Revert "Disable sidebar" This reverts commit64303ee94f. * Return raw html * Removed private information * Avoid generation multiple artifacts * Added additional step to collect ccache * Small change * Fixed typo * Added comments
25 lines
469 B
Python
25 lines
469 B
Python
# Copyright (C) 2018-2022 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
import os
|
|
import shutil
|
|
|
|
def remove_xml_dir(path):
|
|
"""
|
|
Remove doxygen xml folder
|
|
"""
|
|
if os.path.exists(path):
|
|
shutil.rmtree(path, ignore_errors=True)
|
|
|
|
|
|
def main():
|
|
import argparse
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument('xml_dir')
|
|
args = parser.parse_args()
|
|
remove_xml_dir(args.xml_dir)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|