MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / buildDocLink

Function buildDocLink

webview-ui/src/utils/docLinks.ts:6–12  ·  view source on GitHub ↗
(path: string, campaign: string)

Source from the content-addressed store, hash-verified

4 * GitHub is the only extension-facing support destination for now.
5 */
6export function buildDocLink(path: string, campaign: string): string {
7 // Remove any leading slash from path
8 const cleanPath = path.replace(/^\//, "")
9 const [basePath, hash] = cleanPath.split("#")
10 const baseUrl = `https://docs.zoocode.dev/${basePath}?utm_source=extension&utm_medium=ide&utm_campaign=${encodeURIComponent(campaign)}`
11 return hash ? `${baseUrl}#${hash}` : baseUrl
12}

Callers 12

ContextMenuFunction · 0.90
CodeIndexPopoverFunction · 0.90
CommandExecutionErrorFunction · 0.90
SkillsSettingsFunction · 0.90
SlashCommandsSettingsFunction · 0.90
CheckpointSettingsFunction · 0.90
ApiOptionsFunction · 0.90
TerminalSettingsFunction · 0.90
McpViewFunction · 0.90
RooTips.tsxFile · 0.90
RooTipsFunction · 0.90
ModesViewFunction · 0.90

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected