Fix the doc build script to package docs with the redirects they need.