MCPcopy Create free account
hub / github.com/ampproject/amphtml / maybePrefixExampleDocHref

Function maybePrefixExampleDocHref

build-system/server/app-index/file-list.js:41–44  ·  view source on GitHub ↗
(basepath, name, htmlEnvelopePrefix)

Source from the content-addressed store, hash-verified

39 : FileListItem({href, name});
40
41const maybePrefixExampleDocHref = (basepath, name, htmlEnvelopePrefix) =>
42 (linksToExample(basepath, name)
43 ? replaceLeadingSlash(basepath, htmlEnvelopePrefix)
44 : basepath) + name;
45
46const FileListHeading = ({basepath}) => html`
47 <div class="file-list-heading">

Callers 1

FileListFunction · 0.85

Calls 2

linksToExampleFunction · 0.85
replaceLeadingSlashFunction · 0.85

Tested by

no test coverage detected