"""Generate task pages for the challenge demo gallery.""" import json from pathlib import Path import mkdocs_gen_files # Load task data task_data_file = Path("docs/challenge/task_data.json") with open(task_data_file) as f: data = json.load(f) # Also copy the task_data.json file to the output with mkdocs_gen_files.open("challenge/task_data.json", "w") as fd: json.dump(data, fd, indent=2) # Room display names room_names = { 'kitchen': 'Kitchen', 'living_room': 'Living Room', 'bedroom': 'Bedroom', 'bathroom': 'Bathroom', 'garage': 'Garage', 'garden': 'Garden', 'childs_room': "Child's Room", 'corridor': 'Corridor', 'utility_room': 'Utility Room' } # Create the demo gallery as index page with all tasks embedded with mkdocs_gen_files.open("challenge/tasks/index.md", "w") as fd: # fd.write("---\n") # fd.write("icon: material/grid\n") # fd.write("---\n\n") fd.write("# Demo Gallery\n\n") fd.write("Browse through all 50 household tasks in our 2025 challenge. Click on any task to view an example of RGB video demonstration.\n\n") # Add controls fd.write('''
Video demonstration coming soon
\n') fd.write('