MCPcopy Index your code
hub / github.com/cli/cli / filePrepender

Function filePrepender

cmd/gen-docs/main.go:79–86  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

77}
78
79func filePrepender(filename string) string {
80 return `---
81layout: manual
82permalink: /:path/:basename
83---
84
85`
86}
87
88func linkHandler(name string) string {
89 return fmt.Sprintf("./%s", strings.TrimSuffix(name, ".md"))

Callers 1

GenMarkdownTreeCustomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected