From b28a8fb82a802fe37d67b6669db1b35d3173b936 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Mon, 23 Sep 2024 21:25:31 +0100 Subject: [PATCH 1/2] Redirect dead batteries --- salt/docs/config/nginx.docs-backend.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/salt/docs/config/nginx.docs-backend.conf b/salt/docs/config/nginx.docs-backend.conf index 07dfce52..7a4ca082 100644 --- a/salt/docs/config/nginx.docs-backend.conf +++ b/salt/docs/config/nginx.docs-backend.conf @@ -143,6 +143,9 @@ server { location ~ ^/([a-z-]*/)?(3|3.5|3.6|3.7|3.8|3.9|3.10)/library/_winreg.html$ { return 301 https://$host/$1$2/library/winreg.html; } + location ~ ^/([a-z-]*/)?(3.13|3.14)/library/(2to3|aifc|audioop|cgi|cgitb|chunk|crypt|imghdr|mailcap|msilib|nis|nntplib|ossaudiodev|pipes|sndhdr|spwd|sunau|telnetlib|tkinter.tix|uu|xdrlib).html$ { + return 301 https://$host/$1$2/; + } # Map /documenting to the devguide. location ~ ^/devguide/(.*)$ { From d82cb01deee83be15365e9ccdf1a511fd6e0bd5a Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Mon, 23 Sep 2024 21:51:02 +0100 Subject: [PATCH 2/2] Redirect modules removed in Python 3.12 --- salt/docs/config/nginx.docs-backend.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/salt/docs/config/nginx.docs-backend.conf b/salt/docs/config/nginx.docs-backend.conf index 7a4ca082..08d1cc2a 100644 --- a/salt/docs/config/nginx.docs-backend.conf +++ b/salt/docs/config/nginx.docs-backend.conf @@ -143,6 +143,9 @@ server { location ~ ^/([a-z-]*/)?(3|3.5|3.6|3.7|3.8|3.9|3.10)/library/_winreg.html$ { return 301 https://$host/$1$2/library/winreg.html; } + location ~ ^/([a-z-]*/)?(3|3.12|3.13|3.14)/library/(asynchat|asyncore|smtpd).html$ { + return 301 https://$host/$1$2/; + } location ~ ^/([a-z-]*/)?(3.13|3.14)/library/(2to3|aifc|audioop|cgi|cgitb|chunk|crypt|imghdr|mailcap|msilib|nis|nntplib|ossaudiodev|pipes|sndhdr|spwd|sunau|telnetlib|tkinter.tix|uu|xdrlib).html$ { return 301 https://$host/$1$2/; }