2.9.0 #56
EveSunMaple
announced in
Announcements
2.9.0
#56
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Important
所有
MDX
组件已经移动至components/mdx
目录之下,更新版本后请及时修改引用路径![2.9.0] - 2024-12-28
Features
mdx/TocCopllapse.astro
组件用于在文章中添加折叠的目录(小屏幕侧边栏无法显示时才出现)remark-heading-extractor.mjs
在服务端提取标题并存贮在frontmatter
中Note
原本想通过此组件实现在服务端生成所有目录, 但发现侧边栏并不在
Swup
的按需渲染范围之中, 所以只能保留在客户端生成目录的形式TocCard.astro
(拆分Tool.astro
)Refactored
ProfileCard.astro
并优化了样式License.astro
组件的样式与构建逻辑MDX
组件进行了样式优化alert
使用统一格式Kbd.astro
新增大小size
选项Collapse.astro
组件使用自定义格式而非由 DaisyUI 提供Diff.astro
组件添加了rightAlt
等选项TimeLine.astro
组件的样式并添加了动效LinkCard.astro
组件的结构与样式TocCopllapse.astro
组件badge
的样式而不是使用 DaisyUI 提供的默认样式TagCard.astro
与CategoryCard.astro
中使用全新的badge
样式EnvelopeCard.astro
组件的样式badge
样式BaseCard.astro
组件中文章信息的样式ProjectCard.astro
组件的样式与逻辑utils/github.ts
等文件中Watch
的数据统计Navbar.astro
组件的样式与逻辑Pagination.astro
TocCard
的滑动条code
的样式Fix
CategoryCard.astro
组件中错误的变量命名Chore
interface
的定义iconify
提供的图标EN
Important
All
MDX
components have been moved to thecomponents/mdx
directory. Please update the import paths after upgrading to the new version![2.9.0] - 2024-12-28
Features
mdx/TocCollapse.astro
component to add a collapsible table of contents in articles (it only appears when the sidebar is not visible on small screens).remark-heading-extractor.mjs
to extract headings on the server side and store them infrontmatter
.Note
The initial intention was to generate the entire table of contents on the server side, but it was found that the sidebar is not part of the on-demand rendering range of
Swup
, so the table of contents can only be generated on the client side.TocCard.astro
(split fromTool.astro
).Refactored
ProfileCard.astro
, and optimized the styles.License.astro
component.MDX
components.alert
components.Kbd.astro
and added asize
option.Collapse.astro
component to use custom formats instead of DaisyUI.rightAlt
for theDiff.astro
component.TimeLine.astro
and added animations.LinkCard.astro
.TocCollapse.astro
component.badge
styles instead of using DaisyUI’s default.badge
style inTagCard.astro
andCategoryCard.astro
.EnvelopeCard.astro
.badge
style for article category and tag information.BaseCard.astro
.ProjectCard.astro
.utils/github.ts
and other files.Watch
.Navbar.astro
.Pagination.astro
.TocCard
.code
.Fix
CategoryCard.astro
.Chore
interface
definitions.iconify
.Full Changelog: v2.9.0-rc...v2.9.0
This discussion was created from the release 2.9.0.
Beta Was this translation helpful? Give feedback.
All reactions