SocialSisterYi / bilibili-API-collect

哔哩哔哩-API收集整理【不断更新中....】
https://socialsisteryi.github.io/bilibili-API-collect/
Other
15.23k stars 1.73k forks source link

JSONC highlighting & Upgrade VuePress #1091

Open SessionHu opened 2 months ago

SessionHu commented 2 months ago

This PR tries to support JSONC highlighting in VuePress and upgrades VuePress to the latest version. The NodeJS version is also upgraded to 20.

Workflows in this PR do not use secrets.ACCESS_TOKEN and branch gh_pages any more. Pages are deploying to GitHub Pages using custom workflows now. You may need to go to this page and set Build and deployment -> Source to GitHub Actions.

At the same time, it fixes some broken links and wrong code block languages. You can also see these contributors at the bottom of every pages. The build failed problem is also fixed in this PR.

See #1045 to learn more about JSONC support.

Demo: https://sessionhu.github.io/bilibili-API-collect/

~Known issue: Running yarn build may sometimes result in OOM if running environment available memory less than 8GiB.~

~ps: This PR makes the changes in same files as #1088. Merging either will cause conflicts with the other.~