web UI rewrite, switch to ndjson.zst index format

This commit is contained in:
2021-09-05 09:49:07 -04:00
parent 391d8ed9d9
commit f4e1d90a6b
133 changed files with 34220 additions and 4988 deletions

View File

@@ -17,11 +17,18 @@ def copy_files(files):
def sist2(*args):
print("./sist2 " + " ".join(args))
print("./sist2_debug " + " ".join(args))
return subprocess.check_output(
args=["./sist2", *args],
)
args = list(args)
args.append("--fast-epub")
# args.append("--very-verbose")
try:
return subprocess.check_output(
args=["./sist2_debug", *args],
)
except Exception as e:
print(e)
def sist2_index(files, *args):
@@ -44,9 +51,7 @@ def sist2_incremental_index(files, func=None, *args):
def sist2_index_to_dict(index):
res = subprocess.check_output(
args=["./sist2", "index", "--print", index],
)
res = sist2("index", "--print", index)
for line in res.splitlines():
if line: