Skip to content

Commit 3636e7b

Browse files
authored
Merge pull request #19 from weaviate/remove-python-client-v3
[Improvement] Remove Python v3 and TS v2 docs
2 parents 9be5c07 + cd36fd7 commit 3636e7b

271 files changed

Lines changed: 1829 additions & 11752 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/markdown.code-snippets

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"```",
111111
"",
112112
"</TabItem>",
113-
"<TabItem value=\"js\" label=\"JavaScript\">",
113+
"<TabItem value=\"js\" label=\"JS/TS\">",
114114
"",
115115
"```js",
116116
"<!-- JavaScript code goes here -->",
@@ -261,21 +261,14 @@
261261
"import TabItem from '@theme/TabItem';",
262262
"",
263263
"<Tabs groupId=\"languages\">",
264-
"<TabItem value=\"py\" label=\"Python Client v4\">",
264+
"<TabItem value=\"py\" label=\"Python\">",
265265
"",
266266
"```python",
267267
"# Python v4 example goes here",
268268
"# note there is an empty line before this code snippet,",
269269
"# without the empty line the code won't render",
270270
"```",
271271
"</TabItem>",
272-
"<TabItem value=\"py3\" label=\"Python Client v3\">",
273-
"",
274-
"```python",
275-
"# Python v3 example goes here",
276-
"```",
277-
"",
278-
"</TabItem>",
279272
"</Tabs>",
280273
],
281274
"description": "Adds the tabs section for code examples"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
The TypeScript client supports code that is written in TypeScript or JavaScript.
22

3-
The **v3 client** is the current TypeScript client. If you have code written for the v2 client, you should [migrate it to v3](/weaviate/client-libraries/typescript/v2_v3_migration) as the v2 client is no longer maintained.
3+
The **v3 client** is the current TypeScript client. If you have code written for the [v2 client](/weaviate/client-libraries/typescript#javascripttypescript-client-v2-deprecation), you should migrate it to v3 as the v2 client is no longer maintained.
44

55
:::note
66

7-
The v3 client supports server side development (Node.js hosted). If your application is browser based, you might consider using the [TypeScript client v2](/weaviate/client-libraries/typescript/typescript-v2). Keep in mind that the v2 client is outdated and no longer officially maintained.
7+
The v3 client supports server side development (Node.js hosted). If your application is browser based, you might consider using the [TypeScript client v2](/weaviate/client-libraries/typescript#javascripttypescript-client-v2-deprecation). Keep in mind that the v2 client is outdated and no longer officially maintained.
88

99
:::

_includes/code/EMPTY.mdx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ import TabItem from '@theme/TabItem';
1515

1616
```
1717

18-
</TabItem>
19-
<TabItem value="js" label="JS/TS Client v2">
20-
21-
```js
22-
23-
```
24-
2518
</TabItem>
2619
<TabItem value="go" label="Go">
2720

_includes/code/configuration/replication-consistency.mdx

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import Tabs from '@theme/Tabs';
22
import TabItem from '@theme/TabItem';
33
import PyCode from '!!raw-loader!/_includes/code/howto/manage-data.collections.py';
4-
import PyCodeV3 from '!!raw-loader!/_includes/code/howto/manage-data.collections-v3.py';
54
import TSCode from '!!raw-loader!/_includes/code/howto/manage-data.collections.ts';
6-
import TSCodeLegacy from '!!raw-loader!/_includes/code/howto/manage-data.collections-v2.ts';
75
import FilteredTextBlock from '@site/src/components/Documentation/FilteredTextBlock';
86

97

108
<Tabs groupId="languages">
11-
<TabItem value="py" label="Python Client v4">
9+
<TabItem value="py" label="Python">
1210
<FilteredTextBlock
1311
text={PyCode}
1412
startMarker="# START AsyncRepair"
@@ -17,16 +15,8 @@ import FilteredTextBlock from '@site/src/components/Documentation/FilteredTextBl
1715
/>
1816
</TabItem>
1917

20-
<TabItem value="py3" label="Python Client v3">
21-
<FilteredTextBlock
22-
text={PyCodeV3}
23-
startMarker="# START AsyncRepair"
24-
endMarker="# END AsyncRepair"
25-
language="pyv3"
26-
/>
27-
</TabItem>
2818

29-
<TabItem value="js" label="JS/TS Client v3">
19+
<TabItem value="js" label="JS/TS">
3020
<FilteredTextBlock
3121
text={TSCode}
3222
startMarker="// START AsyncRepair"
@@ -35,14 +25,6 @@ import FilteredTextBlock from '@site/src/components/Documentation/FilteredTextBl
3525
/>
3626
</TabItem>
3727

38-
<TabItem value="js2" label="JS/TS Client v2">
39-
<FilteredTextBlock
40-
text={TSCodeLegacy}
41-
startMarker="// START AsyncRepair"
42-
endMarker="// END AsyncRepair"
43-
language="tsv2"
44-
/>
45-
</TabItem>
4628
<TabItem value="curl" label="cURL">
4729

4830
```bash

_includes/code/connections/oidc-connect.mdx

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,27 @@ import TabItem from '@theme/TabItem';
33
import FilteredTextBlock from '@site/src/components/Documentation/FilteredTextBlock';
44

55
import PyV4Code from '!!raw-loader!/_includes/code/connections/connect-python-v4.py';
6-
import PyV3Code from '!!raw-loader!/_includes/code/connections/connect-python-v3.py';
76
import TsV3Code from '!!raw-loader!/_includes/code/connections/connect-ts-v3.ts';
8-
import TsV2Code from '!!raw-loader!/_includes/code/connections/connect-ts-v2.ts';
97
import JavaCode from '!!raw-loader!/_includes/code/connections/connect.java';
108
import GoCode from '!!raw-loader!/_includes/code/connections/connect.go';
119

1210
<Tabs groupId="languages">
13-
<TabItem value="py4" label="Python Client v4">
11+
<TabItem value="py4" label="Python">
1412
<FilteredTextBlock
1513
text={PyV4Code}
1614
startMarker="# START OIDCConnect"
1715
endMarker="# END OIDCConnect"
1816
language="py"
1917
/>
2018
</TabItem>
21-
<TabItem value="py3" label="Python Client v3">
22-
<FilteredTextBlock
23-
text={PyV3Code}
24-
startMarker="# START OIDCConnect"
25-
endMarker="# END OIDCConnect"
26-
language="pyv3"
27-
/>
28-
</TabItem>
29-
<TabItem value="ts3" label="JS/TS Client v3">
19+
<TabItem value="ts3" label="JS/TS">
3020
<FilteredTextBlock
3121
text={TsV3Code}
3222
startMarker="// START OIDCConnect"
3323
endMarker="// END OIDCConnect"
3424
language="js"
3525
/>
3626
</TabItem>
37-
<TabItem value="ts2" label="JS/TS Client v2">
38-
<FilteredTextBlock
39-
text={TsV2Code}
40-
startMarker="// START OIDCConnect"
41-
endMarker="// END OIDCConnect"
42-
language="tsv2"
43-
/>
44-
</TabItem>
4527
<TabItem value="go" label="Go">
4628
<FilteredTextBlock
4729
text={GoCode}

_includes/code/connections/timeouts-cloud.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import PyV4Code from '!!raw-loader!/_includes/code/connections/connect-python-v4
66
import TsV3Code from '!!raw-loader!/_includes/code/connections/connect-ts-v3.ts';
77

88
<Tabs groupId="languages">
9-
<TabItem value="py4" label="Python Client v4">
9+
<TabItem value="py4" label="Python">
1010
<FilteredTextBlock
1111
text={PyV4Code}
1212
startMarker="# START TimeoutWCD"
1313
endMarker="# END TimeoutWCD"
1414
language="py"
1515
/>
1616
</TabItem>
17-
<TabItem value="ts3" label="JS/TS Client v3">
17+
<TabItem value="ts3" label="JS/TS">
1818
<FilteredTextBlock
1919
text={TsV3Code}
2020
startMarker="// START TimeoutWCD"

_includes/code/connections/timeouts-custom.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import PyV4Code from '!!raw-loader!/_includes/code/connections/connect-python-v4
66
import TsV3Code from '!!raw-loader!/_includes/code/connections/connect-ts-v3.ts';
77

88
<Tabs groupId="languages">
9-
<TabItem value="py4" label="Python Client v4">
9+
<TabItem value="py4" label="Python">
1010
<FilteredTextBlock
1111
text={PyV4Code}
1212
startMarker="# START TimeoutCustom"
1313
endMarker="# END TimeoutCustom"
1414
language="py"
1515
/>
1616
</TabItem>
17-
<TabItem value="ts3" label="JS/TS Client v3">
17+
<TabItem value="ts3" label="JS/TS">
1818
<FilteredTextBlock
1919
text={TsV3Code}
2020
startMarker="// START TimeoutCustom"

_includes/code/connections/timeouts-local.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import TsV3Code from '!!raw-loader!/_includes/code/connections/connect-ts-v3.ts'
77

88

99
<Tabs groupId="languages">
10-
<TabItem value="py4" label="Python Client v4">
10+
<TabItem value="py4" label="Python">
1111
<FilteredTextBlock
1212
text={PyV4Code}
1313
startMarker="# START TimeoutLocal"
1414
endMarker="# END TimeoutLocal"
1515
language="py"
1616
/>
1717
</TabItem>
18-
<TabItem value="ts3" label="JS/TS Client v3">
18+
<TabItem value="ts3" label="JS/TS">
1919
<FilteredTextBlock
2020
text={TsV3Code}
2121
startMarker="// START TimeoutLocal"

_includes/code/contextionary.extensions.mdx

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,6 @@ client = weaviate.Client("http://localhost:8080")
1212
client.contextionary.extend("weaviate", "Open source cloud native real time vector database", 1.0)
1313
```
1414

15-
</TabItem>
16-
<TabItem value="js" label="JS/TS Client v2">
17-
18-
```js
19-
import weaviate from 'weaviate-ts-client';
20-
21-
const client = weaviate.client({
22-
scheme: 'http',
23-
host: 'localhost:8080',
24-
});
25-
26-
const response = await client.c11y
27-
.extensionCreator()
28-
.withConcept('weaviate')
29-
.withDefinition('Open source cloud native real time vector database')
30-
.withWeight(1)
31-
.do();
32-
console.log(JSON.stringify(response, null, 2));
33-
```
34-
3515
</TabItem>
3616
<TabItem value="go" label="Go">
3717

_includes/code/contextionary.get.mdx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,6 @@ concept_info = client.contextionary.get_concept_vector("fashionMagazine")
1313
print(concept_info)
1414
```
1515

16-
</TabItem>
17-
<TabItem value="js" label="JS/TS Client v2">
18-
19-
```js
20-
import weaviate from 'weaviate-ts-client';
21-
22-
const client = weaviate.client({
23-
scheme: 'http',
24-
host: 'localhost:8080',
25-
});
26-
27-
const response = await client.c11y
28-
.conceptsGetter()
29-
.withConcept('fashionMagazine')
30-
.do();
31-
console.log(JSON.stringify(response, null, 2));
32-
```
33-
3416
</TabItem>
3517
<TabItem value="go" label="Go">
3618

0 commit comments

Comments
 (0)