You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add auto_generate_from for generic YAML-to-dropdown conversion
Add generic auto-generation of dropdown menus from arbitrary YAML structures.
Features:
- New 'auto_generate_from' field in dropdown config
- Specify file path and optional key to navigate YAML
- Special keys: 'fallback' or 'url' for clickable parent items
- String values automatically become submenu items
- Nested dicts are flattened (no intermediate menu levels)
- Works with any YAML structure, not just POG docs
Example usage:
dropdowns:
- title: "Docs"
auto_generate_from:
file: "path/to/data.yml"
key: "pog_docs" # Optional: navigate to key
links:
- text: "Manual link"
url: "https://..."
# Auto-generated links appended
Benefits:
- Single source of truth in YAML
- Automatic nested menu generation
- Generic - works with any YAML structure
- No code duplication
0 commit comments