update_index#

Writes docs/index.html: a calendar for each project, active ones first and then the archive. Every day with a report is a link to it.

  • Active projects: light green if the project had new data that day, light red if it had a report but no new data (nothing was collected).

  • Archive: the days with data, in grey; every day links to the one report of the archived project (its last data).

The days come from docs/calendar_days.json (see projects.py) and from the report files. The calendars are plain HTML (no JavaScript).

Functions

active_project_html

Calendar of an active project; setups: those that collected data on the last report day.

archived_project_html

calendar_html

Months of every year with a coloured day, Monday to Sunday in columns.

generate_index_html_with_calendar

Writes <docs_path>/index.html.