fix: update documentation links for Custom Component to use the correct URL (#6145)

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
Mendon Kissling 2025-02-06 17:39:05 -05:00 committed by GitHub
commit 9ba0c9ce13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 16 additions and 12 deletions

View file

@ -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"
```

View file

@ -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',

View file

@ -7,7 +7,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 = "code"
name = "CustomComponent"

View file

@ -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"

View file

@ -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"

View file

@ -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": [],
@ -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,

View file

@ -9,7 +9,7 @@ from langflow.schema import Data
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"

View file

@ -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

View file

@ -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"

View file

@ -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"

View file

@ -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"

View file

@ -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"