Skip to content

Commit 3d0eae9

Browse files
Redirect dead batteries (#496)
* Redirect dead batteries * Redirect modules removed in Python 3.12 --------- Co-authored-by: Jacob Coffee <[email protected]>
1 parent fee8afb commit 3d0eae9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

salt/docs/config/nginx.docs-backend.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@ server {
143143
location ~ ^/([a-z-]*/)?(3|3.5|3.6|3.7|3.8|3.9|3.10)/library/_winreg.html$ {
144144
return 301 https://$host/$1$2/library/winreg.html;
145145
}
146+
location ~ ^/([a-z-]*/)?(3|3.12|3.13|3.14)/library/(asynchat|asyncore|smtpd).html$ {
147+
return 301 https://$host/$1$2/;
148+
}
149+
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$ {
150+
return 301 https://$host/$1$2/;
151+
}
146152

147153
# Map /documenting to the devguide.
148154
location ~ ^/devguide/(.*)$ {

0 commit comments

Comments
 (0)