optional github link in docs generation (#522)

This removes the github link to the toolkit code from the template
This commit is contained in:
Mateo Torres 2025-07-29 14:51:34 -03:00 committed by GitHub
parent 288ff61959
commit 02a0900846
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 4 deletions

View file

@ -88,7 +88,6 @@ def build_toolkit_mdx(
toolkit_name = sample_tool.toolkit.name
toolkit_version = sample_tool.toolkit.version
auth_type = get_toolkit_auth_type(sample_tool.requirements.authorization)
toolkit_dirname = os.path.basename(os.path.dirname(toolkit_dir))
header = toolkit_header_template.format(
toolkit_title=toolkit_name,
@ -98,7 +97,6 @@ def build_toolkit_mdx(
openai_model,
),
pip_package_name=pip_package_name,
toolkit_dirname=toolkit_dirname,
auth_type=auth_type,
version=toolkit_version,
)

View file

@ -18,7 +18,6 @@ import ToolFooter from "@/components/ToolFooter";
<ToolInfo
description="Enable agents to interact with {toolkit_title}"
author="Arcade"
codeLink="https://github.com/ArcadeAI/arcade-ai/tree/main/toolkits/{toolkit_dirname}"
{auth_type}
versions={{["{version}"]}}
/>

View file

@ -289,7 +289,7 @@ def get_package_directory(package_name: str) -> str:
raise ImportError(f"Package {package_name} does not have a file path associated with it")
def valid_path(path: str) -> bool:
def valid_path(path: str | Path) -> bool:
"""
Validate if a path is valid to be served or deployed.
"""