MCPcopy Index your code
hub / github.com/simstudioai/sim / generateTriggerProviderDoc

Function generateTriggerProviderDoc

scripts/generate-docs.ts:3713–3733  ·  view source on GitHub ↗

Standalone page for a trigger-only service (no actions block).

(
  provider: string,
  triggers: TriggerFullInfo[],
  blockType: string,
  providerColor: string
)

Source from the content-addressed store, hash-verified

3711
3712/** Standalone page for a trigger-only service (no actions block). */
3713function generateTriggerProviderDoc(
3714 provider: string,
3715 triggers: TriggerFullInfo[],
3716 blockType: string,
3717 providerColor: string
3718): string {
3719 const providerName = formatTriggerProviderName(provider)
3720 return `---
3721title: ${providerName}
3722description: ${providerName} triggers for automating workflows
3723---
3724
3725import { BlockInfoCard } from "@/components/ui/block-info-card"
3726
3727<BlockInfoCard
3728 type="${blockType}"
3729 color="${providerColor}"
3730/>
3731
3732${buildTriggersSection(triggers)}`
3733}
3734
3735/**
3736 * Build a map of block-type → bgColor from all block definitions.

Callers 1

generateAllTriggerDocsFunction · 0.85

Calls 2

buildTriggersSectionFunction · 0.85

Tested by

no test coverage detected