mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-23 04:33:11 +00:00
create robots.txt in output dir
This commit is contained in:
parent
451cea47e6
commit
8a23358fc8
1 changed files with 3 additions and 0 deletions
|
@ -72,6 +72,9 @@ def write_html_links_index(out_dir, links):
|
|||
|
||||
copy_tree(os.path.join(TEMPLATES_DIR, 'static'), os.path.join(out_dir, 'static'))
|
||||
|
||||
with open(os.path.join(out_dir, 'robots.txt'), 'w+') as f:
|
||||
f.write('User-agent: *\nDisallow: /')
|
||||
|
||||
with open(os.path.join(TEMPLATES_DIR, 'index.html'), 'r', encoding='utf-8') as f:
|
||||
index_html = f.read()
|
||||
|
||||
|
|
Loading…
Reference in a new issue