diff --git a/README.md b/README.md index aa3c9d8ec..f0770e4da 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以 ### Sponsors -[Sayori Studio](https://t.me/SayoriStudio) . [Sion Kazama](https://blog.sion.moe) . [琚致远](https://www.shaoyaoju.org/) . [Rolly RSS 阅读器](https://www.coolapk.com/apk/239500) . [mokeyjay](https://www.mokeyjay.com/) . [tkaray](https://rayray.moe/) . [NeverBehave](https://never.pet/) . [萌开源联盟](https://www.moeunion.com) . [hooke007](https://github.com/hooke007/MPV_lazy) +[Sayori Studio](https://t.me/SayoriStudio) . [Sion Kazama](https://blog.sion.moe) . [琚致远](https://www.shaoyaoju.org/) . [Rolly RSS 阅读器](https://www.coolapk.com/apk/239500) . [mokeyjay](https://www.mokeyjay.com/) . [tkaray](https://rayray.moe/) . [NeverBehave](https://never.pet/) . [萌开源联盟](https://www.moeunion.com) . [hooke007](https://github.com/hooke007/MPV_lazy) . [feeds.pub](https://feeds.pub) [![](https://opencollective.com/static/images/become_sponsor.svg)](https://docs.rsshub.app/en/support/) diff --git a/docs/.format/format.js b/docs/.format/format.js index f25ddac86..081aa0258 100644 --- a/docs/.format/format.js +++ b/docs/.format/format.js @@ -101,21 +101,13 @@ const buildStagedList = async () => { const stagedFiles = await sgf(); for (const processor of processors) { - // We don't want to mix up processor - /* eslint-disable no-await-in-loop */ - await Promise.all( - processor.rules(fileList).map(async (e) => { - let formatted = await file.readFile(e.path); - formatted = await processor.handler(formatted); - await file.writeFile(e.path, formatted); - if (stagedFiles.find((x) => e.path.indexOf(x.filename) !== -1)) { - await exec(`git add ${e.path}`); - } - }) - ).catch((err) => { - // eslint-disable-next-line no-console - console.log(err); - process.exit(1); - }); + for (const e of processor.rules(fileList)) { + let formatted = await file.readFile(e.path); + formatted = await processor.handler(formatted); + await file.writeFile(e.path, formatted); + if (stagedFiles.find((x) => e.path.indexOf(x.filename) !== -1)) { + await exec(`git add ${e.path}`); + } + } } })(); diff --git a/docs/README.md b/docs/README.md index 574cb0ea5..821b49190 100644 --- a/docs/README.md +++ b/docs/README.md @@ -32,7 +32,7 @@ RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以 ### Sponsors -[Sayori Studio](https://t.me/SayoriStudio) . [Sion Kazama](https://blog.sion.moe) . [琚致远](https://www.shaoyaoju.org/) . [Rolly RSS 阅读器](https://www.coolapk.com/apk/239500) . [mokeyjay](https://www.mokeyjay.com/) . [tkaray](https://rayray.moe/) . [NeverBehave](https://never.pet/) . [萌开源联盟](https://www.moeunion.com) . [hooke007](https://github.com/hooke007/MPV_lazy) +[Sayori Studio](https://t.me/SayoriStudio) . [Sion Kazama](https://blog.sion.moe) . [琚致远](https://www.shaoyaoju.org/) . [Rolly RSS 阅读器](https://www.coolapk.com/apk/239500) . [mokeyjay](https://www.mokeyjay.com/) . [tkaray](https://rayray.moe/) . [NeverBehave](https://never.pet/) . [萌开源联盟](https://www.moeunion.com) . [hooke007](https://github.com/hooke007/MPV_lazy) . [feeds.pub](https://feeds.pub) [![](https://opencollective.com/static/images/become_sponsor.svg)](/support/) diff --git a/docs/en/README.md b/docs/en/README.md index f79ef36f4..9e09a3ad6 100644 --- a/docs/en/README.md +++ b/docs/en/README.md @@ -30,7 +30,7 @@ RSSHub delivers millions of contents aggregated from all kinds of sources, our v ### Sponsors -[Sayori Studio](https://t.me/SayoriStudio) . [Sion Kazama](https://blog.sion.moe) . [琚致远](https://www.shaoyaoju.org/) . [Rolly RSS 阅读器](https://www.coolapk.com/apk/239500) . [mokeyjay](https://www.mokeyjay.com/) . [tkaray](https://rayray.moe/) . [NeverBehave](https://never.pet/) . [萌开源联盟](https://www.moeunion.com) . [hooke007](https://github.com/hooke007/MPV_lazy) +[Sayori Studio](https://t.me/SayoriStudio) . [Sion Kazama](https://blog.sion.moe) . [琚致远](https://www.shaoyaoju.org/) . [Rolly RSS 阅读器](https://www.coolapk.com/apk/239500) . [mokeyjay](https://www.mokeyjay.com/) . [tkaray](https://rayray.moe/) . [NeverBehave](https://never.pet/) . [萌开源联盟](https://www.moeunion.com) . [hooke007](https://github.com/hooke007/MPV_lazy) . [feeds.pub](https://feeds.pub) [![](https://opencollective.com/static/images/become_sponsor.svg)](/en/support/)