diff --git a/src/cmds/docs/index.js b/src/cmds/docs/index.js index aa6201c50..61abf4d89 100644 --- a/src/cmds/docs/index.js +++ b/src/cmds/docs/index.js @@ -121,7 +121,7 @@ exports.run = async function (opts) { files.map(async filename => { const file = await readFile(path.join(folder, filename), 'utf8'); const matter = frontMatter(file); - + // Stripping the subdirectories and markdown extension from the filename and lowercasing to get the default slug. const slug = path.basename(filename).replace(path.extname(filename), '').toLowerCase(); const hash = crypto.createHash('sha1').update(file).digest('hex');