From e0c5ec37f97f7f4c7e620448eebf4c4179d2b29c Mon Sep 17 00:00:00 2001 From: Grzegorz Bokota Date: Tue, 21 May 2024 10:44:21 +0200 Subject: [PATCH] Raise exception for response codes outside range 200-299 (#1755) GitHub pages return valid HTML page when an element was removed. This adds a check for return code to not inject returned HTML if the return code is outside range 200-299. Co-authored-by: Daniel McCloy --- .../theme/pydata_sphinx_theme/sections/announcement.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/announcement.html b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/announcement.html index a60ecbe9d..3887d3565 100644 --- a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/announcement.html +++ b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/announcement.html @@ -6,7 +6,11 @@