1
0
mirror of https://github.com/nlohmann/json synced 2024-12-04 09:10:05 +00:00
nlohmannjson/doc/mkdocs/docs/hooks.py

11 lines
334 B
Python
Raw Normal View History

2020-05-24 11:03:04 +00:00
import shutil
import os.path
def copy_doxygen(*args, **kwargs):
2020-07-27 12:07:13 +00:00
doxygen_dir = os.path.join(kwargs['config']['site_dir'], 'doxygen')
if not os.path.isdir(doxygen_dir) or not os.listdir(doxygen_dir):
print('Copy Doxygen files...')
shutil.copytree('../html', doxygen_dir)
print('Copy Doxygen complete')