diff --git a/archivebox/config.py b/archivebox/config.py index 985bc409..9c9cd795 100644 --- a/archivebox/config.py +++ b/archivebox/config.py @@ -48,18 +48,21 @@ CHROME_BINARY = os.getenv('CHROME_BINARY', None) REPO_DIR = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) OUTPUT_DIR = os.path.abspath(os.getenv('OUTPUT_DIR', os.path.join(REPO_DIR, 'output'))) -ARCHIVE_DIR = os.path.join(OUTPUT_DIR, 'archive') -SOURCES_DIR = os.path.join(OUTPUT_DIR, 'sources') - -PYTHON_PATH = os.path.join(REPO_DIR, 'archivebox') -TEMPLATES_DIR = os.path.join(PYTHON_PATH, 'templates') # ****************************************************************************** # ********************** Do not edit below this point ************************** # ****************************************************************************** -CHROME_SANDBOX = os.getenv('CHROME_SANDBOX', 'True' ).lower() == 'true' +ARCHIVE_DIR_NAME = 'archive' +SOURCES_DIR_NAME = 'sources' +ARCHIVE_DIR = os.path.join(OUTPUT_DIR, ARCHIVE_DIR_NAME) +SOURCES_DIR = os.path.join(OUTPUT_DIR, SOURCES_DIR_NAME) +PYTHON_PATH = os.path.join(REPO_DIR, 'archivebox') +TEMPLATES_DIR = os.path.join(PYTHON_PATH, 'templates') + + +CHROME_SANDBOX = os.getenv('CHROME_SANDBOX', 'True').lower() == 'true' USE_CHROME = FETCH_PDF or FETCH_SCREENSHOT or FETCH_DOM USE_WGET = FETCH_WGET or FETCH_WGET_REQUISITES or FETCH_WARC diff --git a/archivebox/index.py b/archivebox/index.py index 9cb0f689..9126919c 100644 --- a/archivebox/index.py +++ b/archivebox/index.py @@ -164,7 +164,7 @@ def parse_json_link_index(out_dir): def write_html_link_index(out_dir, link): check_link_structure(link) - with open(os.path.join(TEMPLATES_DIR, 'link_index_fancy.html'), 'r', encoding='utf-8') as f: + with open(os.path.join(TEMPLATES_DIR, 'link_index.html'), 'r', encoding='utf-8') as f: link_html = f.read() path = os.path.join(out_dir, 'index.html') diff --git a/archivebox/templates/index_row.html b/archivebox/templates/index_row.html index 3458f945..a6e7da2b 100644 --- a/archivebox/templates/index_row.html +++ b/archivebox/templates/index_row.html @@ -1,16 +1,16 @@