Skip to content

Commit

Permalink
Move all redirects to an explicit file redirects.js
Browse files Browse the repository at this point in the history
  • Loading branch information
PavlosTze committed Jul 29, 2024
1 parent 207003b commit 9498c55
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 190 deletions.
192 changes: 2 additions & 190 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ require("dotenv").config();
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";


/** @type {import('@docusaurus/types').Config} */
const config = {
title: "WeatherXM Docs",
Expand All @@ -21,196 +22,7 @@ const config = {
[
"@docusaurus/plugin-client-redirects",
{
redirects: [
{
to: "/rewards/how-to-join-arbitrum-and-see-your-tokens",
from: "/wallet/how-to-join-arbitrum-and-see-your-tokens"
},
{
to: "/wxm-devices/m5/introduction#features-and-specifications",
from: "/m5-specs"
},
{
to: "/wxm-devices/helium/introduction#features-and-specifications",
from: "/helium-specs"
},
{
to: "/wxm-devices/d1/introduction#features-and-specifications",
from: "/wxm-devices/D1-bundle/D1-specs"
},
{
to: "/mobile-app/wallet/add-edit-wallet-address",
from: "/wallet/add-edit-wallet-address"
},
{
to: "/mobile-app/change-password",
from: "/account/change-password"
},
{
to: "/mobile-app/delete-account",
from: "/account/delete-account"
},
{
to: "/rewards/cell-capacity",
from: "/project/cell-capacity"
},
{
to: "/rewards/hardware-class",
from: "/project/hardware-class"
},
{
to: "/rewards/proof-of-location",
from: "/project/proof-of-location"
},
{
to: "/rewards/quality-of-data",
from: "/project/quality-of-data"
},
{
to: "/rewards/reward-boosts",
from: "/project/reward-boosts"
},
{
to: "/rewards/reward-mechanism",
from: "/reward-mechanism"
},
{
to: "/rewards/rewards-claiming",
from: "/project/rewards-claiming"
},
{
to: "/rewards/rewards-troubleshooting",
from: "/project/rewards-troubleshooting"
},
{
to: "/faq",
from: "/faqs"
},
{
to: "/wxm-devices/deployment-examples",
from: "/deployment-examples"
},
{
to: "/wxm-devices/d1/introduction",
from: "/wxm-devices/D1-bundle/D1-bundle-introduction"
},
{
to: "/wxm-devices/d1/contents",
from: "/wxm-devices/D1-bundle/D1-contents"
},
{
to: "/wxm-devices/d1/assemble",
from: "/wxm-devices/D1-bundle/D1-assemble"
},
{
to: "/wxm-devices/d1/install-weather-station",
from: "/wxm-devices/D1-bundle/install-weather-station"
},
{
to: "/wxm-devices/d1/connect-and-claim",
from: "/wxm-devices/D1-bundle/D1-connect-and-claim"
},
{
to: "/wxm-devices/d1/maintenance",
from: "/wxm-devices/D1-bundle/maintenance"
},
{
to: "/wxm-devices/d1/troubleshooting",
from: "/wxm-devices/D1-bundle/D1-troubleshooting"
},
{
to: "/wxm-devices/pulse/introduction",
from: "/wxm-devices/pulse-bundle/introduction"
},
{
to: "/wxm-devices/pulse/contents",
from: "/wxm-devices/pulse-bundle/contents"
},
{
to: "/wxm-devices/pulse/assemble",
from: "/wxm-devices/pulse-bundle/assemble-weather-station"
},
{
to: "/wxm-devices/pulse/install-weather-station",
from: "/wxm-devices/pulse-bundle/install-weather-station"
},
{
to: "/wxm-devices/pulse/connect-and-claim",
from: "/wxm-devices/pulse-bundle/connect-and-claim"
},
{
to: "/wxm-devices/pulse/maintenance",
from: "/wxm-devices/pulse-bundle/maintenance"
},
{
to: "/wxm-devices/pulse/troubleshooting",
from: "/wxm-devices/pulse-bundle/troubleshooting"
},
{
to: "/wxm-devices/helium/introduction",
from: "/wxm-devices/helium-bundle/wxm-ws2000-introduction"
},
{
to: "/wxm-devices/helium/contents",
from: "/wxm-devices/helium-bundle/helium-contents"
},
{
to: "/wxm-devices/helium/assemble",
from: "/wxm-devices/helium-bundle/helium-assemble"
},
{
to: "/wxm-devices/helium/connect-and-claim",
from: "/wxm-devices/helium-bundle/helium-connect-and-claim"
},
{
to: "/wxm-devices/helium/update-firmware",
from: "/wxm-devices/helium-bundle/helium-update-firmware"
},
{
to: "/wxm-devices/helium/install-weather-station",
from: "/wxm-devices/helium-bundle/helium-install-weather-station"
},
{
to: "/wxm-devices/helium/maintenance",
from: "/wxm-devices/helium-bundle/helium-maintenance"
},
{
to: "/wxm-devices/helium/troubleshooting",
from: "/wxm-devices/helium-bundle/helium-troubleshooting"
},
{
to: "/wxm-devices/m5/introduction",
from: "/wxm-devices/wifi-m5-bundle/wxm-ws1000-introduction"
},
{
to: "/wxm-devices/m5/contents",
from: "/wxm-devices/wifi-m5-bundle/m5-contents"
},
{
to: "/wxm-devices/m5/assemble",
from: "/wxm-devices/wifi-m5-bundle/m5-assemble"
},
{
to: "/wxm-devices/m5/connect-and-claim",
from: "/wxm-devices/wifi-m5-bundle/m5-connect-and-claim"
},
{
to: "/wxm-devices/m5/install-weather-station",
from: "/wxm-devices/wifi-m5-bundle/m5-install-weather-station"
},
{
to: "/wxm-devices/m5/maintenance",
from: "/wxm-devices/wifi-m5-bundle/m5-maintenance"
},
{
to: "/wxm-devices/m5/troubleshooting",
from: "/wxm-devices/wifi-m5-bundle/m5-troubleshooting"
},
{
to: "/wxm-devices/m5/usb-flasher",
from: "/wxm-devices/wifi-m5-bundle/m5-usb-flasher"
}
]
redirects: require("./redirects.js")
}
]
],
Expand Down
190 changes: 190 additions & 0 deletions redirects.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
module.exports = [
{
to: "/rewards/how-to-join-arbitrum-and-see-your-tokens",
from: "/wallet/how-to-join-arbitrum-and-see-your-tokens"
},
{
to: "/wxm-devices/m5/introduction#features-and-specifications",
from: "/m5-specs"
},
{
to: "/wxm-devices/helium/introduction#features-and-specifications",
from: "/helium-specs"
},
{
to: "/wxm-devices/d1/introduction#features-and-specifications",
from: "/wxm-devices/D1-bundle/D1-specs"
},
{
to: "/mobile-app/wallet/add-edit-wallet-address",
from: "/wallet/add-edit-wallet-address"
},
{
to: "/mobile-app/change-password",
from: "/account/change-password"
},
{
to: "/mobile-app/delete-account",
from: "/account/delete-account"
},
{
to: "/rewards/cell-capacity",
from: "/project/cell-capacity"
},
{
to: "/rewards/hardware-class",
from: "/project/hardware-class"
},
{
to: "/rewards/proof-of-location",
from: "/project/proof-of-location"
},
{
to: "/rewards/quality-of-data",
from: "/project/quality-of-data"
},
{
to: "/rewards/reward-boosts",
from: "/project/reward-boosts"
},
{
to: "/rewards/reward-mechanism",
from: "/reward-mechanism"
},
{
to: "/rewards/rewards-claiming",
from: "/project/rewards-claiming"
},
{
to: "/rewards/rewards-troubleshooting",
from: "/project/rewards-troubleshooting"
},
{
to: "/faq",
from: "/faqs"
},
{
to: "/wxm-devices/deployment-examples",
from: "/deployment-examples"
},
{
to: "/wxm-devices/d1/introduction",
from: "/wxm-devices/D1-bundle/D1-bundle-introduction"
},
{
to: "/wxm-devices/d1/contents",
from: "/wxm-devices/D1-bundle/D1-contents"
},
{
to: "/wxm-devices/d1/assemble",
from: "/wxm-devices/D1-bundle/D1-assemble"
},
{
to: "/wxm-devices/d1/install-weather-station",
from: "/wxm-devices/D1-bundle/install-weather-station"
},
{
to: "/wxm-devices/d1/connect-and-claim",
from: "/wxm-devices/D1-bundle/D1-connect-and-claim"
},
{
to: "/wxm-devices/d1/maintenance",
from: "/wxm-devices/D1-bundle/maintenance"
},
{
to: "/wxm-devices/d1/troubleshooting",
from: "/wxm-devices/D1-bundle/D1-troubleshooting"
},
{
to: "/wxm-devices/pulse/introduction",
from: "/wxm-devices/pulse-bundle/introduction"
},
{
to: "/wxm-devices/pulse/contents",
from: "/wxm-devices/pulse-bundle/contents"
},
{
to: "/wxm-devices/pulse/assemble",
from: "/wxm-devices/pulse-bundle/assemble-weather-station"
},
{
to: "/wxm-devices/pulse/install-weather-station",
from: "/wxm-devices/pulse-bundle/install-weather-station"
},
{
to: "/wxm-devices/pulse/connect-and-claim",
from: "/wxm-devices/pulse-bundle/connect-and-claim"
},
{
to: "/wxm-devices/pulse/maintenance",
from: "/wxm-devices/pulse-bundle/maintenance"
},
{
to: "/wxm-devices/pulse/troubleshooting",
from: "/wxm-devices/pulse-bundle/troubleshooting"
},
{
to: "/wxm-devices/helium/introduction",
from: "/wxm-devices/helium-bundle/wxm-ws2000-introduction"
},
{
to: "/wxm-devices/helium/contents",
from: "/wxm-devices/helium-bundle/helium-contents"
},
{
to: "/wxm-devices/helium/assemble",
from: "/wxm-devices/helium-bundle/helium-assemble"
},
{
to: "/wxm-devices/helium/connect-and-claim",
from: "/wxm-devices/helium-bundle/helium-connect-and-claim"
},
{
to: "/wxm-devices/helium/update-firmware",
from: "/wxm-devices/helium-bundle/helium-update-firmware"
},
{
to: "/wxm-devices/helium/install-weather-station",
from: "/wxm-devices/helium-bundle/helium-install-weather-station"
},
{
to: "/wxm-devices/helium/maintenance",
from: "/wxm-devices/helium-bundle/helium-maintenance"
},
{
to: "/wxm-devices/helium/troubleshooting",
from: "/wxm-devices/helium-bundle/helium-troubleshooting"
},
{
to: "/wxm-devices/m5/introduction",
from: "/wxm-devices/wifi-m5-bundle/wxm-ws1000-introduction"
},
{
to: "/wxm-devices/m5/contents",
from: "/wxm-devices/wifi-m5-bundle/m5-contents"
},
{
to: "/wxm-devices/m5/assemble",
from: "/wxm-devices/wifi-m5-bundle/m5-assemble"
},
{
to: "/wxm-devices/m5/connect-and-claim",
from: "/wxm-devices/wifi-m5-bundle/m5-connect-and-claim"
},
{
to: "/wxm-devices/m5/install-weather-station",
from: "/wxm-devices/wifi-m5-bundle/m5-install-weather-station"
},
{
to: "/wxm-devices/m5/maintenance",
from: "/wxm-devices/wifi-m5-bundle/m5-maintenance"
},
{
to: "/wxm-devices/m5/troubleshooting",
from: "/wxm-devices/wifi-m5-bundle/m5-troubleshooting"
},
{
to: "/wxm-devices/m5/usb-flasher",
from: "/wxm-devices/wifi-m5-bundle/m5-usb-flasher"
}
]

0 comments on commit 9498c55

Please sign in to comment.