-
Notifications
You must be signed in to change notification settings - Fork 22
将文档构建工具迁移至 Starlight #398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
将文档构建工具迁移至 Starlight #398
Conversation
|
Request review @Glavo @burningtnt @zkitefly |
|
还考虑添加 hits 标签吗 |
QQ 暂时不太好加。 |
e41ead8 to
a1b0c5c
Compare
https://hits.zkitefly.eu.org/?tag=https%3A%2F%2Fdocs.hmcl.net%2F&format=json 已添加,访问如上地址即可 |
see be33c5c |
eabdae6 to
52b823d
Compare
|
我在考虑是否借这个 PR 的机会顺便调整一下构建与部署流程:由 GitHub Actions 负责构建并将产物上传到 pages 分支;Drone 仅负责拉取该分支并复制到指定的部署目录。 |

将文档构建工具迁移至 Starlight
本 PR 计划将构建工具从 Jekyll 迁移到 starlight 。目前总体上完成迁移,但仍有一些细节需要修改。
starlight 支持多语言、支持构建时生成 webp 图片,因此也可同时解决 #189 #318 。
clone 本仓库并切换到该分支后需要先使用
npm install安装依赖。之后你可以使用npm run dev运行开发服务器,使用npm run format格式化代码,使用npm run build构建产物。变动
/changelog/xxx迁移到/changelogs/xxx旧地址仍提供旧的 html 结构供客户端解析日志,网页访客访问旧地址会被重定向到新地址。https://github.com/neveler/HMCL-docs/blob/cfc0f91ab9d0237424861affe5fd3fdc011e3337/astro.config.ts#L19-L32
https://starlight.astro.build/zh-cn/components/file-tree/
https://starlight.astro.build/zh-cn/components/steps/
参考
预览
https://fork-starlight-docs.hmcl.workers.dev/
resolve #397