website/src/utils.js

7 lines
139 B
JavaScript
Raw Normal View History

2022-08-26 13:46:21 +00:00
function node2slug(node) {
return node.fileAbsolutePath.replace(/^.+\/docs/g, "/docs")
}
module.exports = {
node2slug: node2slug
}