Skip to content

Commit f4856d8

Browse files
committed
added some indexes
1 parent 245e619 commit f4856d8

File tree

5 files changed

+49
-1773
lines changed

5 files changed

+49
-1773
lines changed

api/docs/dist/index.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@
1010

1111
<script type="text/javascript">
1212
window.onload = (event) => {
13-
window.location.replace("https://docs.opentrons.com/v2/")}
13+
const path = window.location.pathname;
14+
15+
// Handle specific redirects
16+
if (path.startsWith('/v2')) {
17+
window.location.replace("api/v2/");
18+
} else if (path.startsWith('/v1')) {
19+
window.location.replace("api/v1/");
20+
} else if (path.startsWith('/ot1')) {
21+
window.location.replace("api/ot1/");
22+
23+
}
1424
</script>
1525

1626
</head>

0 commit comments

Comments
 (0)