Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/UpdateDirectory.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@ import { globby } from 'globby'
const URL_BASE = 'https://github.com/TheAlgorithms/Javascript/blob/master'

function pathPrefix (i) {
if (i) {
const res = ' '.repeat(i)
return res + '*'
} else {
return '\n##'
}
const res = ' '.repeat(i)
return res + '*'
}

function printPath (oldPath, newPath, output) {
Expand Down Expand Up @@ -79,6 +75,7 @@ function pathsToMarkdown (filePaths) {
globby([
'**/*.js',
'!(node_modules|.github)/**/*',
"!**/test/**/*",
'!**/*.test.js',
'!**/*.manual-test.js',
'!babel.config.js'
Expand Down