diff --git a/source/_templates/layout.html b/source/_templates/layout.html new file mode 100644 index 0000000..9ab76a8 --- /dev/null +++ b/source/_templates/layout.html @@ -0,0 +1,4 @@ +{% extends "!layout.html" %} +{% block extrahead %} + +{% endblock %} diff --git a/source/conf.py b/source/conf.py index 3adc08b..b4f1e27 100644 --- a/source/conf.py +++ b/source/conf.py @@ -51,29 +51,29 @@ # "globaltoc_collapse": False #} -# Scheduled Cosma down times -import datetime as dt -downtimes = ( - dt.date(2026, 6, 1), - dt.date(2026, 10, 5), - dt.date(2027, 2, 1), -) -next_downtime = None -for downtime in downtimes: - nr_days = (downtime - dt.date.today()).days - if nr_days < 21 and nr_days > -4: - next_downtime = downtime - break -if next_downtime: - start_date = downtime.strftime("%d %B") - end_date = (downtime+dt.timedelta(days=4)).strftime("%d %B %Y") - banner = "This service will be at risk from "+start_date+" to "+end_date+" due to COSMA scheduled down time" -else: - banner = None - -html_theme_options = { - "banner_text": banner, -} +# # Scheduled Cosma down times +# import datetime as dt +# downtimes = ( +# dt.date(2026, 6, 1), +# dt.date(2026, 10, 5), +# dt.date(2027, 2, 1), +# ) +# next_downtime = None +# for downtime in downtimes: +# nr_days = (downtime - dt.date.today()).days +# if nr_days < 21 and nr_days > -4: +# next_downtime = downtime +# break +# if next_downtime: +# start_date = downtime.strftime("%d %B") +# end_date = (downtime+dt.timedelta(days=4)).strftime("%d %B %Y") +# banner = "This service will be at risk from "+start_date+" to "+end_date+" due to COSMA scheduled down time" +# else: +# banner = None + +# html_theme_options = { +# "banner_text": banner, +# } # Immaterial #extensions = ["sphinx_immaterial"]