MCPcopy Create free account
hub / github.com/api-platform/website / getGithubPath

Function getGithubPath

pwa/prebuild.js:167–171  ·  view source on GitHub ↗
(slug: string[])

Source from the content-addressed store, hash-verified

165];
166
167function getGithubPath(slug: string[]): string {
168 slug = slug.filter((v) => v);
169 const lastPart = slug.slice(-1)[0];
170 return slug.join("/") + (indexes.includes(lastPart) ? "/index.md" : ".md");
171}
172
173function extractTitleFromMarkdown(content: string) {
174 const lines = content.split("\n");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected