From 42b0c804659006a227a7215f97826e326687c399 Mon Sep 17 00:00:00 2001 From: Cristian Date: Fri, 31 Jul 2020 13:51:32 -0500 Subject: [PATCH] feat: Add singlefile to link_details --- archivebox/extractors/singlefile.py | 1 - archivebox/index/schema.py | 1 + archivebox/themes/legacy/link_details.html | 13 +++++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/archivebox/extractors/singlefile.py b/archivebox/extractors/singlefile.py index 4fa3cf2e..196765d8 100644 --- a/archivebox/extractors/singlefile.py +++ b/archivebox/extractors/singlefile.py @@ -1,6 +1,5 @@ __package__ = 'archivebox.extractors' -import os from pathlib import Path from typing import Optional diff --git a/archivebox/index/schema.py b/archivebox/index/schema.py index 8285e412..cf162f6b 100644 --- a/archivebox/index/schema.py +++ b/archivebox/index/schema.py @@ -406,6 +406,7 @@ class Link: 'google_favicon_path': 'https://www.google.com/s2/favicons?domain={}'.format(self.domain), 'wget_path': wget_output_path(self), 'warc_path': 'warc', + 'singlefile_path': 'single-file.html', 'pdf_path': 'output.pdf', 'screenshot_path': 'screenshot.png', 'dom_path': 'output.html', diff --git a/archivebox/themes/legacy/link_details.html b/archivebox/themes/legacy/link_details.html index c5173470..405d933c 100644 --- a/archivebox/themes/legacy/link_details.html +++ b/archivebox/themes/legacy/link_details.html @@ -79,6 +79,7 @@ .card { overflow: hidden; box-shadow: 2px 3px 14px 0px rgba(0,0,0,0.02); + margin-top: 10px; } .card h4 { font-size: 1.4vw; @@ -335,6 +336,18 @@ +
+
+ +
+ + + +

SingleFile

+

archive/single-file.html

+
+
+