Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ascoders committed Apr 17, 2021
1 parent 706ac61 commit 5edddb5
Show file tree
Hide file tree
Showing 3 changed files with 220 additions and 16 deletions.
8 changes: 0 additions & 8 deletions dir.js

This file was deleted.

21 changes: 21 additions & 0 deletions helper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* 发布辅助脚本
* @author 黄子毅
*/

const fs = require('fs')

const dirs = ['前沿技术', '设计模式', '编译原理', '源码解读', '商业思考']

dirs.forEach(dir => {
const readDir = fs.readdirSync(`./${dir}`);

console.log(`### ${dir}\n`)

readDir.sort((left, right) => left.split('.')[0] - right.split('.')[0]).forEach(dirName=>{
console.log(`- <a href="./${dir}/${dirName}" target="_blank">${dirName.replace('.md', '')}</a>`)
})

console.log('\n')
})

Loading

0 comments on commit 5edddb5

Please sign in to comment.