MCPcopy Create free account
hub / github.com/crewAIInc/crewAI / transform

Function transform

scripts/docs/prefix_version_paths.py:92–97  ·  view source on GitHub ↗
(page: str)

Source from the content-addressed store, hash-verified

90 prefix_with_slash = f"{slug_prefix}/"
91
92 def transform(page: str) -> str:
93 if page.startswith(prefix_with_slash):
94 return page
95 if page.startswith(locale_prefix):
96 return f"{prefix_with_slash}{page}"
97 return page
98
99 return transform
100

Callers 1

_walk_pagesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected