Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR 此前没有任何检查,构建失败要到合入、部署时才发现;站内链接指向改过名的路由或标题时,读者会静默落到 404 页或页首。
ci.yml:PR 上跑npm ci、npm run lint、npm run buildscripts/prerender.mjs在预渲染之后检查每一页的站内链接:路径必须是已渲染的路由或构建出的文件(目录不算,Pages 对它回 404),#后的锚点必须是目标页上存在的 id。有断链时构建失败,并逐条列出「来源页: 链接」。部署走同一个构建,所以断链也进不了 maindeploy.yml的actions/checkout、actions/setup-node升到 v7,与其它仓库一致测试:当前全站 21 个路由通过;把「重置应急密码」标题改名后,构建列出 4 个页面的断链;把 FAQ 里一个
/install/batch链接改成/install/batches后同样失败;指向目录/install的链接同样失败。