Remove features that were not working: Metadata, export button and reloading the website from the website itself

This commit is contained in:
Kylian Schmidt
2025-07-22 12:37:33 +02:00
parent 6eeacdc9b7
commit dced82a56f
5 changed files with 3 additions and 71 deletions
+1 -12
View File
@@ -328,8 +328,6 @@ def main(clean_first: bool = False) -> None:
else:
print(f"Warning: Assets directory {assets_src} not found")
plot_metadata_cache = {}
for source in CONFIG.sources:
source_path = Path(source.path)
@@ -359,21 +357,12 @@ def main(clean_first: bool = False) -> None:
else:
print(f"Skipping {source_png_path.name} (up to date)")
# Resolve metadata for this single plot
plot_metadata = resolve_metadata_for_plot(source_path, {})
plot_metadata_cache[source_path.stem] = plot_metadata
items = [{
"name": source_path.stem,
"pdf_href": pdf_name,
"png_href": png_name,
"metadata": plot_metadata
"png_href": png_name
}]
# Save metadata cache for this directory
plot_cache = {source_path.stem: plot_metadata}
save_metadata_cache(source_web_dir, plot_cache)
# Calculate statistics for single file
current_stats = calculate_directory_stats(source_web_dir)
stats = {