pytorch / docs

This repository is automatically generated to contain the website source for the PyTorch documentation at https//pytorch.org/docs.
BSD 3-Clause "New" or "Revised" License
4 stars 0 forks source link

Add redirect #14

Closed malfet closed 1 month ago

malfet commented 1 month ago

Revive master folder, but turn any workload into symlink to redirect.html, that looks as follows

<!DOCTYPE html>
<html>
<head>
  <title>Redirecting...</title>
  <meta name="robots" content="noindex">
  <script language="javascript">
    window.location.href = window.location.href.replace("/master/", "/main/");
  </script>
</head>
</html>

Test plan:

Remaining files that I'm too lazy to create symlinks for

./generated/onnx_diagnostics_rules/FXE0001:fx-tracer-success.html
./generated/onnx_diagnostics_rules/FXE0008:fx-node-to-onnx.html
./generated/onnx_diagnostics_rules/POE0002:missing-custom-symbolic-function.html
./generated/onnx_diagnostics_rules/POE0003:missing-standard-symbolic-function.html
./generated/onnx_diagnostics_rules/DIAGSYS0001:arg-format-too-verbose.html
./generated/onnx_diagnostics_rules/FXE0007:atenlib-fx-to-onnx.html
./generated/onnx_diagnostics_rules/FXE0010:fx-pass.html
./generated/onnx_diagnostics_rules/FXE0006:atenlib-symbolic-function.html
./generated/onnx_diagnostics_rules/FXE0004:fx-pass-convert-neg-to-sigmoid.html
./generated/onnx_diagnostics_rules/FXE0002:fx-tracer-failure.html
./generated/onnx_diagnostics_rules/FXE0003:fx-frontend-aotautograd.html
./generated/onnx_diagnostics_rules/FXE0005:fx-ir-add-node.html
./generated/onnx_diagnostics_rules/FXE0009:fx-frontend-dynamo-make-fx.html
./generated/onnx_diagnostics_rules/POE0001:node-missing-onnx-shape-inference.html
./generated/onnx_diagnostics_rules/POE0004:operator-supported-in-newer-opset-version.html
./_modules/torch/ao/nn/quantizable/modules/rnn.html
./_modules/torch/ao/nn/quantizable/modules/activation.html
./_modules/torch/ao/nn/quantized/modules/functional_modules.html
./_modules/torch/ao/nn/quantized/modules/activation.html
./_modules/torch/ao/nn/quantized/modules/normalization.html
./_modules/torch/ao/nn/quantized/modules/conv.html
./_modules/torch/ao/nn/quantized/modules/embedding_ops.html
./_modules/torch/ao/nn/quantized/modules/linear.html
./_modules/torch/ao/nn/quantized/modules/batchnorm.html
./_modules/torch/ao/nn/quantized/dynamic/modules/rnn.html
./_modules/torch/ao/nn/quantized/dynamic/modules/linear.html
./_modules/torch/ao/nn/qat/modules/conv.html
./_modules/torch/ao/nn/qat/modules/linear.html
./_modules/torch/ao/nn/qat/dynamic/modules/linear.html
./_modules/torch/ao/quantization/backend_config/backend_config.html
./_modules/torch/ao/quantization/fx/custom_config.html