Skip to content

Commit

Permalink
fix: update documentation links for Custom Component to use the corre…
Browse files Browse the repository at this point in the history
…ct URL (#6145)

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
  • Loading branch information
mendonk and ogabrielluiz authored Feb 6, 2025
1 parent 792f882 commit 9ba0c9c
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/docs/Components/components-custom-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ from langflow.schema import Data
class CustomComponent(Component):
display_name = "Custom Component"
description = "Use as a template to create your own component."
documentation: str = "http://docs.langflow.org/components/custom"
documentation: str = "https://docs.langflow.org/components-custom-components"
icon = "custom_components"
name = "CustomComponent"
```
Expand Down
4 changes: 4 additions & 0 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ const config = {
to: "/concepts-api",
from: "/workspace-api",
},
{
to: "/components-custom-components",
from: "/components/custom",
},
// add more redirects like this
// {
// to: '/docs/anotherpage',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class CustomComponent(Component):
display_name = "Custom Component"
description = "Use as a template to create your own component."
documentation: str = "http://docs.langflow.org/components/custom"
documentation: str = "https://docs.langflow.org/components-custom-components"
icon = "code"
name = "CustomComponent"

Expand Down
2 changes: 1 addition & 1 deletion src/backend/base/langflow/components/tools/mcp_sse.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class MCPSse(Component):
tool_names = [str]
display_name = "MCP Tools (SSE)"
description = "Connects to an MCP server over SSE and exposes it's tools as langflow tools to be used by an Agent."
documentation: str = "http://docs.langflow.org/components/custom"
documentation: str = "https://docs.langflow.org/components-custom-components"
icon = "code"
name = "MCPSse"

Expand Down
2 changes: 1 addition & 1 deletion src/backend/base/langflow/components/tools/mcp_stdio.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class MCPStdio(Component):
description = (
"Connects to an MCP server over stdio and exposes it's tools as langflow tools to be used by an Agent."
)
documentation: str = "http://docs.langflow.org/components/custom"
documentation: str = "https://docs.langflow.org/components-custom-components"
icon = "code"
name = "MCPStdio"

Expand Down
4 changes: 2 additions & 2 deletions src/backend/tests/data/WebhookTest.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"Data"
],
"display_name": "Async Component",
"documentation": "http://docs.langflow.org/components/custom",
"documentation": "https://docs.langflow.org/components-custom-components",
"minimized": false,
"custom_fields": {},
"output_types": [],
Expand Down Expand Up @@ -850,7 +850,7 @@
"icon": "custom_components",
"base_classes": [],
"display_name": "Custom Component",
"documentation": "http://docs.langflow.org/components/custom",
"documentation": "https://docs.langflow.org/components-custom-components",
"custom_fields": {},
"output_types": [],
"pinned": false,
Expand Down
2 changes: 1 addition & 1 deletion src/backend/tests/data/dynamic_output_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class DynamicOutputComponent(Component):
display_name = "Dynamic Output Component"
description = "Use as a template to create your own component."
documentation: str = "http://docs.langflow.org/components/custom"
documentation: str = "https://docs.langflow.org/components-custom-components"
icon = "custom_components"
name = "DynamicOutputComponent"

Expand Down
2 changes: 1 addition & 1 deletion src/frontend/tests/assets/flowtest.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
},
"base_classes": ["str"],
"display_name": "text checkpoint",
"documentation": "http://docs.langflow.org/components/custom",
"documentation": "https://docs.langflow.org/components-custom-components",
"custom_fields": {
"save_path": null,
"text_input": null
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/tests/core/features/stop-building.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ import time
class CustomComponent(Component):
display_name = "Custom Component"
description = "Use as a template to create your own component."
documentation: str = "http://docs.langflow.org/components/custom"
documentation: str = "https://docs.langflow.org/components-custom-components"
icon = "custom_components"
name = "CustomComponent"
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/tests/core/unit/tableInputComponent.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ from langflow.schema import Data
class CustomComponent(Component):
display_name = "Custom Component"
description = "Use as a template to create your own component."
documentation: str = "http://docs.langflow.org/components/custom"
documentation: str = "https://docs.langflow.org/components-custom-components"
icon = "custom_components"
name = "CustomComponent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ from langflow.schema.message import Message
class CustomComponent(Component):
display_name = "Custom Component"
description = "Use as a template to create your own component."
documentation: str = "http://docs.langflow.org/components/custom"
documentation: str = "https://docs.langflow.org/components-custom-components"
icon = "custom_components"
name = "CustomComponent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import pytorch
class CustomComponent(Component):
display_name = "Custom Component"
description = "Use as a template to create your own component."
documentation: str = "http://docs.langflow.org/components/custom"
documentation: str = "https://docs.langflow.org/components-custom-components"
icon = "custom_components"
name = "CustomComponent"
Expand Down

0 comments on commit 9ba0c9c

Please sign in to comment.