Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions source/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{% extends "!layout.html" %}
{% block extrahead %}
<meta name="robots" content="noindex">
{% endblock %}
46 changes: 23 additions & 23 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href='/flamingo/support/at_risk.html'>scheduled down time</a>"
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 <a href='/flamingo/support/at_risk.html'>scheduled down time</a>"
# else:
# banner = None

# html_theme_options = {
# "banner_text": banner,
# }

# Immaterial
#extensions = ["sphinx_immaterial"]
Expand Down
Loading