Commit cd69dc6b authored by liziwl's avatar liziwl
Browse files

添加外部来源的md文件

parent 3604edb7
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -77,8 +77,15 @@

- [📗教材与图书借还](./borrow-books)

## 其他资料
## 院系开放信息

### 计算机科学与工程系

- [创新实践项目汇总](./cse/innovative-project.md)

### 人文中心
- [袁长庚老师所推荐的新生书单 2018年](./book-list-by-prof-yuan/2018)

### 语言中心
- [【南科大语言中心】如何适应大学生活 Adjusting to University Life (B站)](https://www.bilibili.com/video/BV1334y1d7L9)
  - 涉及学术英语、学术写作、阅读方法、邮件礼仪等。
 No newline at end of file
+3 −1
Original line number Diff line number Diff line
@@ -14,11 +14,13 @@
  },
  "scripts": {
    "docs:dev": "vuepress dev docs",
    "docs:build": "vuepress build docs",
    "docs:build": "node ./scripts/index.js && vuepress build docs",
    "docs:fastbuild": "vuepress build docs",
    "docs:clean": "rm -rf docs/.vuepress/.temp docs/.vuepress/dist"
  },
  "dependencies": {
    "axios": "^0.26.0",
    "download": "^8.0.0",
    "maplibre-gl": ">=2.0.0",
    "postcss-loader": "^6.2.1"
  }

scripts/index.js

0 → 100644
+23 −0
Original line number Diff line number Diff line
const download = require('download');

const file2download = [
    {
        name: '南方科技大学计算机系创新实践项目汇总',
        url: 'https://raw.githubusercontent.com/SUSTech-OpenSource/innovative_project_SUSTech/main/README.md',
        path: 'docs/study/cse/',
        fileName: 'innovative-project.md'
    }
]

file2download.forEach(element => {
    let url = element.url;
    let path = `${__dirname}/../${element.path}`
    let options = {
        filename: element.fileName
    }

    download(url, path, options)
        .then(() => {
            console.log(`Download Completed -- ${element.name}`);
        })
});