72ebc5e103
✨ Features: - Add comprehensive metadata system with YAML/JSON support - Implement hierarchical metadata inheritance from parent folders - Support plot-specific metadata overrides - Add metadata caching for performance optimization 🗂️ Code Organization: - Move Python orchestration code to orchestration/ folder - Move validation utilities to tests/ folder - Move documentation to docs/ folder - Separate metadata functionality into dedicated module 🔧 Infrastructure: - Add automatic asset copying to web directory - Fix asset path resolution for nested directories - Update template to use dynamic asset paths - Add MetadataConfig class with inheritance options 📚 Documentation: - Add comprehensive metadata usage guide (METADATA_USAGE.md) - Add implementation documentation (METADATA_IMPLEMENTATION.md) - Include example metadata files in examples/ - Add metadata validation utility script 🐛 Bug Fixes: - Fix breadcrumb navigation and JavaScript functionality - Resolve asset path issues in nested directories - Update template imports for modular CSS/JS structure This commit introduces a flexible metadata system that allows users to add rich metadata to plots and folders using YAML or JSON files, with full hierarchical inheritance and plot-specific overrides. The project structure is now better organized with clear separation of concerns.
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
# Gallery Configuration
|
|
# ===================
|
|
|
|
# Paths Configuration
|
|
paths:
|
|
# Working directory where the script runs from
|
|
work_dir: "/work/kschmidt/web"
|
|
|
|
# Web hosting directory where gallery files are served
|
|
web_folder: "/web/kschmidt/public_html/"
|
|
|
|
# CGI script path (relative to web folder)
|
|
cgi_script: "cgi-bin/refresh_gallery.py"
|
|
|
|
# Config file path for CGI scripts
|
|
config_path: "/work/kschmidt/web"
|
|
|
|
# Gallery Settings
|
|
gallery:
|
|
# Root folder name for plots in web directory
|
|
plot_root: "gallery"
|
|
|
|
# PNG conversion quality
|
|
png_dpi: 400
|
|
|
|
# Backup folder (leave empty to disable)
|
|
backup_folder: ""
|
|
|
|
# UI Settings
|
|
ui:
|
|
# Maximum number of recent plots to track
|
|
max_recent_plots: 20
|
|
|
|
# Search settings
|
|
search_debounce_ms: 300
|
|
|
|
# Metadata Settings
|
|
metadata:
|
|
# Enable metadata caching
|
|
cache_enabled: true
|
|
|
|
# Inherit metadata from parent folders
|
|
inherit_from_parent: true
|
|
|
|
# Data Sources
|
|
# Each source represents a collection of plots to include in the gallery
|
|
sources:
|
|
- name: "ttbar_analysis"
|
|
path: "/work/kschmidt/NEEDLE/test_analysis/data/cf_store/test_analysis/cf.PlotVariables1D/run2_2016_nano_v9/"
|