Skip to content

Commit 1a42c54

Browse files
committed
update imat
1 parent 16b3ac4 commit 1a42c54

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+68
-67
lines changed

code/plugins/reformat_plugin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ def reformat_plugin_dir(plugin_input_dir, plugin_name, order, plugin_type='wiki'
3232
for file in files:
3333
if file.endswith('.jpg') or file.endswith('.png'):
3434
shutil.copyfile(os.path.join(root, file), os.path.join(plugin_output_dir, file))
35+
# if plugin is 'imat', copy the Docs directory recursively to the output directory
36+
if plugin_name == 'imat':
37+
shutil.copytree(os.path.join(plugin_input_dir, 'Docs'), os.path.join(plugin_output_dir, 'Docs'), dirs_exist_ok=True)
3538

3639
index_file = os.path.join(plugin_output_dir, 'index.md')
3740
shutil.copyfile(os.path.join(plugin_input_dir, 'README.md'), index_file)
1.25 MB
Binary file not shown.
File renamed without changes.

0 commit comments

Comments
 (0)