-
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
Draft
neveler
wants to merge
34
commits into
HMCL-dev:main
Choose a base branch
from
neveler:fork/starlight
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
将文档构建工具迁移至 Starlight #398
+2,156
−3,426
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
Contributor
Author
|
Request review @Glavo @burningtnt @zkitefly |
Member
Member
|
还考虑添加 hits 标签吗 |
Contributor
Author
如果有必要的话可以加,但相比于返回一个图片我更希望可以额外提供一个 api 接口返回 json 这样前端可以更灵活的渲染该组件。 例如 https://hits.zkitefly.eu.org/json?tag=https%3A%2F%2Fdocs.hmcl.net%2F {
"today-hits": 114,
"total-hits": 1144
} |
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.

将文档构建工具迁移至 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