MCPcopy Index your code
hub / github.com/github/docs / relativePathToSuffix

Method relativePathToSuffix

lib/permalink.js:60–62  ·  view source on GitHub ↗
(relativePath)

Source from the content-addressed store, hash-verified

58 }
59
60 static relativePathToSuffix(relativePath) {
61 return '/' + relativePath.replace('index.md', '').replace('.md', '')
62 }
63}
64
65export default Permalink

Callers 2

constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected