|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | +<meta charset="utf-8"> |
| 5 | +<title>This page has moved</title> |
| 6 | +<link rel="canonical" href="${to_uri}"> |
| 7 | +<meta http-equiv="refresh" content="0; url=${to_uri}"> |
| 8 | +<script> |
| 9 | +(function () { |
| 10 | + var target = "${to_uri}"; |
| 11 | + var hash = window.location.hash; |
| 12 | + // Classes that were renamed or moved to a different page in 10.0. Each row is |
| 13 | + // the old autodoc id, the reference/ page the class now lives on, and its new |
| 14 | + // id. A hash is either the class id itself or that id followed by ".<member>", |
| 15 | + // and the member name is kept. Old ids are unique across the old pages, so |
| 16 | + // one table serves every stub that forwards into reference/. |
| 17 | + var classes = [ |
| 18 | + ["pinecone.db_data.Index", "sync-index.html", "pinecone.index.Index"], |
| 19 | + ["pinecone.db_data.IndexAsyncio", "async-index.html", "pinecone.async_client.async_index.AsyncIndex"], |
| 20 | + ["pinecone.inference.Inference", "pinecone.html", "pinecone.client.inference.Inference"], |
| 21 | + ["pinecone.inference.AsyncioInference", "async-pinecone.html", "pinecone.async_client.inference.AsyncInference"], |
| 22 | + ["pinecone.PineconeAsyncio", "async-pinecone.html", "pinecone.async_client.pinecone.AsyncPinecone"], |
| 23 | + ["pinecone.grpc.PineconeGRPC", "pinecone.html", "pinecone.Pinecone"], |
| 24 | + ["pinecone.grpc.GRPCIndex", "grpc.html", "pinecone.grpc.GrpcIndex"], |
| 25 | + ["pinecone.Admin", "admin.html", "pinecone.admin.Admin"], |
| 26 | + ["pinecone.admin.resources.ApiKeyResource", "admin.html", "pinecone.admin.api_keys.ApiKeys"], |
| 27 | + ["pinecone.admin.resources.OrganizationResource", "admin.html", "pinecone.admin.organizations.Organizations"], |
| 28 | + ["pinecone.admin.resources.ProjectResource", "admin.html", "pinecone.admin.projects.Projects"] |
| 29 | + ]; |
| 30 | + // Section anchors the old landing page linked to, which now map to a whole page. |
| 31 | + var sections = { |
| 32 | + "rest.html#db-data-plane": "sync-index.html", |
| 33 | + "asyncio.html#db-data-plane": "async-index.html", |
| 34 | + "grpc.html#db-data-plane": "grpc.html" |
| 35 | + }; |
| 36 | + var page = window.location.pathname.split("/").pop(); |
| 37 | + var dir = "reference/"; |
| 38 | + var moved = sections[page + hash]; |
| 39 | + if (target.indexOf("#") !== -1) { |
| 40 | + // The target names its own section; the old fragment has nothing to add. |
| 41 | + hash = ""; |
| 42 | + } else if (moved) { |
| 43 | + target = dir + moved; |
| 44 | + hash = ""; |
| 45 | + } else if (hash && target.indexOf(dir) === 0) { |
| 46 | + var id = hash.substring(1); |
| 47 | + for (var i = 0; i < classes.length; i++) { |
| 48 | + var oldId = classes[i][0]; |
| 49 | + if (id === oldId || id.indexOf(oldId + ".") === 0) { |
| 50 | + target = dir + classes[i][1]; |
| 51 | + hash = "#" + classes[i][2] + id.substring(oldId.length); |
| 52 | + break; |
| 53 | + } |
| 54 | + } |
| 55 | + } |
| 56 | + window.location.replace(target + hash); |
| 57 | +})(); |
| 58 | +</script> |
| 59 | +</head> |
| 60 | +<body> |
| 61 | +<p>This page has moved to <a href="${to_uri}">${to_uri}</a>.</p> |
| 62 | +</body> |
| 63 | +</html> |
0 commit comments