Improved the folder-copy function
This commit is contained in:
parent
1488f59d8f
commit
7cb462ff82
@ -154,8 +154,10 @@ class AsciiDoc:
|
|||||||
|
|
||||||
self.call(modified_src, dst, '--theme=qute')
|
self.call(modified_src, dst, '--theme=qute')
|
||||||
|
|
||||||
for path in ['icons', 'doc/img']:
|
copy = {'icons':'icons', 'doc/img':'doc/img', 'www/media':'media/'}
|
||||||
shutil.copytree(path, os.path.join(outdir, path))
|
|
||||||
|
for src, dest in copy.items():
|
||||||
|
shutil.copytree(src, os.path.join(outdir, dest))
|
||||||
|
|
||||||
os.symlink('README.html', os.path.join(outdir, 'index.html'))
|
os.symlink('README.html', os.path.join(outdir, 'index.html'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user