MCPcopy Create free account
hub / github.com/fontsource/fontsource / getMarkdownRoute

Function getMarkdownRoute

website/app/utils/docs/markdown.server.ts:45–53  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

43 normalizeProcessedMarkdown(await page.data.getText('processed'));
44
45const getMarkdownRoute = (pathname: string) => {
46 if (!pathname.startsWith(docsPrefix) || !pathname.endsWith(markdownSuffix)) {
47 return null;
48 }
49
50 return decodeURIComponent(
51 pathname.slice(docsPrefix.length, pathname.length - markdownSuffix.length),
52 );
53};
54
55const renderAllDocsMarkdown = async () => {
56 const pages = source.getPages();

Callers 1

getDocsMarkdownResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected