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

Function extractManualContent

scripts/generate-docs.ts:2648–2661  ·  view source on GitHub ↗
(existingContent: string)

Source from the content-addressed store, hash-verified

2646}
2647
2648function extractManualContent(existingContent: string): Record<string, string> {
2649 const manualSections: Record<string, string> = {}
2650 const manualContentRegex =
2651 /\{\/\*\s*MANUAL-CONTENT-START:(\w+)\s*\*\/\}([\s\S]*?)\{\/\*\s*MANUAL-CONTENT-END\s*\*\/\}/g
2652
2653 let match
2654 while ((match = manualContentRegex.exec(existingContent)) !== null) {
2655 const sectionName = match[1]
2656 const content = match[2].trim()
2657 manualSections[sectionName] = content
2658 }
2659
2660 return manualSections
2661}
2662
2663function mergeWithManualContent(
2664 generatedMarkdown: string,

Callers 2

generateBlockDocFunction · 0.85
generateAllTriggerDocsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected