Skip to content

Commit

Permalink
Redirect dead batteries (#496)
Browse files Browse the repository at this point in the history
* Redirect dead batteries

* Redirect modules removed in Python 3.12

---------

Co-authored-by: Jacob Coffee <[email protected]>
  • Loading branch information
AA-Turner and JacobCoffee authored Sep 23, 2024
1 parent fee8afb commit 3d0eae9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions salt/docs/config/nginx.docs-backend.conf
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ 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/;
}

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

0 comments on commit 3d0eae9

Please sign in to comment.