Skip to content

Commit

Permalink
fix: fix component document links (#159)
Browse files Browse the repository at this point in the history
Because

- The component document links are wrong since website changed the
routes.

This commit

- Fixes component document links.
  • Loading branch information
donch1989 committed Jun 13, 2024
1 parent 40363c3 commit fd38a8b
Show file tree
Hide file tree
Showing 35 changed files with 202 additions and 81 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ component.
"TASK_GREET"
],
"custom": false,
"documentation_url": "https://www.instill.tech/docs/latest/vdp/operators/hello",
"documentation_url": "https://www.instill.tech/docs/component/operator/hello",
"icon": "assets/hello.svg",
"id": "hello",
"public": true,
Expand Down
2 changes: 1 addition & 1 deletion ai/archetypeai/v0/config/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"TASK_UPLOAD_FILE"
],
"custom": false,
"documentation_url": "",
"documentation_url": "https://www.instill.tech/docs/component/ai/archetypeai",
"icon": "assets/archetype-ai.svg",
"icon_url": "",
"id": "archetype-ai",
Expand Down
2 changes: 1 addition & 1 deletion ai/huggingface/v0/config/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"TASK_AUDIO_CLASSIFICATION"
],
"custom": false,
"documentation_url": "https://www.instill.tech/docs/latest/vdp/ai-connectors/hugging-face",
"documentation_url": "https://www.instill.tech/docs/component/ai/huggingface",
"icon": "assets/hugging-face.svg",
"icon_url": "",
"id": "hugging-face",
Expand Down
2 changes: 1 addition & 1 deletion ai/instill/v0/config/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"TASK_IMAGE_TO_IMAGE"
],
"custom": false,
"documentation_url": "https://www.instill.tech/docs/latest/vdp/ai-connectors/instill",
"documentation_url": "https://www.instill.tech/docs/component/ai/instill",
"icon": "assets/instill-model.svg",
"icon_url": "",
"id": "instill-model",
Expand Down
2 changes: 1 addition & 1 deletion ai/openai/v0/config/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"TASK_TEXT_TO_IMAGE"
],
"custom": false,
"documentation_url": "https://www.instill.tech/docs/latest/vdp/ai-connectors/openai",
"documentation_url": "https://www.instill.tech/docs/component/ai/openai",
"icon": "assets/openai.svg",
"icon_url": "",
"id": "openai",
Expand Down
2 changes: 1 addition & 1 deletion ai/stabilityai/v0/config/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"TASK_IMAGE_TO_IMAGE"
],
"custom": false,
"documentation_url": "https://www.instill.tech/docs/latest/vdp/ai-connectors/stabilityai",
"documentation_url": "https://www.instill.tech/docs/component/ai/stabilityai",
"icon": "assets/stability-ai.svg",
"icon_url": "",
"id": "stability-ai",
Expand Down
2 changes: 1 addition & 1 deletion application/googlesearch/v0/config/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"TASK_SEARCH"
],
"custom": false,
"documentation_url": "https://www.instill.tech/docs/latest/vdp/data-connectors/googlesearch",
"documentation_url": "https://www.instill.tech/docs/component/application/googlesearch",
"icon": "assets/google-search.svg",
"icon_url": "",
"id": "google-search",
Expand Down
2 changes: 1 addition & 1 deletion application/numbers/v0/config/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"TASK_REGISTER"
],
"custom": false,
"documentation_url": "https://www.instill.tech/docs/latest/vdp/app-connectors/numbers",
"documentation_url": "https://www.instill.tech/docs/component/application/numbers",
"icon": "assets/numbers.svg",
"icon_url": "",
"id": "numbers",
Expand Down
2 changes: 1 addition & 1 deletion application/restapi/v0/config/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"TASK_OPTIONS"
],
"custom": false,
"documentation_url": "https://www.instill.tech/docs/latest/vdp/data-connectors/restapi",
"documentation_url": "https://www.instill.tech/docs/component/application/restapi",
"icon": "assets/restapi.svg",
"icon_url": "",
"id": "restapi",
Expand Down
2 changes: 1 addition & 1 deletion application/slack/v0/config/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"TASK_WRITE_MESSAGE"
],
"custom": false,
"documentation_url": "",
"documentation_url": "https://www.instill.tech/docs/component/application/slack",
"icon": "assets/slack.svg",
"icon_url": "",
"id": "slack",
Expand Down
2 changes: 1 addition & 1 deletion application/website/v0/config/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"TASK_SCRAPE_WEBSITE"
],
"custom": false,
"documentation_url": "https://www.instill.tech/docs/latest/vdp/data-connectors/website",
"documentation_url": "https://www.instill.tech/docs/component/application/website",
"icon": "assets/website.svg",
"icon_url": "",
"id": "website",
Expand Down
2 changes: 1 addition & 1 deletion base/testdata/connectorDef.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"TASK_TEXT_EMBEDDINGS"
],
"custom": false,
"documentation_url": "https://www.instill.tech/docs/latest/vdp/ai-connectors/openai",
"documentation_url": "https://www.instill.tech/docs/component/ai/openai",
"icon": "OpenAI/openai.svg",
"id": "openai",
"public": true,
Expand Down
2 changes: 1 addition & 1 deletion base/testdata/operatorDef.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"TASK_MARSHAL"
],
"custom": false,
"documentation_url": "https://www.instill.tech/docs/latest/vdp/operators/json",
"documentation_url": "https://www.instill.tech/docs/component/operator/json",
"icon": "Instill AI/json.svg",
"icon_url": "",
"id": "json",
Expand Down
2 changes: 1 addition & 1 deletion base/testdata/wantConnectorDefinition.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"uid": "9fb6a2cb-bff5-4c69-bc6d-4538dd8e3362",
"id": "openai",
"title": "OpenAI",
"documentation_url": "https://www.instill.tech/docs/latest/vdp/ai-connectors/openai",
"documentation_url": "https://www.instill.tech/docs/component/ai/openai",
"icon": "OpenAI/openai.svg",
"spec": {
"component_specification": {
Expand Down
2 changes: 1 addition & 1 deletion base/testdata/wantOperatorDefinition.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"uid": "28f53d15-6150-46e6-99aa-f76b70a926c0",
"id": "json",
"title": "JSON",
"documentation_url": "https://www.instill.tech/docs/latest/vdp/operators/json",
"documentation_url": "https://www.instill.tech/docs/component/operator/json",
"icon": "Instill AI/json.svg",
"spec": {
"component_specification": {
Expand Down
2 changes: 1 addition & 1 deletion data/bigquery/v0/config/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"TASK_INSERT"
],
"custom": false,
"documentation_url": "https://www.instill.tech/docs/latest/vdp/data-connectors/bigquery",
"documentation_url": "https://www.instill.tech/docs/component/data/bigquery",
"icon": "assets/bigquery.svg",
"icon_url": "",
"id": "bigquery",
Expand Down
2 changes: 1 addition & 1 deletion data/googlecloudstorage/v0/config/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"TASK_UPLOAD"
],
"custom": false,
"documentation_url": "https://www.instill.tech/docs/latest/vdp/data-connectors/googlecloudstorage",
"documentation_url": "https://www.instill.tech/docs/component/data/googlecloudstorage",
"icon": "assets/gcs.svg",
"icon_url": "",
"id": "gcs",
Expand Down
2 changes: 1 addition & 1 deletion data/pinecone/v0/config/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"TASK_UPSERT"
],
"custom": false,
"documentation_url": "https://www.instill.tech/docs/latest/vdp/data-connectors/pinecone",
"documentation_url": "https://www.instill.tech/docs/component/data/pinecone",
"icon": "assets/pinecone.svg",
"icon_url": "https://www.pinecone.io/favicon.ico",
"id": "pinecone",
Expand Down
4 changes: 2 additions & 2 deletions application/redis/v0/README.mdx → data/redis/v0/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ draft: false
description: "Learn about how to set up a VDP Redis component https://github.com/instill-ai/instill-core"
---

The Redis component is a application component that allows users to manage data in NoSQL Redis databases.
The Redis component is a data component that allows users to manage data in NoSQL Redis databases.
It can carry out the following tasks:

- [Retrieve Chat History](#retrieve-chat-history)
Expand All @@ -18,7 +18,7 @@ It can carry out the following tasks:

## Configuration

The component configuration is defined and maintained [here](https://github.com/instill-ai/component/blob/main/application/redis/v0/config/definition.json).
The component configuration is defined and maintained [here](https://github.com/instill-ai/component/blob/main/data/redis/v0/config/definition.json).

## Setup

Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
"TASK_WRITE_MULTI_MODAL_CHAT_MESSAGE"
],
"custom": false,
"documentation_url": "https://www.instill.tech/docs/latest/vdp/data-connectors/redis",
"documentation_url": "https://www.instill.tech/docs/component/data/redis",
"icon": "assets/redis.svg",
"icon_url": "",
"id": "redis",
"public": true,
"title": "Redis",
"description": "Manage data in NoSQL Redis databases",
"type": "COMPONENT_TYPE_APPLICATION",
"type": "COMPONENT_TYPE_DATA",
"uid": "fd0ad325-f2f7-41f3-b247-6c71d571b1b8",
"vendor": "Redis Labs",
"vendor_attributes": {},
"version": "0.1.1",
"source_url": "https://github.com/instill-ai/component/blob/main/application/redis/v0",
"source_url": "https://github.com/instill-ai/component/blob/main/data/redis/v0",
"release_stage": "RELEASE_STAGE_ALPHA"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
86 changes: 63 additions & 23 deletions internal/mock/command_runner_mock.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fd38a8b

Please sign in to comment.