Skip to content

2022

博客支持刚刚发布

¥Blog support just landed

嘿!您正在浏览我们全新的博客,它使用全新的内置博客插件构建。使用此插件,您可以轻松创建博客,与文档同步,或独立运行。

¥Hey there! You're looking at our new blog, built with the brand new built-in blog plugin. With this plugin, you can easily build a blog alongside your documentation or standalone.

正如过去几年许多用户所期望的那样,Material 中对博客的支持是 MkDocs 功能集中亟待解决的问题。虽然大家都认为博客支持是一个盲点,但 MkDocs 能否扩展以实现我们熟知的Jekyll及其同类产品中的博客功能尚不明确。内置的博客插件证明了,在 MkDocs 之上构建博客引擎是可行的,这样就可以在文档之外创建技术博客,或者将其作为主要内容。

¥Proper support for blogging, as requested by many users over the past few years, was something that was desperately missing from Material for MkDocs' feature set. While everybody agreed that blogging support was a blind spot, it was not obvious whether MkDocs could be extended in a way to allow for blogging as we know it from Jekyll and friends. The built-in blog plugin proves that it is, after all, possible to build a blogging engine on top of MkDocs, in order to create a technical blog alongside your documentation, or as the main thing.

中文搜索支持 – 中文搜索​支持

¥Chinese search support – 中文搜索​支持

Insiders 为内置搜索插件添加了实验性的中文支持——鉴于中国用户数量众多,这一功能已被呼吁许久。

¥Insiders adds experimental Chinese language support for the built-in search plugin – a feature that has been requested for a long time given the large number of Chinese users.

继美国和德国之后,MkDocs 用户使用 Material 的第三大来源国是中国。长期以来,内置搜索插件无法正确分割中文字符,主要是因为缺少用于搜索分词和词干提取的lunr-languages支持。最新的 Insiders 版本为内置搜索插件添加了期待已久的中文支持,这是许多用户一直呼吁的。

¥After the United States and Germany, the third-largest country of origin of Material for MkDocs users is China. For a long time, the built-in search plugin didn't allow for proper segmentation of Chinese characters, mainly due to missing support in lunr-languages which is used for search tokenization and stemming. The latest Insiders release adds long-awaited Chinese language support for the built-in search plugin, something that has been requested by many users.