mirror of
https://github.com/Wcowin/Mkdocs-Wcowin.git
synced 2025-07-20 08:56:35 +00:00
Deployed 08e8327 with MkDocs version: 1.6.1
This commit is contained in:
parent
86cbf9ecf8
commit
434d4564e0
6
.ai_cache/13352c45213bc8b828bab035a8bdf5b8.json
Normal file
6
.ai_cache/13352c45213bc8b828bab035a8bdf5b8.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "giscus是基于GitHub Discussions的开源评论系统,无需数据库,数据直接存储在GitHub中。具有无跟踪、无广告、永久免费的特点,支持多语言、自定义主题和高可配置性。系统自动同步GitHub评论更新,允许自建服务,适合开发者集成到静态网站。通过简单配置即可实现评论功能,提供与Twikoo类似的用户体验。",
|
||||
"service": "deepseek",
|
||||
"page_title": "添加评论系统(giscus为例)",
|
||||
"timestamp": "2025-06-03T15:03:13.282472"
|
||||
}
|
6
.ai_cache/1b4e1af979077c14c74bbed4bef9c267.json
Normal file
6
.ai_cache/1b4e1af979077c14c74bbed4bef9c267.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "2022年网站建设过程包括:10月建立Github仓库并正式建站,取消cookie确认以简化流程并保障隐私,新增首页反馈功能;6月确定采用MKdocs框架搭建网站,并完成域名注册。更新重点围绕技术架构优化和用户体验改进展开。",
|
||||
"service": "deepseek",
|
||||
"page_title": "2022网站更新记录",
|
||||
"timestamp": "2025-06-03T15:02:01.059291"
|
||||
}
|
6
.ai_cache/277b36310e56b2d1abf896f3be1decbe.json
Normal file
6
.ai_cache/277b36310e56b2d1abf896f3be1decbe.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "霞鹜文楷是一款基于日本Klee One衍生的开源中文字体,兼具仿宋和楷体特点,适合诗词及注释排版。提供多个版本(屏幕阅读版、轻便版、GB/TC版等)满足不同场景需求。作为开源项目,它解决了商业字体侵权风险,并通过深度学习补全了简繁汉字及谚文字符。用户可通过GitHub、Gitee等平台获取,支持Windows/macOS系统安装。字体采用SIL开源协议,适合网站及开发者嵌入使用。",
|
||||
"service": "deepseek",
|
||||
"page_title": "修改网站字体",
|
||||
"timestamp": "2025-06-03T15:03:32.264117"
|
||||
}
|
6
.ai_cache/3d9da43a479c2f295e2ac1fd9b1d4145.json
Normal file
6
.ai_cache/3d9da43a479c2f295e2ac1fd9b1d4145.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "唐·诺曼提出的情感设计三层次理论包括本能层、行为层和反思层。本能层关注产品外观引发的即时情感反应,行为层强调使用过程中的功能性和效率,反思层涉及用户对产品的理性评价和自我形象关联。这三个层次相互影响,共同塑造用户对产品的整体体验。该理论为设计提供了系统框架,帮助平衡美学、实用性和情感价值,广泛应用于产品开发与用户体验优化。",
|
||||
"service": "deepseek",
|
||||
"page_title": "唐·诺曼—情感设计的三个层次",
|
||||
"timestamp": "2025-06-03T14:58:22.109862"
|
||||
}
|
6
.ai_cache/41af14f53464f96f48f956e0a80c7fac.json
Normal file
6
.ai_cache/41af14f53464f96f48f956e0a80c7fac.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "该文章介绍了通过JavaScript和CSS自定义网页鼠标样式的实现方法,重点说明了关键参数配置,包括鼠标尺寸、颜色(支持RGB值和颜色名称)以及跟随效果。提供了具体的代码示例和配置步骤,需在mkdocs.yml中引入相关文件。适用于需要个性化鼠标交互效果的网页开发场景。",
|
||||
"service": "deepseek",
|
||||
"page_title": "JS实现鼠标样式",
|
||||
"timestamp": "2025-06-03T15:03:43.631382"
|
||||
}
|
6
.ai_cache/5babf7c4c0d88d50ac56ea5a64bece7f.json
Normal file
6
.ai_cache/5babf7c4c0d88d50ac56ea5a64bece7f.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "该技术方案通过git-revision-date-localized插件为MKdocs文档系统自动添加文章修订时间戳。核心实现是在CI工作流中配置选择性启用git历史检查,既避免了本地渲染时的性能损耗,又能在发布时准确显示最后更新时间。该方法优化了文档维护流程,特别适合需要展示内容时效性的技术文档网站。",
|
||||
"service": "deepseek",
|
||||
"page_title": "为MKdocs添加文章修订时间戳",
|
||||
"timestamp": "2025-06-03T15:03:51.241522"
|
||||
}
|
6
.ai_cache/63c53d3efcef0bbfa3517cc57124ea22.json
Normal file
6
.ai_cache/63c53d3efcef0bbfa3517cc57124ea22.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "本文详细介绍了Mkdocs配置文件mkdocs.yml的核心配置项,包括站点基本信息、主题配色方案(支持明暗模式切换)、导航功能(目录结构、返回顶部等)、搜索优化、多语言支持以及扩展功能(代码复制、标签系统等)。重点讲解了如何通过extra_javascript和extra_css实现样式自定义,并提供了标签系统、数学公式支持等实用功能的实现方法。适合需要深度定制Mkdocs站点的开发者参考。",
|
||||
"service": "deepseek",
|
||||
"page_title": "2.Mkdocs配置说明(mkdocs.yml)",
|
||||
"timestamp": "2025-06-03T15:01:44.653682"
|
||||
}
|
6
.ai_cache/676d241d1f71cee7979d1437ab409429.json
Normal file
6
.ai_cache/676d241d1f71cee7979d1437ab409429.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "MWeb Pro是一款专为macOS设计的专业Markdown写作与笔记应用,支持GFM语法扩展(含表格、LaTeX、代码块等)及多种图表库(mermaid/PlantUML等)。提供高效的图文混排功能,支持拖拽插入图片和自定义宽度。支持导出多种格式(PDF/HTML/Epub等)并可直接发布到WordPress/印象笔记等平台。内置强大的文档管理系统,支持分类树、标签和多端同步,适合知识管理、博客写作及静态网站生成。",
|
||||
"service": "deepseek",
|
||||
"page_title": "MWeb Pro",
|
||||
"timestamp": "2025-06-03T14:58:02.956945"
|
||||
}
|
6
.ai_cache/6e3557e004b1983d54297433aa07fe32.json
Normal file
6
.ai_cache/6e3557e004b1983d54297433aa07fe32.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "本文探讨了MkDocs中使用相对地址引用资源时的常见问题与解决方案,重点分析了图片、PDF、跨页面及静态资源的正确引用方式。核心要点包括:路径应以当前Markdown文件为基准,区分大小写,并以`docs`目录为根目录进行定位。文章提供了具体代码示例,并针对本地与线上环境差异、路径错误等典型问题给出了排查建议,强调统一目录结构对维护的重要性。",
|
||||
"service": "deepseek",
|
||||
"page_title": "相对地址的一些问题",
|
||||
"timestamp": "2025-06-03T15:02:42.854475"
|
||||
}
|
6
.ai_cache/7312994b59876da56cecf87e6ce38b89.json
Normal file
6
.ai_cache/7312994b59876da56cecf87e6ce38b89.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "本文详细介绍了使用MkDocs框架部署静态网站到GitHub Pages的完整流程。重点包括:通过GitHub Desktop管理仓库,配置mkdocs.yml基础设置,添加GitHub Workflow实现自动化部署,以及最终发布到自定义域名。教程特别强调了目录结构管理和关键配置步骤,适合快速搭建个人博客或文档网站。配套视频和中文文档降低了技术门槛,使静态网站部署更加高效便捷。",
|
||||
"service": "deepseek",
|
||||
"page_title": "1.利用Mkdocs部署静态网页",
|
||||
"timestamp": "2025-06-03T15:01:32.540524"
|
||||
}
|
6
.ai_cache/77612039e8879ec0a34732497e4d927b.json
Normal file
6
.ai_cache/77612039e8879ec0a34732497e4d927b.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "MIT许可证授予用户自由使用、修改、分发软件的广泛权利,仅要求保留版权声明和许可条款。该许可证明确声明软件按\"原样\"提供,不承担任何质量担保或法律责任,适用于希望最大限度共享代码的开源项目。典型应用场景包括商业和学术领域的软件二次开发与分发。",
|
||||
"service": "deepseek",
|
||||
"page_title": "许可声明",
|
||||
"timestamp": "2025-06-03T15:01:24.607113"
|
||||
}
|
6
.ai_cache/78377a142b37e49176adad2a7dc5ea03.json
Normal file
6
.ai_cache/78377a142b37e49176adad2a7dc5ea03.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "本文介绍了使用MkDocs构建网站时的性能优化方法,包括采用WebP等现代图片格式压缩资源、通过CDN分发静态文件加速访问,以及优化git插件配置提升本地渲染效率。重点推荐jsDelivr CDN服务和开发/生产环境差异化配置策略,建议使用Lighthouse工具验证优化效果。这些措施能有效降低页面加载延迟,提升用户体验。",
|
||||
"service": "deepseek",
|
||||
"page_title": "加速网站访问的一些心得",
|
||||
"timestamp": "2025-06-03T15:02:53.389962"
|
||||
}
|
6
.ai_cache/88d3fe972a711ac574cdb224f89be6f8.json
Normal file
6
.ai_cache/88d3fe972a711ac574cdb224f89be6f8.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "该技术文档介绍了三种网页背景特效的实现方法:雪花、樱花和粒子效果。核心是通过JavaScript动态加载特效脚本,并利用LocalStorage存储用户偏好设置来控制特效显示。代码示例展示了如何通过DOM操作插入外部脚本,适用于需要增强页面视觉吸引力的场景,同时支持用户自定义显示选项。",
|
||||
"service": "deepseek",
|
||||
"page_title": "背景特效",
|
||||
"timestamp": "2025-06-03T15:03:01.635832"
|
||||
}
|
6
.ai_cache/89458e1939eedd5696536b60dff41f99.json
Normal file
6
.ai_cache/89458e1939eedd5696536b60dff41f99.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "该网站2024年更新主要聚焦性能优化与功能改进,包括持续优化页面流畅度、启用CDN加速、精简冗余代码、美化UI设计。技术层面引入自动新标签页打开功能,迁移图片至SMMS提升稳定性,并集成git-revision-date-localized-plugin记录文档时间。内容方面更新了MKdocs教程系列,同时修复了页脚显示等细节问题。全站通过代码瘦身和资源优化显著提升了访问速度。",
|
||||
"service": "deepseek",
|
||||
"page_title": "2024网站更新记录",
|
||||
"timestamp": "2025-06-03T15:02:25.536842"
|
||||
}
|
6
.ai_cache/93960e1d1b82fdcade6022ecf95972c4.json
Normal file
6
.ai_cache/93960e1d1b82fdcade6022ecf95972c4.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "2023年网站持续优化升级,主要改进包括:引入AI问答机器人(25条/月限制)、新增多语言支持(含台湾地区)、建立Mkdocs-Wcowin主题框架。技术优化涵盖图片懒加载、Latex渲染修复、移动端适配及网站流畅度提升。新增功能模块包括博客系统、留言板(集成giscus)、友链版块和搜索功能。设计方面优化了字体、圆角风格及页面导航,同步维护国内镜像站点。",
|
||||
"service": "deepseek",
|
||||
"page_title": "2023网站更新记录",
|
||||
"timestamp": "2025-06-03T15:02:13.355389"
|
||||
}
|
6
.ai_cache/ab758b5aa76ff31704c3afef8781f32b.json
Normal file
6
.ai_cache/ab758b5aa76ff31704c3afef8781f32b.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "本文介绍了Git版本控制系统的核心操作与实用技巧,涵盖仓库创建、分支管理、冲突解决等基础功能,并重点讲解了stash暂存、rebase/merge策略选择、cherry-pick等高级用法。通过具体代码示例和场景说明,帮助开发者高效处理代码版本管理中的常见问题,优化团队协作流程。特别针对合并冲突、提交修改等痛点场景提供了标准化解决方案。",
|
||||
"service": "deepseek",
|
||||
"page_title": "Git 实用技巧",
|
||||
"timestamp": "2025-06-03T14:57:53.455499"
|
||||
}
|
6
.ai_cache/b4fdcb1514d03b4a0bfa36bce929faae.json
Normal file
6
.ai_cache/b4fdcb1514d03b4a0bfa36bce929faae.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "该网站2025年更新记录显示持续优化流畅度,重点修复了Markdown解析、评论区重定位等关键问题,改进了友链统计和图片显示功能。更新包括教程适配最新版本、引入glightbox插件(后取消)以及界面布局优化。技术改进涉及代码重写和性能提升,同时记录了开发者个人动态。维护工作以功能修复和用户体验提升为核心。",
|
||||
"service": "deepseek",
|
||||
"page_title": "2025网站更新记录",
|
||||
"timestamp": "2025-06-03T15:02:34.235693"
|
||||
}
|
6
.ai_cache/bd5eaaa9ad0f9655b0296602b3e4df7d.json
Normal file
6
.ai_cache/bd5eaaa9ad0f9655b0296602b3e4df7d.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "本文介绍了网页圆角化设计的实现方法,重点讲解通过CSS样式文件实现图片和边框的圆角效果。具体包括在mkdocs.yml中引入CSS文件、编写圆角样式代码以及在Markdown文件中应用的方法,同时展示了按钮和卡片组件的圆角化示例。该技术可提升网页视觉美感,适用于文档网站和UI组件的美化。",
|
||||
"service": "deepseek",
|
||||
"page_title": "网页圆角化设计",
|
||||
"timestamp": "2025-06-03T15:04:07.194452"
|
||||
}
|
6
.ai_cache/c8088321e603b20469a9826a88748350.json
Normal file
6
.ai_cache/c8088321e603b20469a9826a88748350.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "Tidio提供免费、无需梯子的在线聊天解决方案,通过简单的JavaScript代码集成到网站。用户只需注册账号,从设置中获取专属代码并嵌入网页即可实现实时聊天功能。该工具安装便捷,适合快速部署,满足中小型网站的客户沟通需求,且免费版功能已足够日常使用。",
|
||||
"service": "deepseek",
|
||||
"page_title": "添加在线聊天",
|
||||
"timestamp": "2025-06-03T15:03:58.990507"
|
||||
}
|
6
.ai_cache/cb9d4d1856da4475fdde51c070fbc24d.json
Normal file
6
.ai_cache/cb9d4d1856da4475fdde51c070fbc24d.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "本文介绍了MkDocs文档工具的学习资源和使用指南,包括官方教程、Material主题教程以及中文教程(语雀/CSDN/知乎)。提供了快速入门的三步部署方案(GitHub Pages配置、mkdocs.yml设置、博客集成),并附有视频教程。最后请求使用者标注教程来源,支持知识共享。",
|
||||
"service": "deepseek",
|
||||
"page_title": "0.Mkdocs教程前言",
|
||||
"timestamp": "2025-06-03T15:01:53.347846"
|
||||
}
|
6
.ai_cache/cee9dfb7bfb56fa9e63e493a418499c3.json
Normal file
6
.ai_cache/cee9dfb7bfb56fa9e63e493a418499c3.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "该文阐述了设计领域的核心原则与实践要点,强调简洁性、视觉美感与用户体验的平衡。作者提出六大关键维度:通过精简元素实现功能聚焦,运用美学原则提升视觉表现,以用户行为驱动交互设计,注重细节打磨品质感,鼓励创新融合突破常规,以及通过叙事引发情感共鸣。这些观点系统性地揭示了优秀设计应兼具功能性、审美价值与人文关怀的特质。",
|
||||
"service": "deepseek",
|
||||
"page_title": "我对设计的一些观点",
|
||||
"timestamp": "2025-06-03T14:58:33.845211"
|
||||
}
|
6
.ai_cache/d117ae5382dbad25458d5b090dcb8c42.json
Normal file
6
.ai_cache/d117ae5382dbad25458d5b090dcb8c42.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"summary": "Markdown是一种轻量级标记语言,支持纯文本编写并转换为多种格式(如HTML、PDF)。其核心语法包括标题、列表、表格、代码块等结构化元素,以及文本样式(粗体/斜体)、链接和图片插入功能。兼容HTML标签并支持特殊字符转义,适用于文档编写、笔记记录等场景。主流编辑器(如MacDown、StackEdit)提供跨平台支持,具有易读易写的特性,是技术文档和内容创作的常用工具。",
|
||||
"service": "deepseek",
|
||||
"page_title": "Markdown指南",
|
||||
"timestamp": "2025-06-03T14:58:12.110675"
|
||||
}
|
@ -18,7 +18,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2353,6 +2353,10 @@
|
||||
|
||||
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>225</strong></p>
|
||||
</div>
|
||||
<h1 id="_1">首頁<a class="headerlink" href="#_1" title="Permanent link">¶</a></h1>
|
||||
<!-- <center><font color= #518FC1 size=6>“循此苦旅,以达星辰”</font></center> -->
|
||||
<center><font color= #518FC1 size=6 class="ml3">“循此苦旅 以達星辰”</font></center>
|
||||
@ -2632,7 +2636,7 @@ t.parentNode.insertBefore(e,t)}})();
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年5月7日 08:10:59">2025-05-07</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年5月7日 08:10:59 UTC">2025-05-07</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2908,7 +2908,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年5月11日 08:19:22">2025-05-11</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年5月11日 08:19:22 UTC">2025-05-11</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2455,7 +2455,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年5月8日 00:42:37">2025-05-08</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年5月8日 00:42:37 UTC">2025-05-08</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -3551,7 +3551,7 @@ purus auctor massa, nec semper lorem quam in massa.</p>
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2024年4月22日 08:31:43">2024-04-22</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2024年4月22日 08:31:43 UTC">2024-04-22</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2626,7 +2626,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 06:56:23">2025-04-19</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 06:56:23 UTC">2025-04-19</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2516,7 +2516,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2024年4月6日 02:18:17">2024-04-06</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2024年4月6日 02:18:17 UTC">2024-04-06</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2485,6 +2485,14 @@
|
||||
|
||||
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>2022年网站建设过程包括:10月建立Github仓库并正式建站,取消cookie确认以简化流程并保障隐私,新增首页反馈功能;6月确定采用MKdocs框架搭建网站,并完成域名注册。更新重点围绕技术架构优化和用户体验改进展开。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>64</strong></p>
|
||||
</div>
|
||||
<h2 id="2022-10-20"></p><h1 id="01" name="01"><strong>2022-10-20</strong></h1><p><a class="headerlink" href="#2022-10-20" title="Permanent link">¶</a></h2>
|
||||
<ul>
|
||||
<li>建立Github仓库,正式建站</li>
|
||||
@ -2570,7 +2578,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2024年4月6日 02:18:17">2024-04-06</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2024年4月6日 02:18:17 UTC">2024-04-06</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2575,6 +2575,14 @@
|
||||
|
||||
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>2023年网站持续优化升级,主要改进包括:引入AI问答机器人(25条/月限制)、新增多语言支持(含台湾地区)、建立Mkdocs-Wcowin主题框架。技术优化涵盖图片懒加载、Latex渲染修复、移动端适配及网站流畅度提升。新增功能模块包括博客系统、留言板(集成giscus)、友链版块和搜索功能。设计方面优化了字体、圆角风格及页面导航,同步维护国内镜像站点。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>392</strong></p>
|
||||
</div>
|
||||
<h2 id="2023-12-21"></p><h1 id="01" name="01"><strong>2023-12-21</strong></h1><p><a class="headerlink" href="#2023-12-21" title="Permanent link">¶</a></h2>
|
||||
<ul>
|
||||
<li>优化网站流畅度(玄学)</li>
|
||||
@ -2753,7 +2761,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2024年4月6日 02:18:17">2024-04-06</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2024年4月6日 02:18:17 UTC">2024-04-06</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2665,6 +2665,14 @@
|
||||
|
||||
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>该网站2024年更新主要聚焦性能优化与功能改进,包括持续优化页面流畅度、启用CDN加速、精简冗余代码、美化UI设计。技术层面引入自动新标签页打开功能,迁移图片至SMMS提升稳定性,并集成git-revision-date-localized-plugin记录文档时间。内容方面更新了MKdocs教程系列,同时修复了页脚显示等细节问题。全站通过代码瘦身和资源优化显著提升了访问速度。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>522</strong> | 有效代码行数:<strong>43</strong></p>
|
||||
</div>
|
||||
<h2 id="2024-12-24"></p><h1 id="01" name="01"><strong>2024-12-24</strong></h1><p><a class="headerlink" href="#2024-12-24" title="Permanent link">¶</a></h2>
|
||||
<ul>
|
||||
<li>优化网站流畅度(玄学)</li>
|
||||
@ -2971,7 +2979,7 @@ Look at this source <a href="https://github.com/JakubAndrysek/mkdocs-open-in-new
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2024年12月24日 08:39:27">2024-12-24</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2024年12月24日 08:39:27 UTC">2024-12-24</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2582,6 +2582,14 @@
|
||||
|
||||
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>该网站2025年更新记录显示持续优化流畅度,重点修复了Markdown解析、评论区重定位等关键问题,改进了友链统计和图片显示功能。更新包括教程适配最新版本、引入glightbox插件(后取消)以及界面布局优化。技术改进涉及代码重写和性能提升,同时记录了开发者个人动态。维护工作以功能修复和用户体验提升为核心。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>349</strong></p>
|
||||
</div>
|
||||
<h2 id="2025-04-30"></p><h1 id="01" name="01"><strong>2025-04-30</strong></h1><p><a class="headerlink" href="#2025-04-30" title="Permanent link">¶</a></h2>
|
||||
<ul>
|
||||
<li>优化网站流畅度(玄学)</li>
|
||||
@ -2600,7 +2608,7 @@
|
||||
<h2 id="2025-04-10"></p><h1 id="01" name="01"><strong>2025-04-10</strong></h1><p><a class="headerlink" href="#2025-04-10" title="Permanent link">¶</a></h2>
|
||||
<ul>
|
||||
<li>优化网站流畅度(玄学)</li>
|
||||
<li>优化<a href="../../about/link.md">友链</a>统计方式,更加准确计数</li>
|
||||
<li>优化<a href="../../../../../link/">友链</a>统计方式,更加准确计数</li>
|
||||
<li>修复评论区重定位的bug,防止他人网站测试评论区导致评论区覆盖到我的网站</li>
|
||||
</ul>
|
||||
<h2 id="2025-03-30"></p><h1 id="01" name="01"><strong>2025-03-30</strong></h1><p><a class="headerlink" href="#2025-03-30" title="Permanent link">¶</a></h2>
|
||||
@ -2726,7 +2734,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月30日 08:34:35">2025-04-30</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年6月3日 07:11:05 UTC">2025-06-03</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2369,6 +2369,14 @@
|
||||
|
||||
<h1>许可声明</h1>
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>MIT许可证授予用户自由使用、修改、分发软件的广泛权利,仅要求保留版权声明和许可条款。该许可证明确声明软件按"原样"提供,不承担任何质量担保或法律责任,适用于希望最大限度共享代码的开源项目。典型应用场景包括商业和学术领域的软件二次开发与分发。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>252</strong></p>
|
||||
</div>
|
||||
<p><img alt="" src="https://pic3.zhimg.com/80/v2-a0c07e85f2dfdfa5f1eed932883daa50_1440w.webp" /> </p>
|
||||
<div class="tabbed-set tabbed-alternate" data-tabs="1:2"><input checked="checked" id="__tabbed_1_1" name="__tabbed_1" type="radio" /><input id="__tabbed_1_2" name="__tabbed_1" type="radio" /><div class="tabbed-labels"><label for="__tabbed_1_1">麻省理工学院许可证</label><label for="__tabbed_1_2">MIT License</label></div>
|
||||
<div class="tabbed-content">
|
||||
@ -2453,7 +2461,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 06:56:23">2025-04-19</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 06:56:23 UTC">2025-04-19</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2490,6 +2490,14 @@
|
||||
|
||||
<h1>1.利用Mkdocs部署静态网页</h1>
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>本文详细介绍了使用MkDocs框架部署静态网站到GitHub Pages的完整流程。重点包括:通过GitHub Desktop管理仓库,配置mkdocs.yml基础设置,添加GitHub Workflow实现自动化部署,以及最终发布到自定义域名。教程特别强调了目录结构管理和关键配置步骤,适合快速搭建个人博客或文档网站。配套视频和中文文档降低了技术门槛,使静态网站部署更加高效便捷。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>485</strong> | 有效代码行数:<strong>75</strong></p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">Info</p>
|
||||
<p>Material for MkDocs官方网站: <a href="https://www.mkdocs.org/">Material for MkDocs</a><br />
|
||||
@ -2797,7 +2805,7 @@ MkDocs中文文档: <a href="https://hellowac.github.io/mkdocs-docs-zh/">MkDocs
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年2月19日 03:04:06">2025-02-19</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年2月19日 03:04:06 UTC">2025-02-19</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2772,6 +2772,14 @@
|
||||
|
||||
<h1>2.Mkdocs配置说明(mkdocs.yml)</h1>
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>本文详细介绍了Mkdocs配置文件mkdocs.yml的核心配置项,包括站点基本信息、主题配色方案(支持明暗模式切换)、导航功能(目录结构、返回顶部等)、搜索优化、多语言支持以及扩展功能(代码复制、标签系统等)。重点讲解了如何通过extra_javascript和extra_css实现样式自定义,并提供了标签系统、数学公式支持等实用功能的实现方法。适合需要深度定制Mkdocs站点的开发者参考。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>2</strong> 分钟 | 中文字符:<strong>818</strong> | 有效代码行数:<strong>555</strong></p>
|
||||
</div>
|
||||
<p>官方文件:<a href="https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/">Changing the colors - Material for MkDocs</a></p>
|
||||
<p><strong>建议详细学习一下上面的官方网站↑↑↑</strong></p>
|
||||
<p>我把我目前的配置文件mkdocs.yml代码写在下面👇🏻</p>
|
||||
@ -4076,7 +4084,7 @@ javascripts/mathjax.js里有对数学公式的扩展 </p>
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年2月4日 15:50:05">2025-02-04</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年2月4日 15:50:05 UTC">2025-02-04</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2448,7 +2448,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年2月19日 03:04:06">2025-02-19</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年2月19日 03:04:06 UTC">2025-02-19</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2375,6 +2375,10 @@
|
||||
|
||||
<h1>添加Mkdocs博客</h1>
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>114</strong> | 有效代码行数:<strong>19</strong></p>
|
||||
</div>
|
||||
<p>博客效果展示:<a href="../../">博客</a> </p>
|
||||
<p>官方文档:<a href="https://squidfunk.github.io/mkdocs-material/plugins/blog/">Built-in blog plugin</a></p>
|
||||
<p>与所有内置插件一样,博客插件的入门非常简单。只需将以下行添加到mkdocs.yml</p>
|
||||
@ -2487,7 +2491,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 11:19:17">2025-04-19</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 11:19:17 UTC">2025-04-19</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2508,6 +2508,14 @@
|
||||
|
||||
<h1>0.Mkdocs教程前言</h1>
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>本文介绍了MkDocs文档工具的学习资源和使用指南,包括官方教程、Material主题教程以及中文教程(语雀/CSDN/知乎)。提供了快速入门的三步部署方案(GitHub Pages配置、mkdocs.yml设置、博客集成),并附有视频教程。最后请求使用者标注教程来源,支持知识共享。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>222</strong> | 有效代码行数:<strong>5</strong></p>
|
||||
</div>
|
||||
<h2 id="_1">文档教程<a class="headerlink" href="#_1" title="Permanent link">¶</a></h2>
|
||||
<div class="grid cards">
|
||||
<ul>
|
||||
@ -2683,7 +2691,7 @@ Mkdocs Materials 教程:
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年5月7日 08:10:59">2025-05-07</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年5月7日 08:10:59 UTC">2025-05-07</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2392,6 +2392,14 @@
|
||||
</header>
|
||||
<div class="md-post__content md-typeset">
|
||||
<h2 id="2022"><a class="toclink" href="../../2022/06/06/2022%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/">2022网站更新记录</a></h2>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>2022年网站建设过程包括:10月建立Github仓库并正式建站,取消cookie确认以简化流程并保障隐私,新增首页反馈功能;6月确定采用MKdocs框架搭建网站,并完成域名注册。更新重点围绕技术架构优化和用户体验改进展开。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>64</strong></p>
|
||||
</div>
|
||||
<h3 id="2022-10-20"><a class="toclink" href="../../2022/06/06/2022%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/#2022-10-20"></p><h1 id="01" name="01"><strong>2022-10-20</strong></h1><p></a></h3>
|
||||
<ul>
|
||||
<li>建立Github仓库,正式建站</li>
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2392,6 +2392,14 @@
|
||||
</header>
|
||||
<div class="md-post__content md-typeset">
|
||||
<h2 id="2023"><a class="toclink" href="../../2023/12/21/2023%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/">2023网站更新记录</a></h2>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>2023年网站持续优化升级,主要改进包括:引入AI问答机器人(25条/月限制)、新增多语言支持(含台湾地区)、建立Mkdocs-Wcowin主题框架。技术优化涵盖图片懒加载、Latex渲染修复、移动端适配及网站流畅度提升。新增功能模块包括博客系统、留言板(集成giscus)、友链版块和搜索功能。设计方面优化了字体、圆角风格及页面导航,同步维护国内镜像站点。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>392</strong></p>
|
||||
</div>
|
||||
<h3 id="2023-12-21"><a class="toclink" href="../../2023/12/21/2023%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/#2023-12-21"></p><h1 id="01" name="01"><strong>2023-12-21</strong></h1><p></a></h3>
|
||||
<ul>
|
||||
<li>优化网站流畅度(玄学)</li>
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2392,6 +2392,14 @@
|
||||
</header>
|
||||
<div class="md-post__content md-typeset">
|
||||
<h2 id="2024"><a class="toclink" href="../../2024/01/01/2024%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/">2024网站更新记录</a></h2>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>该网站2024年更新主要聚焦性能优化与功能改进,包括持续优化页面流畅度、启用CDN加速、精简冗余代码、美化UI设计。技术层面引入自动新标签页打开功能,迁移图片至SMMS提升稳定性,并集成git-revision-date-localized-plugin记录文档时间。内容方面更新了MKdocs教程系列,同时修复了页脚显示等细节问题。全站通过代码瘦身和资源优化显著提升了访问速度。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>522</strong> | 有效代码行数:<strong>43</strong></p>
|
||||
</div>
|
||||
<h3 id="2024-12-24"><a class="toclink" href="../../2024/01/01/2024%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/#2024-12-24"></p><h1 id="01" name="01"><strong>2024-12-24</strong></h1><p></a></h3>
|
||||
<ul>
|
||||
<li>优化网站流畅度(玄学)</li>
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2392,6 +2392,14 @@
|
||||
</header>
|
||||
<div class="md-post__content md-typeset">
|
||||
<h2 id="2025"><a class="toclink" href="../../2025/01/01/2025%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/">2025网站更新记录</a></h2>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>该网站2025年更新记录显示持续优化流畅度,重点修复了Markdown解析、评论区重定位等关键问题,改进了友链统计和图片显示功能。更新包括教程适配最新版本、引入glightbox插件(后取消)以及界面布局优化。技术改进涉及代码重写和性能提升,同时记录了开发者个人动态。维护工作以功能修复和用户体验提升为核心。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>349</strong></p>
|
||||
</div>
|
||||
<h3 id="2025-04-30"><a class="toclink" href="../../2025/01/01/2025%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/#2025-04-30"></p><h1 id="01" name="01"><strong>2025-04-30</strong></h1><p></a></h3>
|
||||
<ul>
|
||||
<li>优化网站流畅度(玄学)</li>
|
||||
@ -2410,7 +2418,7 @@
|
||||
<h3 id="2025-04-10"><a class="toclink" href="../../2025/01/01/2025%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/#2025-04-10"></p><h1 id="01" name="01"><strong>2025-04-10</strong></h1><p></a></h3>
|
||||
<ul>
|
||||
<li>优化网站流畅度(玄学)</li>
|
||||
<li>优化<a href="../../about/link.md">友链</a>统计方式,更加准确计数</li>
|
||||
<li>优化<a href="../../../link/">友链</a>统计方式,更加准确计数</li>
|
||||
<li>修复评论区重定位的bug,防止他人网站测试评论区导致评论区覆盖到我的网站</li>
|
||||
</ul>
|
||||
<h3 id="2025-03-30"><a class="toclink" href="../../2025/01/01/2025%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/#2025-03-30"></p><h1 id="01" name="01"><strong>2025-03-30</strong></h1><p></a></h3>
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2392,6 +2392,14 @@
|
||||
</header>
|
||||
<div class="md-post__content md-typeset">
|
||||
<h2 id="2025"><a class="toclink" href="../../2025/01/01/2025%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/">2025网站更新记录</a></h2>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>该网站2025年更新记录显示持续优化流畅度,重点修复了Markdown解析、评论区重定位等关键问题,改进了友链统计和图片显示功能。更新包括教程适配最新版本、引入glightbox插件(后取消)以及界面布局优化。技术改进涉及代码重写和性能提升,同时记录了开发者个人动态。维护工作以功能修复和用户体验提升为核心。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>349</strong></p>
|
||||
</div>
|
||||
<h3 id="2025-04-30"><a class="toclink" href="../../2025/01/01/2025%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/#2025-04-30"></p><h1 id="01" name="01"><strong>2025-04-30</strong></h1><p></a></h3>
|
||||
<ul>
|
||||
<li>优化网站流畅度(玄学)</li>
|
||||
@ -2410,7 +2418,7 @@
|
||||
<h3 id="2025-04-10"><a class="toclink" href="../../2025/01/01/2025%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/#2025-04-10"></p><h1 id="01" name="01"><strong>2025-04-10</strong></h1><p></a></h3>
|
||||
<ul>
|
||||
<li>优化网站流畅度(玄学)</li>
|
||||
<li>优化<a href="../../about/link.md">友链</a>统计方式,更加准确计数</li>
|
||||
<li>优化<a href="../../../link/">友链</a>统计方式,更加准确计数</li>
|
||||
<li>修复评论区重定位的bug,防止他人网站测试评论区导致评论区覆盖到我的网站</li>
|
||||
</ul>
|
||||
<h3 id="2025-03-30"><a class="toclink" href="../../2025/01/01/2025%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/#2025-03-30"></p><h1 id="01" name="01"><strong>2025-03-30</strong></h1><p></a></h3>
|
||||
@ -2508,6 +2516,14 @@
|
||||
</header>
|
||||
<div class="md-post__content md-typeset">
|
||||
<h2 id="2024"><a class="toclink" href="../../2024/01/01/2024%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/">2024网站更新记录</a></h2>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>该网站2024年更新主要聚焦性能优化与功能改进,包括持续优化页面流畅度、启用CDN加速、精简冗余代码、美化UI设计。技术层面引入自动新标签页打开功能,迁移图片至SMMS提升稳定性,并集成git-revision-date-localized-plugin记录文档时间。内容方面更新了MKdocs教程系列,同时修复了页脚显示等细节问题。全站通过代码瘦身和资源优化显著提升了访问速度。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>522</strong> | 有效代码行数:<strong>43</strong></p>
|
||||
</div>
|
||||
<h3 id="2024-12-24"><a class="toclink" href="../../2024/01/01/2024%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/#2024-12-24"></p><h1 id="01" name="01"><strong>2024-12-24</strong></h1><p></a></h3>
|
||||
<ul>
|
||||
<li>优化网站流畅度(玄学)</li>
|
||||
@ -2786,6 +2802,14 @@ Look at this source <a href="https://github.com/JakubAndrysek/mkdocs-open-in-new
|
||||
</header>
|
||||
<div class="md-post__content md-typeset">
|
||||
<h2 id="2023"><a class="toclink" href="../../2023/12/21/2023%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/">2023网站更新记录</a></h2>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>2023年网站持续优化升级,主要改进包括:引入AI问答机器人(25条/月限制)、新增多语言支持(含台湾地区)、建立Mkdocs-Wcowin主题框架。技术优化涵盖图片懒加载、Latex渲染修复、移动端适配及网站流畅度提升。新增功能模块包括博客系统、留言板(集成giscus)、友链版块和搜索功能。设计方面优化了字体、圆角风格及页面导航,同步维护国内镜像站点。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>392</strong></p>
|
||||
</div>
|
||||
<h3 id="2023-12-21"><a class="toclink" href="../../2023/12/21/2023%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/#2023-12-21"></p><h1 id="01" name="01"><strong>2023-12-21</strong></h1><p></a></h3>
|
||||
<ul>
|
||||
<li>优化网站流畅度(玄学)</li>
|
||||
@ -2936,6 +2960,14 @@ Look at this source <a href="https://github.com/JakubAndrysek/mkdocs-open-in-new
|
||||
</header>
|
||||
<div class="md-post__content md-typeset">
|
||||
<h2 id="2022"><a class="toclink" href="../../2022/06/06/2022%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/">2022网站更新记录</a></h2>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>2022年网站建设过程包括:10月建立Github仓库并正式建站,取消cookie确认以简化流程并保障隐私,新增首页反馈功能;6月确定采用MKdocs框架搭建网站,并完成域名注册。更新重点围绕技术架构优化和用户体验改进展开。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>64</strong></p>
|
||||
</div>
|
||||
<h3 id="2022-10-20"><a class="toclink" href="../../2022/06/06/2022%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/#2022-10-20"></p><h1 id="01" name="01"><strong>2022-10-20</strong></h1><p></a></h3>
|
||||
<ul>
|
||||
<li>建立Github仓库,正式建站</li>
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2401,6 +2401,14 @@
|
||||
</header>
|
||||
<div class="md-post__content md-typeset">
|
||||
<h2 id="2025"><a class="toclink" href="2025/01/01/2025%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/">2025网站更新记录</a></h2>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>该网站2025年更新记录显示持续优化流畅度,重点修复了Markdown解析、评论区重定位等关键问题,改进了友链统计和图片显示功能。更新包括教程适配最新版本、引入glightbox插件(后取消)以及界面布局优化。技术改进涉及代码重写和性能提升,同时记录了开发者个人动态。维护工作以功能修复和用户体验提升为核心。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>349</strong></p>
|
||||
</div>
|
||||
<h3 id="2025-04-30"><a class="toclink" href="2025/01/01/2025%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/#2025-04-30"></p><h1 id="01" name="01"><strong>2025-04-30</strong></h1><p></a></h3>
|
||||
<ul>
|
||||
<li>优化网站流畅度(玄学)</li>
|
||||
@ -2419,7 +2427,7 @@
|
||||
<h3 id="2025-04-10"><a class="toclink" href="2025/01/01/2025%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/#2025-04-10"></p><h1 id="01" name="01"><strong>2025-04-10</strong></h1><p></a></h3>
|
||||
<ul>
|
||||
<li>优化网站流畅度(玄学)</li>
|
||||
<li>优化<a href="../../about/link.md">友链</a>统计方式,更加准确计数</li>
|
||||
<li>优化<a href="../link/">友链</a>统计方式,更加准确计数</li>
|
||||
<li>修复评论区重定位的bug,防止他人网站测试评论区导致评论区覆盖到我的网站</li>
|
||||
</ul>
|
||||
<h3 id="2025-03-30"><a class="toclink" href="2025/01/01/2025%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/#2025-03-30"></p><h1 id="01" name="01"><strong>2025-03-30</strong></h1><p></a></h3>
|
||||
@ -2517,6 +2525,14 @@
|
||||
</header>
|
||||
<div class="md-post__content md-typeset">
|
||||
<h2 id="2024"><a class="toclink" href="2024/01/01/2024%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/">2024网站更新记录</a></h2>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>该网站2024年更新主要聚焦性能优化与功能改进,包括持续优化页面流畅度、启用CDN加速、精简冗余代码、美化UI设计。技术层面引入自动新标签页打开功能,迁移图片至SMMS提升稳定性,并集成git-revision-date-localized-plugin记录文档时间。内容方面更新了MKdocs教程系列,同时修复了页脚显示等细节问题。全站通过代码瘦身和资源优化显著提升了访问速度。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>522</strong> | 有效代码行数:<strong>43</strong></p>
|
||||
</div>
|
||||
<h3 id="2024-12-24"><a class="toclink" href="2024/01/01/2024%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/#2024-12-24"></p><h1 id="01" name="01"><strong>2024-12-24</strong></h1><p></a></h3>
|
||||
<ul>
|
||||
<li>优化网站流畅度(玄学)</li>
|
||||
@ -2795,6 +2811,14 @@ Look at this source <a href="https://github.com/JakubAndrysek/mkdocs-open-in-new
|
||||
</header>
|
||||
<div class="md-post__content md-typeset">
|
||||
<h2 id="2023"><a class="toclink" href="2023/12/21/2023%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/">2023网站更新记录</a></h2>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>2023年网站持续优化升级,主要改进包括:引入AI问答机器人(25条/月限制)、新增多语言支持(含台湾地区)、建立Mkdocs-Wcowin主题框架。技术优化涵盖图片懒加载、Latex渲染修复、移动端适配及网站流畅度提升。新增功能模块包括博客系统、留言板(集成giscus)、友链版块和搜索功能。设计方面优化了字体、圆角风格及页面导航,同步维护国内镜像站点。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>392</strong></p>
|
||||
</div>
|
||||
<h3 id="2023-12-21"><a class="toclink" href="2023/12/21/2023%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/#2023-12-21"></p><h1 id="01" name="01"><strong>2023-12-21</strong></h1><p></a></h3>
|
||||
<ul>
|
||||
<li>优化网站流畅度(玄学)</li>
|
||||
@ -2945,6 +2969,14 @@ Look at this source <a href="https://github.com/JakubAndrysek/mkdocs-open-in-new
|
||||
</header>
|
||||
<div class="md-post__content md-typeset">
|
||||
<h2 id="2022"><a class="toclink" href="2022/06/06/2022%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/">2022网站更新记录</a></h2>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>2022年网站建设过程包括:10月建立Github仓库并正式建站,取消cookie确认以简化流程并保障隐私,新增首页反馈功能;6月确定采用MKdocs框架搭建网站,并完成域名注册。更新重点围绕技术架构优化和用户体验改进展开。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>64</strong></p>
|
||||
</div>
|
||||
<h3 id="2022-10-20"><a class="toclink" href="2022/06/06/2022%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/#2022-10-20"></p><h1 id="01" name="01"><strong>2022-10-20</strong></h1><p></a></h3>
|
||||
<ul>
|
||||
<li>建立Github仓库,正式建站</li>
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2454,6 +2454,10 @@
|
||||
|
||||
<h1>添加404页面</h1>
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>131</strong> | 有效代码行数:<strong>30</strong></p>
|
||||
</div>
|
||||
<p><img alt="" src="https://s1.imagehub.cc/images/2024/02/02/b94cdf67258487f737cfa29829629157.png" /></p>
|
||||
<p>首先在mkdocs.yml文件中添加custom_dir:
|
||||
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-0-1">1</a></span>
|
||||
@ -3610,7 +3614,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 11:19:17">2025-04-19</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 11:19:17 UTC">2025-04-19</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2530,6 +2530,14 @@
|
||||
|
||||
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>本文探讨了MkDocs中使用相对地址引用资源时的常见问题与解决方案,重点分析了图片、PDF、跨页面及静态资源的正确引用方式。核心要点包括:路径应以当前Markdown文件为基准,区分大小写,并以<code>docs</code>目录为根目录进行定位。文章提供了具体代码示例,并针对本地与线上环境差异、路径错误等典型问题给出了排查建议,强调统一目录结构对维护的重要性。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>493</strong> | 有效代码行数:<strong>6</strong></p>
|
||||
</div>
|
||||
<h1 id="mkdocs">针对MKdocs中相对地址引用的一些问题<a class="headerlink" href="#mkdocs" title="Permanent link">¶</a></h1>
|
||||
<p>在使用 MkDocs 构建文档网站时,常常会遇到相对地址引用的问题,尤其是在图片、PDF、其他静态资源等的引用上。合理使用相对地址可以让你的文档在本地预览和线上部署时都能正常显示。下面总结一些常见场景和注意事项:</p>
|
||||
<h2 id="1">1. 图片引用<a class="headerlink" href="#1" title="Permanent link">¶</a></h2>
|
||||
@ -2646,7 +2654,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 11:19:17">2025-04-19</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 11:19:17 UTC">2025-04-19</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2476,6 +2476,14 @@
|
||||
|
||||
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>本文介绍了使用MkDocs构建网站时的性能优化方法,包括采用WebP等现代图片格式压缩资源、通过CDN分发静态文件加速访问,以及优化git插件配置提升本地渲染效率。重点推荐jsDelivr CDN服务和开发/生产环境差异化配置策略,建议使用Lighthouse工具验证优化效果。这些措施能有效降低页面加载延迟,提升用户体验。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>257</strong> | 有效代码行数:<strong>6</strong></p>
|
||||
</div>
|
||||
<h1 id="_1">加速网站访问的一些心得<a class="headerlink" href="#_1" title="Permanent link">¶</a></h1>
|
||||
<p>在使用 MkDocs 构建网站时,为了提高访问速度,我们可以采取以下一些措施:</p>
|
||||
<h2 id="1">1. 优化图片<a class="headerlink" href="#1" title="Permanent link">¶</a></h2>
|
||||
@ -2575,7 +2583,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月29日 14:57:02">2025-04-29</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月29日 14:57:02 UTC">2025-04-29</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2490,6 +2490,10 @@
|
||||
|
||||
<h1>背景特效</h1>
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>该技术文档介绍了三种网页背景特效的实现方法:雪花、樱花和粒子效果。核心是通过JavaScript动态加载特效脚本,并利用LocalStorage存储用户偏好设置来控制特效显示。代码示例展示了如何通过DOM操作插入外部脚本,适用于需要增强页面视觉吸引力的场景,同时支持用户自定义显示选项。</p>
|
||||
</div>
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">Note</p>
|
||||
<p>以下代码均在<code>docs/javascripts/extra.js</code>下复制粘贴</p>
|
||||
@ -3401,7 +3405,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2023年10月14日 03:14:32">2023-10-14</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2023年10月14日 03:14:32 UTC">2023-10-14</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2454,6 +2454,10 @@
|
||||
|
||||
<h1>页脚设置</h1>
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>60</strong> | 有效代码行数:<strong>89</strong></p>
|
||||
</div>
|
||||
<h2 id="_1">页脚设置<a class="headerlink" href="#_1" title="Permanent link">¶</a></h2>
|
||||
<p>MkDocs 支持自定义页脚。</p>
|
||||
<p><img alt="" src="https://s1.imagehub.cc/images/2024/02/02/73179baf6402e27c92afc51eb59645a6.png" /></p>
|
||||
@ -2719,7 +2723,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月29日 14:57:02">2025-04-29</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月29日 14:57:02 UTC">2025-04-29</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2530,7 +2530,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 06:56:23">2025-04-19</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 06:56:23 UTC">2025-04-19</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2842,7 +2842,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 06:56:23">2025-04-19</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 06:56:23 UTC">2025-04-19</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2508,6 +2508,14 @@
|
||||
|
||||
<h1>添加评论系统(giscus为例)</h1>
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>giscus是基于GitHub Discussions的开源评论系统,无需数据库,数据直接存储在GitHub中。具有无跟踪、无广告、永久免费的特点,支持多语言、自定义主题和高可配置性。系统自动同步GitHub评论更新,允许自建服务,适合开发者集成到静态网站。通过简单配置即可实现评论功能,提供与Twikoo类似的用户体验。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>389</strong> | 有效代码行数:<strong>116</strong></p>
|
||||
</div>
|
||||
<p>官方文档:<a href="https://squidfunk.github.io/mkdocs-material/setup/adding-a-comment-system/">Adding a comment system</a> </p>
|
||||
<p>这里我同样推荐<a href="https://giscus.app/zh-CN">giscus</a></p>
|
||||
<p>利用 GitHub Discussions 实现的评论系统,让访客借助 GitHub 在你的网站上留下评论和反应吧!本项目深受 utterances 的启发。</p>
|
||||
@ -2872,7 +2880,7 @@ twikoo.init({
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 06:56:23">2025-04-19</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 06:56:23 UTC">2025-04-19</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2692,6 +2692,14 @@
|
||||
|
||||
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>霞鹜文楷是一款基于日本Klee One衍生的开源中文字体,兼具仿宋和楷体特点,适合诗词及注释排版。提供多个版本(屏幕阅读版、轻便版、GB/TC版等)满足不同场景需求。作为开源项目,它解决了商业字体侵权风险,并通过深度学习补全了简繁汉字及谚文字符。用户可通过GitHub、Gitee等平台获取,支持Windows/macOS系统安装。字体采用SIL开源协议,适合网站及开发者嵌入使用。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>6</strong> 分钟 | 中文字符:<strong>2328</strong> | 有效代码行数:<strong>21</strong></p>
|
||||
</div>
|
||||
<p>我目前在用的字体:<a href="https://github.com/lxgw/LxgwWenKai" target="_blank">霞鹜文楷</a><br />
|
||||
想必你可以直观从我的网站感受到,<a href="https://chawyehsu.github.io/lxgw-wenkai-webfont/">这款字体</a>的美观程度。 </p>
|
||||
<p><a href="#mkdocs">快速教程</a></p>
|
||||
@ -2910,7 +2918,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月29日 14:57:02">2025-04-29</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月29日 14:57:02 UTC">2025-04-29</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2471,7 +2471,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年5月11日 08:19:22">2025-05-11</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年5月11日 08:19:22 UTC">2025-05-11</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2375,6 +2375,14 @@
|
||||
|
||||
<h1>JS实现鼠标样式</h1>
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>该文章介绍了通过JavaScript和CSS自定义网页鼠标样式的实现方法,重点说明了关键参数配置,包括鼠标尺寸、颜色(支持RGB值和颜色名称)以及跟随效果。提供了具体的代码示例和配置步骤,需在mkdocs.yml中引入相关文件。适用于需要个性化鼠标交互效果的网页开发场景。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>129</strong> | 有效代码行数:<strong>114</strong></p>
|
||||
</div>
|
||||
<p>不建议更改,因为默认就是最简洁</p>
|
||||
<!--  -->
|
||||
|
||||
@ -2711,7 +2719,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 06:56:23">2025-04-19</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 06:56:23 UTC">2025-04-19</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2472,6 +2472,14 @@
|
||||
|
||||
<h1>为MKdocs添加文章修订时间戳</h1>
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>该技术方案通过git-revision-date-localized插件为MKdocs文档系统自动添加文章修订时间戳。核心实现是在CI工作流中配置选择性启用git历史检查,既避免了本地渲染时的性能损耗,又能在发布时准确显示最后更新时间。该方法优化了文档维护流程,特别适合需要展示内容时效性的技术文档网站。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>203</strong> | 有效代码行数:<strong>51</strong></p>
|
||||
</div>
|
||||
<p><img alt="img" src="https://cn.mcecy.com/image/20240106/ee0ece547112ac1b67fb61ac7f9c1a90.png" /> </p>
|
||||
<p>参考方法:<a href="https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/#revisioning">git 修订日期本地化</a></p>
|
||||
<p>利用<a href="https://github.com/timvink/mkdocs-git-revision-date-localized-plugin">git -revision-date-localized插件</a>添加了对添加上次更新日期和在每个页面底部创建文档的支持</p>
|
||||
@ -2648,7 +2656,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 06:56:23">2025-04-19</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 06:56:23 UTC">2025-04-19</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2472,6 +2472,14 @@
|
||||
|
||||
<h1>添加在线聊天</h1>
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>Tidio提供免费、无需梯子的在线聊天解决方案,通过简单的JavaScript代码集成到网站。用户只需注册账号,从设置中获取专属代码并嵌入网页即可实现实时聊天功能。该工具安装便捷,适合快速部署,满足中小型网站的客户沟通需求,且免费版功能已足够日常使用。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>182</strong> | 有效代码行数:<strong>1</strong></p>
|
||||
</div>
|
||||
<p>以<a href="https://www.tidio.com/">Tidio</a>为例,Tidio免费版已经完全够用且无需梯子</p>
|
||||
<h2 id="tidio">访问Tidio官网<a class="headerlink" href="#tidio" title="Permanent link">¶</a></h2>
|
||||
<p>要在您的网站上使用 javascript 代码方法安装 Tidio,您需要创建一个 Tidio 帐户。要创建 Tidio 帐户,请访问我们的网站<tidio.com>,然后单击 “开始” 按钮创建新的 Tidio 帐户。您还可以使用 “登录” 选项来使用您现有的帐户。 </p>
|
||||
@ -2551,7 +2559,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 06:56:23">2025-04-19</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 06:56:23 UTC">2025-04-19</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2526,6 +2526,14 @@
|
||||
|
||||
<h1>网页圆角化设计</h1>
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>本文介绍了网页圆角化设计的实现方法,重点讲解通过CSS样式文件实现图片和边框的圆角效果。具体包括在mkdocs.yml中引入CSS文件、编写圆角样式代码以及在Markdown文件中应用的方法,同时展示了按钮和卡片组件的圆角化示例。该技术可提升网页视觉美感,适用于文档网站和UI组件的美化。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>66</strong> | 有效代码行数:<strong>213</strong></p>
|
||||
</div>
|
||||
<h2 id="_1">示例<a class="headerlink" href="#_1" title="Permanent link">¶</a></h2>
|
||||
<p><img alt="iShot_2024-04-26_12.17.20.png" src="https://s2.loli.net/2024/04/26/gvu7ASWfU8eKVOd.png" /><br />
|
||||
<img alt="image.png" src="https://s2.loli.net/2024/04/26/Czi9uAQhmbBlkfG.png" /></p>
|
||||
@ -3216,7 +3224,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 06:56:23">2025-04-19</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年4月19日 06:56:23 UTC">2025-04-19</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2840,6 +2840,14 @@
|
||||
|
||||
<h1>MWeb Pro</h1>
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>MWeb Pro是一款专为macOS设计的专业Markdown写作与笔记应用,支持GFM语法扩展(含表格、LaTeX、代码块等)及多种图表库(mermaid/PlantUML等)。提供高效的图文混排功能,支持拖拽插入图片和自定义宽度。支持导出多种格式(PDF/HTML/Epub等)并可直接发布到WordPress/印象笔记等平台。内置强大的文档管理系统,支持分类树、标签和多端同步,适合知识管理、博客写作及静态网站生成。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>3</strong> 分钟 | 中文字符:<strong>1009</strong> | 有效代码行数:<strong>67</strong></p>
|
||||
</div>
|
||||
<p><b>MWeb Pro </b>是一款适用于macOS的专业Markdown写作、笔记本应用软件。喜欢写博客的朋友,那你一定会需要 MWeb Pro 这款软件。为您提供最佳的写作体验。</p>
|
||||
<p>Markdown 语法支持:</p>
|
||||
<p>使用 Github Flavored Markdown 语法,简称 GFM 语法。支持表格、TOC、LaTeX、代码块、任务列表、脚注等。画图库支持 mermaid, viz, echarts, plantuml, sequence, flow。</p>
|
||||
@ -3189,7 +3197,7 @@ option = {
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2023年10月13日 17:22:50">2023-10-13</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2023年10月13日 17:22:50 UTC">2023-10-13</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -3054,6 +3054,14 @@
|
||||
|
||||
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>Markdown是一种轻量级标记语言,支持纯文本编写并转换为多种格式(如HTML、PDF)。其核心语法包括标题、列表、表格、代码块等结构化元素,以及文本样式(粗体/斜体)、链接和图片插入功能。兼容HTML标签并支持特殊字符转义,适用于文档编写、笔记记录等场景。主流编辑器(如MacDown、StackEdit)提供跨平台支持,具有易读易写的特性,是技术文档和内容创作的常用工具。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>2</strong> 分钟 | 中文字符:<strong>662</strong> | 有效代码行数:<strong>67</strong></p>
|
||||
</div>
|
||||
<h1 id="markdown"><span class="twemoji"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22.27 19.385H1.73A1.73 1.73 0 0 1 0 17.655V6.345a1.73 1.73 0 0 1 1.73-1.73h20.54A1.73 1.73 0 0 1 24 6.345v11.308a1.73 1.73 0 0 1-1.73 1.731zM5.769 15.923v-4.5l2.308 2.885 2.307-2.885v4.5h2.308V8.078h-2.308l-2.307 2.885-2.308-2.885H3.46v7.847zM21.232 12h-2.309V8.077h-2.307V12h-2.308l3.461 4.039z"/></svg></span> <a href="https://www.markdown.xyz/">Markdown语法学习</a> 精简版<a class="headerlink" href="#markdown" title="Permanent link">¶</a></h1>
|
||||
<blockquote>
|
||||
<p><span id="top"><strong>文章开头</strong></span> </p>
|
||||
@ -3581,7 +3589,7 @@ Markdown 编写的文档可以导出 HTML 、Word、图像、PDF、Epub 等多
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年5月11日 08:19:22">2025-05-11</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年5月11日 08:19:22 UTC">2025-05-11</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2514,6 +2514,14 @@
|
||||
|
||||
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>唐·诺曼提出的情感设计三层次理论包括本能层、行为层和反思层。本能层关注产品外观引发的即时情感反应,行为层强调使用过程中的功能性和效率,反思层涉及用户对产品的理性评价和自我形象关联。这三个层次相互影响,共同塑造用户对产品的整体体验。该理论为设计提供了系统框架,帮助平衡美学、实用性和情感价值,广泛应用于产品开发与用户体验优化。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>5</strong> 分钟 | 中文字符:<strong>2163</strong></p>
|
||||
</div>
|
||||
<p>原文:<a href="https://www.interaction-design.org/literature/article/norman-s-three-levels-of-design">Norman's Three Levels of Design</a>
|
||||
<img alt="" src="https://pic2.zhimg.com/80/v2-775977de1d9ccd4ff61344ccc523b5b1_1440w.jpg" /></p>
|
||||
<h1 id="_1">唐·诺曼—情感设计的三个层次<a class="headerlink" href="#_1" title="Permanent link">¶</a></h1>
|
||||
@ -2602,7 +2610,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2023年10月13日 17:22:50">2023-10-13</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2023年10月13日 17:22:50 UTC">2023-10-13</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2384,6 +2384,14 @@
|
||||
|
||||
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>该文阐述了设计领域的核心原则与实践要点,强调简洁性、视觉美感与用户体验的平衡。作者提出六大关键维度:通过精简元素实现功能聚焦,运用美学原则提升视觉表现,以用户行为驱动交互设计,注重细节打磨品质感,鼓励创新融合突破常规,以及通过叙事引发情感共鸣。这些观点系统性地揭示了优秀设计应兼具功能性、审美价值与人文关怀的特质。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>398</strong></p>
|
||||
</div>
|
||||
<h1 id="some-of-my-thoughts-on-design">Some of my thoughts on design<a class="headerlink" href="#some-of-my-thoughts-on-design" title="Permanent link">¶</a></h1>
|
||||
<center>
|
||||
<font size=5>
|
||||
@ -2478,7 +2486,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2023年10月13日 17:22:50">2023-10-13</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2023年10月13日 17:22:50 UTC">2023-10-13</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2790,6 +2790,14 @@
|
||||
|
||||
|
||||
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">💾 AI智能摘要</p>
|
||||
<p>本文介绍了Git版本控制系统的核心操作与实用技巧,涵盖仓库创建、分支管理、冲突解决等基础功能,并重点讲解了stash暂存、rebase/merge策略选择、cherry-pick等高级用法。通过具体代码示例和场景说明,帮助开发者高效处理代码版本管理中的常见问题,优化团队协作流程。特别针对合并冲突、提交修改等痛点场景提供了标准化解决方案。</p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">📖 阅读信息</p>
|
||||
<p>阅读时间:<strong>1</strong> 分钟 | 中文字符:<strong>199</strong> | 有效代码行数:<strong>48</strong></p>
|
||||
</div>
|
||||
<div class="admonition info">
|
||||
<p class="admonition-title">Info</p>
|
||||
<p>原文地址:<a href="https://www.iszy.cc/posts/git/#more" target="_blank">Git 实用技巧</a></p>
|
||||
@ -3043,7 +3051,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2023年10月13日 17:22:50">2023-10-13</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2023年10月13日 17:22:50 UTC">2023-10-13</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2448,7 +2448,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年1月4日 07:22:15">2025-01-04</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年1月4日 07:22:15 UTC">2025-01-04</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2447,7 +2447,7 @@
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年1月4日 07:22:15">2025-01-04</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年1月4日 07:22:15 UTC">2025-01-04</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2630,7 +2630,7 @@ t.parentNode.insertBefore(e,t)}})();
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年5月7日 08:10:59">2025-05-07</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年5月7日 08:10:59 UTC">2025-05-07</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2645,7 +2645,7 @@ body::before {
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年5月11日 08:19:22">2025-05-11</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年5月11日 08:19:22 UTC">2025-05-11</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
@ -2621,7 +2621,7 @@ t.parentNode.insertBefore(e,t)}})();
|
||||
<span class="md-icon" title="最后更新">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg>
|
||||
</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年5月11日 08:19:22">2025-05-11</span>
|
||||
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="2025年5月11日 08:19:22 UTC">2025-05-11</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
|
BIN
overrides/hooks/__pycache__/ai_summary.cpython-311.pyc
Normal file
BIN
overrides/hooks/__pycache__/ai_summary.cpython-311.pyc
Normal file
Binary file not shown.
BIN
overrides/hooks/__pycache__/ai_summary.cpython-313.pyc
Normal file
BIN
overrides/hooks/__pycache__/ai_summary.cpython-313.pyc
Normal file
Binary file not shown.
BIN
overrides/hooks/__pycache__/reading_time.cpython-311.pyc
Normal file
BIN
overrides/hooks/__pycache__/reading_time.cpython-311.pyc
Normal file
Binary file not shown.
BIN
overrides/hooks/__pycache__/reading_time.cpython-313.pyc
Normal file
BIN
overrides/hooks/__pycache__/reading_time.cpython-313.pyc
Normal file
Binary file not shown.
BIN
overrides/hooks/__pycache__/socialmedia.cpython-311.pyc
Normal file
BIN
overrides/hooks/__pycache__/socialmedia.cpython-311.pyc
Normal file
Binary file not shown.
Binary file not shown.
393
overrides/hooks/ai_summary.py
Normal file
393
overrides/hooks/ai_summary.py
Normal file
@ -0,0 +1,393 @@
|
||||
import re
|
||||
import json
|
||||
import hashlib
|
||||
import requests
|
||||
from pathlib import Path
|
||||
from datetime import datetime
|
||||
|
||||
class AISummaryGenerator:
|
||||
def __init__(self):
|
||||
self.cache_dir = Path("site/.ai_cache")
|
||||
self.cache_dir.mkdir(exist_ok=True)
|
||||
|
||||
# DeepSeek API配置
|
||||
self.api_config = {
|
||||
'url': 'https://api.deepseek.com/v1/chat/completions',
|
||||
'model': 'deepseek-chat',
|
||||
'headers': {
|
||||
'Content-Type': 'application/json',
|
||||
'Authorization': 'Bearer sk-7dbcd6e21fb3417299b50aecff76c7bf'
|
||||
}
|
||||
}
|
||||
|
||||
# 📂 可自定义的文件夹配置
|
||||
self.enabled_folders = [
|
||||
'blog/', # blog文件夹
|
||||
'develop/', # develop文件夹
|
||||
# 在这里添加您想要启用AI摘要的文件夹
|
||||
]
|
||||
|
||||
# 📋 排除的文件和文件夹
|
||||
self.exclude_patterns = [
|
||||
'liuyanban.md', 'link.md', '404.md', 'tag.md', 'tags.md',
|
||||
'/about/', '/search/', '/sitemap', 'index.md', # 根目录index.md
|
||||
]
|
||||
|
||||
# 📋 排除的特定文件
|
||||
self.exclude_files = [
|
||||
'blog/index.md',
|
||||
'blog/indexblog.md',
|
||||
'docs/index.md',
|
||||
'develop/index.md',
|
||||
]
|
||||
|
||||
def configure_folders(self, folders=None, exclude_patterns=None, exclude_files=None):
|
||||
"""
|
||||
配置启用AI摘要的文件夹
|
||||
|
||||
Args:
|
||||
folders: 启用AI摘要的文件夹列表
|
||||
exclude_patterns: 排除的模式列表
|
||||
exclude_files: 排除的特定文件列表
|
||||
"""
|
||||
if folders is not None:
|
||||
self.enabled_folders = folders
|
||||
if exclude_patterns is not None:
|
||||
self.exclude_patterns = exclude_patterns
|
||||
if exclude_files is not None:
|
||||
self.exclude_files = exclude_files
|
||||
|
||||
def get_content_hash(self, content):
|
||||
"""生成内容hash用于缓存"""
|
||||
return hashlib.md5(content.encode('utf-8')).hexdigest()
|
||||
|
||||
def get_cached_summary(self, content_hash):
|
||||
"""获取缓存的摘要"""
|
||||
cache_file = self.cache_dir / f"{content_hash}.json"
|
||||
if cache_file.exists():
|
||||
try:
|
||||
with open(cache_file, 'r', encoding='utf-8') as f:
|
||||
cache_data = json.load(f)
|
||||
# 检查缓存是否过期(7天)
|
||||
cache_time = datetime.fromisoformat(cache_data.get('timestamp', '1970-01-01'))
|
||||
if (datetime.now() - cache_time).days < 7:
|
||||
return cache_data
|
||||
except:
|
||||
pass
|
||||
return None
|
||||
|
||||
def save_summary_cache(self, content_hash, summary_data):
|
||||
"""保存摘要到缓存"""
|
||||
cache_file = self.cache_dir / f"{content_hash}.json"
|
||||
try:
|
||||
summary_data['timestamp'] = datetime.now().isoformat()
|
||||
with open(cache_file, 'w', encoding='utf-8') as f:
|
||||
json.dump(summary_data, f, ensure_ascii=False, indent=2)
|
||||
except Exception as e:
|
||||
print(f"保存摘要缓存失败: {e}")
|
||||
|
||||
def clean_content_for_ai(self, markdown):
|
||||
"""清理内容,提取主要文本用于AI处理"""
|
||||
content = markdown
|
||||
|
||||
# 移除YAML front matter
|
||||
content = re.sub(r'^---.*?---\s*', '', content, flags=re.DOTALL)
|
||||
|
||||
# 移除已存在的阅读信息块和AI摘要块
|
||||
content = re.sub(r'!!! info "📖 阅读信息".*?(?=\n\n|\n#|\Z)', '', content, flags=re.DOTALL)
|
||||
content = re.sub(r'!!! info "🤖 AI智能摘要".*?(?=\n\n|\n#|\Z)', '', content, flags=re.DOTALL)
|
||||
content = re.sub(r'!!! tip "📝 自动摘要".*?(?=\n\n|\n#|\Z)', '', content, flags=re.DOTALL)
|
||||
|
||||
# 移除HTML标签
|
||||
content = re.sub(r'<[^>]+>', '', content)
|
||||
|
||||
# 移除图片,保留alt文本作为内容提示
|
||||
content = re.sub(r'!\[([^\]]*)\]\([^)]+\)', r'[图片:\1]', content)
|
||||
|
||||
# 移除链接,保留文本
|
||||
content = re.sub(r'\[([^\]]+)\]\([^)]+\)', r'\1', content)
|
||||
|
||||
# 移除代码块,但保留关键信息
|
||||
content = re.sub(r'```(\w+)?\n(.*?)\n```', r'[代码示例]', content, flags=re.DOTALL)
|
||||
|
||||
# 移除行内代码
|
||||
content = re.sub(r'`[^`]+`', '[代码]', content)
|
||||
|
||||
# 移除表格格式但保留内容
|
||||
content = re.sub(r'\|[^\n]+\|', '', content)
|
||||
content = re.sub(r'^[-|:\s]+$', '', content, flags=re.MULTILINE)
|
||||
|
||||
# 清理格式符号
|
||||
content = re.sub(r'\*\*([^*]+)\*\*', r'\1', content) # 粗体
|
||||
content = re.sub(r'\*([^*]+)\*', r'\1', content) # 斜体
|
||||
content = re.sub(r'^#+\s*', '', content, flags=re.MULTILINE) # 标题符号
|
||||
|
||||
# 移除多余的空行和空格
|
||||
content = re.sub(r'\n\s*\n', '\n\n', content)
|
||||
content = re.sub(r'^[ \t]+', '', content, flags=re.MULTILINE)
|
||||
content = content.strip()
|
||||
|
||||
return content
|
||||
|
||||
def generate_ai_summary(self, content, page_title=""):
|
||||
"""使用DeepSeek生成摘要"""
|
||||
# 优化的提示词
|
||||
prompt = f"""请为以下技术文章生成一个高质量的摘要,要求:
|
||||
|
||||
1. **长度控制**:严格控制在80-120字以内
|
||||
2. **内容要求**:
|
||||
- 准确概括文章的核心主题和关键要点
|
||||
- 突出技术特点、应用场景或解决的问题
|
||||
- 使用专业但易懂的语言
|
||||
- 避免重复文章标题的内容
|
||||
3. **格式要求**:
|
||||
- 直接返回摘要内容,无需任何前缀或后缀
|
||||
- 使用简洁的陈述句
|
||||
- 可以适当使用技术术语
|
||||
|
||||
文章标题:{page_title}
|
||||
|
||||
文章内容:
|
||||
{content[:2500]}
|
||||
|
||||
请生成摘要:"""
|
||||
|
||||
try:
|
||||
payload = {
|
||||
"model": self.api_config['model'],
|
||||
"messages": [
|
||||
{
|
||||
"role": "system",
|
||||
"content": "你是一个专业的技术文档摘要专家,擅长提取文章核心要点并生成简洁准确的摘要。"
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
"content": prompt
|
||||
}
|
||||
],
|
||||
"max_tokens": 150,
|
||||
"temperature": 0.3, # 降低随机性,提高准确性
|
||||
"top_p": 0.9
|
||||
}
|
||||
|
||||
response = requests.post(
|
||||
self.api_config['url'],
|
||||
headers=self.api_config['headers'],
|
||||
json=payload,
|
||||
timeout=30
|
||||
)
|
||||
|
||||
if response.status_code == 200:
|
||||
result = response.json()
|
||||
summary = result['choices'][0]['message']['content'].strip()
|
||||
|
||||
# 清理可能的格式问题
|
||||
summary = re.sub(r'^["""''`]+|["""''`]+$', '', summary)
|
||||
summary = re.sub(r'^\s*摘要[::]\s*', '', summary)
|
||||
summary = re.sub(r'^\s*总结[::]\s*', '', summary)
|
||||
|
||||
return summary
|
||||
else:
|
||||
print(f"DeepSeek API请求失败: {response.status_code} - {response.text}")
|
||||
return None
|
||||
|
||||
except requests.exceptions.RequestException as e:
|
||||
print(f"DeepSeek API请求异常: {e}")
|
||||
return None
|
||||
except Exception as e:
|
||||
print(f"AI摘要生成异常: {e}")
|
||||
return None
|
||||
|
||||
def generate_fallback_summary(self, content, page_title=""):
|
||||
"""生成备用摘要(基于规则的智能摘要)"""
|
||||
# 移除格式符号
|
||||
clean_text = re.sub(r'^#+\s*', '', content, flags=re.MULTILINE)
|
||||
clean_text = re.sub(r'\*\*([^*]+)\*\*', r'\1', clean_text)
|
||||
clean_text = re.sub(r'\*([^*]+)\*', r'\1', clean_text)
|
||||
|
||||
# 分割成句子
|
||||
sentences = re.split(r'[。!?.!?]', clean_text)
|
||||
sentences = [s.strip() for s in sentences if len(s.strip()) > 15]
|
||||
|
||||
# 优先选择包含关键词的句子
|
||||
key_indicators = [
|
||||
'介绍', '讲解', '说明', '分析', '探讨', '研究', '实现', '应用',
|
||||
'方法', '技术', '算法', '原理', '概念', '特点', '优势', '解决',
|
||||
'教程', '指南', '配置', '安装', '部署', '开发', '设计', '构建'
|
||||
]
|
||||
|
||||
priority_sentences = []
|
||||
normal_sentences = []
|
||||
|
||||
for sentence in sentences[:10]: # 处理前10句
|
||||
if any(keyword in sentence for keyword in key_indicators):
|
||||
priority_sentences.append(sentence)
|
||||
else:
|
||||
normal_sentences.append(sentence)
|
||||
|
||||
# 组合摘要
|
||||
selected_sentences = []
|
||||
total_length = 0
|
||||
|
||||
# 优先使用关键句子
|
||||
for sentence in priority_sentences:
|
||||
if total_length + len(sentence) > 100:
|
||||
break
|
||||
selected_sentences.append(sentence)
|
||||
total_length += len(sentence)
|
||||
|
||||
# 如果还有空间,添加普通句子
|
||||
if total_length < 80:
|
||||
for sentence in normal_sentences:
|
||||
if total_length + len(sentence) > 100:
|
||||
break
|
||||
selected_sentences.append(sentence)
|
||||
total_length += len(sentence)
|
||||
|
||||
if selected_sentences:
|
||||
summary = '。'.join(selected_sentences) + '。'
|
||||
# 简化冗长的摘要
|
||||
if len(summary) > 120:
|
||||
summary = selected_sentences[0] + '。'
|
||||
return summary
|
||||
else:
|
||||
# 根据标题生成通用摘要
|
||||
if any(keyword in page_title for keyword in ['教程', '指南', 'Tutorial']):
|
||||
return '本文提供了详细的教程指南,通过实例演示帮助读者掌握相关技术要点。'
|
||||
elif any(keyword in page_title for keyword in ['配置', '设置', '安装', 'Config']):
|
||||
return '本文介绍了系统配置的方法和步骤,提供实用的设置建议和最佳实践。'
|
||||
elif any(keyword in page_title for keyword in ['开发', '编程', 'Development']):
|
||||
return '本文分享了开发经验和技术实践,提供了实用的代码示例和解决方案。'
|
||||
else:
|
||||
return '本文深入探讨了相关技术内容,提供了实用的方法和解决方案。'
|
||||
|
||||
def process_page(self, markdown, page, config):
|
||||
"""处理页面,生成AI摘要"""
|
||||
if not self.should_generate_summary(page, markdown):
|
||||
return markdown
|
||||
|
||||
clean_content = self.clean_content_for_ai(markdown)
|
||||
|
||||
# 内容长度检查
|
||||
if len(clean_content) < 200:
|
||||
print(f"📄 内容太短,跳过摘要生成: {page.file.src_path}")
|
||||
return markdown
|
||||
|
||||
content_hash = self.get_content_hash(clean_content)
|
||||
page_title = getattr(page, 'title', '')
|
||||
|
||||
# 检查缓存
|
||||
cached_summary = self.get_cached_summary(content_hash)
|
||||
if cached_summary:
|
||||
summary = cached_summary.get('summary', '')
|
||||
ai_service = 'cached'
|
||||
print(f"✅ 使用缓存摘要: {page.file.src_path}")
|
||||
else:
|
||||
# 生成新摘要
|
||||
print(f"🤖 正在生成AI摘要: {page.file.src_path}")
|
||||
summary = self.generate_ai_summary(clean_content, page_title)
|
||||
|
||||
if not summary:
|
||||
summary = self.generate_fallback_summary(clean_content, page_title)
|
||||
ai_service = 'fallback'
|
||||
print(f"📝 使用备用摘要: {page.file.src_path}")
|
||||
else:
|
||||
ai_service = 'deepseek'
|
||||
print(f"✅ AI摘要生成成功: {page.file.src_path}")
|
||||
|
||||
# 保存到缓存
|
||||
self.save_summary_cache(content_hash, {
|
||||
'summary': summary,
|
||||
'service': ai_service,
|
||||
'page_title': page_title
|
||||
})
|
||||
|
||||
# 添加摘要到页面最上面
|
||||
summary_html = self.format_summary(summary, ai_service)
|
||||
return summary_html + '\n\n' + markdown
|
||||
|
||||
def should_generate_summary(self, page, markdown):
|
||||
"""判断是否应该生成摘要 - 可自定义文件夹"""
|
||||
# 检查页面元数据
|
||||
if hasattr(page, 'meta'):
|
||||
# 明确禁用
|
||||
if page.meta.get('ai_summary') == False:
|
||||
return False
|
||||
|
||||
# 强制启用
|
||||
if page.meta.get('ai_summary') == True:
|
||||
return True
|
||||
|
||||
# 获取文件路径
|
||||
src_path = page.file.src_path.replace('\\', '/') # 统一路径分隔符
|
||||
|
||||
# 检查排除模式
|
||||
if any(pattern in src_path for pattern in self.exclude_patterns):
|
||||
return False
|
||||
|
||||
# 检查排除的特定文件
|
||||
if src_path in self.exclude_files:
|
||||
return False
|
||||
|
||||
# 检查是否在启用的文件夹中
|
||||
for folder in self.enabled_folders:
|
||||
if src_path.startswith(folder) or f'/{folder}' in src_path:
|
||||
folder_name = folder.rstrip('/')
|
||||
print(f"🎯 {folder_name}文件夹文章检测到,启用AI摘要: {src_path}")
|
||||
return True
|
||||
|
||||
# 默认不生成摘要
|
||||
return False
|
||||
|
||||
def format_summary(self, summary, ai_service):
|
||||
"""格式化摘要显示"""
|
||||
service_config = {
|
||||
'deepseek': {
|
||||
'icon': '🤖',
|
||||
'name': 'AI智能摘要',
|
||||
'color': 'info'
|
||||
},
|
||||
'fallback': {
|
||||
'icon': '📝',
|
||||
'name': '自动摘要',
|
||||
'color': 'tip'
|
||||
},
|
||||
'cached': {
|
||||
'icon': '💾',
|
||||
'name': 'AI智能摘要',
|
||||
'color': 'info'
|
||||
}
|
||||
}
|
||||
|
||||
config = service_config.get(ai_service, service_config['deepseek'])
|
||||
|
||||
return f'''!!! {config['color']} "{config['icon']} {config['name']}"
|
||||
{summary}
|
||||
|
||||
'''
|
||||
|
||||
# 创建全局实例
|
||||
ai_summary_generator = AISummaryGenerator()
|
||||
|
||||
# 🔧 自定义配置函数
|
||||
def configure_ai_summary(enabled_folders=None, exclude_patterns=None, exclude_files=None):
|
||||
"""
|
||||
配置AI摘要功能
|
||||
|
||||
Args:
|
||||
enabled_folders: 启用AI摘要的文件夹列表,例如 ['blog/', 'docs/', 'posts/']
|
||||
exclude_patterns: 排除的模式列表,例如 ['404.md', '/admin/']
|
||||
exclude_files: 排除的特定文件列表,例如 ['blog/index.md']
|
||||
|
||||
Example:
|
||||
# 只在blog和docs文件夹启用
|
||||
configure_ai_summary(['blog/', 'docs/'])
|
||||
|
||||
# 在所有文件夹启用,但排除特定文件
|
||||
configure_ai_summary([''], exclude_files=['index.md', 'about.md'])
|
||||
"""
|
||||
ai_summary_generator.configure_folders(enabled_folders, exclude_patterns, exclude_files)
|
||||
|
||||
def on_page_markdown(markdown, page, config, files):
|
||||
"""MkDocs hook入口点"""
|
||||
return ai_summary_generator.process_page(markdown, page, config)
|
255
overrides/hooks/reading_time.py
Normal file
255
overrides/hooks/reading_time.py
Normal file
@ -0,0 +1,255 @@
|
||||
import re
|
||||
from functools import lru_cache
|
||||
|
||||
# 预编译正则表达式(保持原有格式)
|
||||
EXCLUDE_PATTERNS = [
|
||||
re.compile(r'^index\.md$'),
|
||||
re.compile(r'^about/'),
|
||||
re.compile(r'^trip/index\.md$'),
|
||||
re.compile(r'^relax/index\.md$'),
|
||||
re.compile(r'^blog/indexblog\.md$'),
|
||||
re.compile(r'^blog/posts\.md$'),
|
||||
re.compile(r'^develop/index\.md$'),
|
||||
re.compile(r'waline\.md$'),
|
||||
re.compile(r'link\.md$'),
|
||||
re.compile(r'404\.md$'),
|
||||
]
|
||||
|
||||
# 优化的字符统计正则表达式
|
||||
CHINESE_CHARS_PATTERN = re.compile(r'[\u4e00-\u9fff\u3400-\u4dbf]')
|
||||
CODE_BLOCK_PATTERN = re.compile(r'```.*?```', re.DOTALL)
|
||||
INLINE_CODE_PATTERN = re.compile(r'`[^`]+`')
|
||||
YAML_FRONT_PATTERN = re.compile(r'^---.*?---\s*', re.DOTALL)
|
||||
HTML_TAG_PATTERN = re.compile(r'<[^>]+>')
|
||||
IMAGE_PATTERN = re.compile(r'!\[.*?\]\([^)]+\)')
|
||||
LINK_PATTERN = re.compile(r'\[([^\]]+)\]\([^)]+\)')
|
||||
|
||||
# 预定义排除类型
|
||||
EXCLUDE_TYPES = frozenset({'landing', 'special', 'widget'})
|
||||
|
||||
# 扩展非编程行内代码词汇(更全面的过滤)
|
||||
NON_CODE_WORDS = frozenset({
|
||||
'markdown', 'target', 'blank', 'lg', 'middle', 'small', 'large',
|
||||
'left', 'right', 'center', 'top', 'bottom', 'primary', 'secondary',
|
||||
'success', 'warning', 'danger', 'info', 'light', 'dark', 'grid',
|
||||
'cards', 'octicons', 'bookmark', 'div', 'class', 'img', 'src',
|
||||
'alt', 'width', 'height', 'style', 'id', 'data', 'href', 'title'
|
||||
})
|
||||
|
||||
# 支持的编程和标记语言(扩展版本)
|
||||
PROGRAMMING_LANGUAGES = frozenset({
|
||||
# 编程语言
|
||||
'python', 'py', 'javascript', 'js', 'typescript', 'ts', 'java', 'cpp', 'c',
|
||||
'go', 'rust', 'php', 'ruby', 'swift', 'kotlin', 'csharp', 'cs',
|
||||
# 脚本语言
|
||||
'bash', 'sh', 'powershell', 'ps1', 'zsh', 'fish', 'bat', 'cmd',
|
||||
# 标记和配置语言
|
||||
'html', 'css', 'scss', 'sass', 'less', 'yaml', 'yml', 'json', 'xml',
|
||||
'toml', 'ini', 'conf', 'dockerfile', 'makefile',
|
||||
# 数据库和查询
|
||||
'sql', 'mysql', 'postgresql', 'sqlite', 'mongodb',
|
||||
# 其他
|
||||
'r', 'matlab', 'scala', 'perl', 'lua', 'dart', 'tex', 'latex',
|
||||
# 数据格式
|
||||
'csv', 'properties',
|
||||
# 无标识符(空字符串也算作有效语言)
|
||||
''
|
||||
})
|
||||
|
||||
@lru_cache(maxsize=256)
|
||||
def clean_markdown_content_for_chinese(content_hash, markdown):
|
||||
"""清理Markdown内容,只保留中文文本用于统计(添加缓存)"""
|
||||
content = markdown
|
||||
|
||||
# 使用预编译的正则表达式
|
||||
content = YAML_FRONT_PATTERN.sub('', content)
|
||||
content = HTML_TAG_PATTERN.sub('', content)
|
||||
content = IMAGE_PATTERN.sub('', content)
|
||||
content = LINK_PATTERN.sub(r'\1', content)
|
||||
content = CODE_BLOCK_PATTERN.sub('', content)
|
||||
content = INLINE_CODE_PATTERN.sub('', content)
|
||||
|
||||
return content
|
||||
|
||||
def count_code_lines(markdown):
|
||||
"""统计代码行数(修复版本 - 正确处理所有代码行)"""
|
||||
code_blocks = CODE_BLOCK_PATTERN.findall(markdown)
|
||||
total_code_lines = 0
|
||||
|
||||
for i, block in enumerate(code_blocks):
|
||||
# 提取语言标识
|
||||
lang_match = re.match(r'^```(\w*)', block)
|
||||
language = lang_match.group(1).lower() if lang_match else ''
|
||||
|
||||
# 移除开头的语言标识和结尾的```
|
||||
code_content = re.sub(r'^```\w*\n?', '', block)
|
||||
code_content = re.sub(r'\n?```$', '', code_content)
|
||||
|
||||
# 过滤空代码块
|
||||
if not code_content.strip():
|
||||
continue
|
||||
|
||||
# 计算有效行数(包含所有非空行,包括注释行)
|
||||
lines = [line for line in code_content.split('\n') if line.strip()]
|
||||
line_count = len(lines)
|
||||
|
||||
# 如果有明确的编程语言标识,直接统计
|
||||
if language and language in PROGRAMMING_LANGUAGES:
|
||||
total_code_lines += line_count
|
||||
continue
|
||||
|
||||
# 增强的检测策略 - 更宽松的判断
|
||||
is_code = False
|
||||
|
||||
# 1. 命令行检测
|
||||
command_indicators = [
|
||||
'sudo ', 'npm ', 'pip ', 'git ', 'cd ', 'ls ', 'mkdir ', 'rm ', 'cp ', 'mv ',
|
||||
'chmod ', 'chown ', 'grep ', 'find ', 'ps ', 'kill ', 'top ', 'cat ', 'echo ',
|
||||
'wget ', 'curl ', 'tar ', 'zip ', 'unzip ', 'ssh ', 'scp ', 'rsync ',
|
||||
'xattr ', 'codesign ', 'xcode-select ', 'spctl ', 'launchctl ',
|
||||
'brew ', 'defaults ', 'ditto ', 'hdiutil ', 'diskutil ',
|
||||
'dir ', 'copy ', 'xcopy ', 'del ', 'rd ', 'md ', 'type ', 'attrib ',
|
||||
'$ ', '# ', '% ', '> ', 'C:\\>', 'PS>',
|
||||
'--', '-r', '-d', '-f', '-v', '-h', '--help', '--version',
|
||||
'--force', '--deep', '--sign', '--master-disable',
|
||||
'/Applications/', '/usr/', '/etc/', '/var/', '/home/', '~/',
|
||||
'C:\\', 'D:\\', '.app', '.exe', '.pkg', '.dmg', '.zip', '.tar',
|
||||
'#!/',
|
||||
]
|
||||
|
||||
if any(indicator in code_content for indicator in command_indicators):
|
||||
is_code = True
|
||||
|
||||
# 2. 编程语法检测(增强版)
|
||||
if not is_code:
|
||||
programming_indicators = [
|
||||
# Python语法特征
|
||||
'def ', 'class ', 'import ', 'from ', 'return ', 'yield ', 'lambda ',
|
||||
'with ', 'as ', 'try:', 'except:', 'finally:', 'elif ', 'if __name__',
|
||||
'print(', '.append(', '.extend(', '.remove(', '.sort(', '.reverse(',
|
||||
'range(', 'len(', 'str(', 'int(', 'float(', 'list(', 'dict(',
|
||||
# JavaScript/TypeScript语法
|
||||
'function', 'var ', 'let ', 'const ', 'async ', 'await ', '=>',
|
||||
'console.log', 'document.', 'window.', 'require(',
|
||||
# 通用编程语法
|
||||
'public ', 'private ', 'protected ', 'static ', 'void ', 'int ',
|
||||
'string ', 'boolean ', 'float ', 'double ', 'char ',
|
||||
# 操作符和结构
|
||||
'==', '!=', '<=', '>=', '&&', '||', '++', '--', '+=', '-=', '**',
|
||||
# 特殊结构
|
||||
'while ', 'for ', 'if ', 'else:', 'switch ', 'case ',
|
||||
# HTML/XML语法
|
||||
'<!DOCTYPE', '<html', '<head', '<body', '<div', '<span', '<p>',
|
||||
'<style', '<script', '<link', '<meta', '<title', '<img',
|
||||
# CSS语法
|
||||
'display:', 'color:', 'background:', 'margin:', 'padding:',
|
||||
'font-size:', 'width:', 'height:', 'position:', 'border:',
|
||||
# YAML语法
|
||||
'name:', 'version:', 'theme:', 'title:', 'description:',
|
||||
# JSON语法
|
||||
'{"', '"}', '":', '",', '[{', '}]', 'null', 'true', 'false',
|
||||
# 配置文件语法
|
||||
'[', ']', '//', '/*', '*/', '<!--', '-->',
|
||||
# SQL语法
|
||||
'SELECT ', 'FROM ', 'WHERE ', 'INSERT ', 'UPDATE ', 'DELETE ',
|
||||
'CREATE ', 'ALTER ', 'DROP ', 'INDEX ', 'TABLE ',
|
||||
# 数学公式和LaTeX
|
||||
'\\', '$', '$$', '\\begin', '\\end', '\\frac', '\\sum',
|
||||
]
|
||||
|
||||
if any(indicator in code_content for indicator in programming_indicators):
|
||||
is_code = True
|
||||
|
||||
# 3. 结构化检测
|
||||
if not is_code:
|
||||
# 缩进结构检测
|
||||
if len(lines) > 1 and any(line.startswith(' ') or line.startswith('\t') for line in lines):
|
||||
is_code = True
|
||||
|
||||
# HTML标签结构
|
||||
elif '<' in code_content and '>' in code_content:
|
||||
is_code = True
|
||||
|
||||
# 包含特殊字符组合
|
||||
elif any(char in code_content for char in ['{', '}', '(', ')', '[', ']']) and ('=' in code_content or ':' in code_content):
|
||||
is_code = True
|
||||
|
||||
# 4. 模式匹配检测(宽松策略)
|
||||
if not is_code and len(lines) >= 1:
|
||||
special_patterns = [
|
||||
r'\w+\(\)', r'\w+\[\]', r'\w+\{\}', r'\w+=\w+', r'\w+:\w+',
|
||||
r'<\w+>', r'\$\w+', r'#\w+', r'@\w+', r'\w+\.\w+\(\)',
|
||||
r'\d+\.\d+\.\d+', r'http[s]?://', r'ftp://', r'localhost',
|
||||
r'def\s+\w+', r'class\s+\w+', r'import\s+\w+', r'from\s+\w+',
|
||||
r'if\s+\w+', r'while\s+\w+', r'for\s+\w+', r'return\s+\w*',
|
||||
r'\w+\s*=\s*\w+', r'\w+\.\w+', r'#.*输出', r'#.*结果'
|
||||
]
|
||||
|
||||
if any(re.search(pattern, code_content) for pattern in special_patterns):
|
||||
is_code = True
|
||||
|
||||
# 如果判断为代码,则统计行数
|
||||
if is_code:
|
||||
total_code_lines += line_count
|
||||
|
||||
return total_code_lines
|
||||
|
||||
def calculate_reading_stats(markdown):
|
||||
"""计算中文字符数和代码行数"""
|
||||
# 生成内容哈希用于缓存
|
||||
content_hash = hash(markdown)
|
||||
|
||||
# 使用缓存的清理函数
|
||||
clean_content = clean_markdown_content_for_chinese(content_hash, markdown)
|
||||
chinese_chars = len(CHINESE_CHARS_PATTERN.findall(clean_content))
|
||||
|
||||
# 统计代码行数
|
||||
code_lines = count_code_lines(markdown)
|
||||
|
||||
# 计算阅读时间(中文:400字/分钟)
|
||||
reading_time = max(1, round(chinese_chars / 400))
|
||||
|
||||
return reading_time, chinese_chars, code_lines
|
||||
|
||||
def on_page_markdown(markdown, **kwargs):
|
||||
page = kwargs['page']
|
||||
|
||||
# 快速排除检查
|
||||
if page.meta.get('hide_reading_time', False):
|
||||
return markdown
|
||||
|
||||
# 保持原有的EXCLUDE_PATTERNS循环检查方式
|
||||
src_path = page.file.src_path
|
||||
for pattern in EXCLUDE_PATTERNS:
|
||||
if pattern.match(src_path):
|
||||
return markdown
|
||||
|
||||
# 优化类型检查
|
||||
page_type = page.meta.get('type', '')
|
||||
if page_type in EXCLUDE_TYPES:
|
||||
return markdown
|
||||
|
||||
# 快速预检查
|
||||
if len(markdown) < 300:
|
||||
return markdown
|
||||
|
||||
# 计算统计信息
|
||||
reading_time, chinese_chars, code_lines = calculate_reading_stats(markdown)
|
||||
|
||||
# 过滤太短的内容
|
||||
if chinese_chars < 50:
|
||||
return markdown
|
||||
|
||||
# 生成阅读信息
|
||||
if code_lines > 0:
|
||||
reading_info = f"""!!! info "📖 阅读信息"
|
||||
阅读时间:**{reading_time}** 分钟 | 中文字符:**{chinese_chars}** | 有效代码行数:**{code_lines}**
|
||||
|
||||
"""
|
||||
else:
|
||||
reading_info = f"""!!! info "📖 阅读信息"
|
||||
阅读时间:**{reading_time}** 分钟 | 中文字符:**{chinese_chars}**
|
||||
|
||||
"""
|
||||
|
||||
return reading_info + markdown
|
File diff suppressed because one or more lines are too long
100
sitemap.xml
100
sitemap.xml
@ -2,202 +2,202 @@
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/link/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/liuyanban/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/tag/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/ZH-TW/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/about/geren/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/about/resume/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/about/test/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/about/zcw/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/MIT/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/Mkdocs/mkdocs1/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/Mkdocs/mkdocs2/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/Mkdocs/mkdocs3/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/Mkdocs/mkdocsblog/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/Mkdocs/mkfirst/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/2021/12/18/%E5%8D%9A%E5%AE%A2%E6%96%87%E7%AB%A0%E6%B5%8B%E8%AF%95/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/2022/06/06/2022%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/2023/12/21/2023%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/2024/01/01/2024%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/2025/01/01/2025%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/websitebeauty/404/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/websitebeauty/Relativeaddress/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/websitebeauty/accelerate/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/websitebeauty/backgroud/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/websitebeauty/footer/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/websitebeauty/header/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/websitebeauty/linktech/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/websitebeauty/mkcomments/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/websitebeauty/mkdocsfont/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/websitebeauty/mkpdf/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/websitebeauty/shubiao/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/websitebeauty/time/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/websitebeauty/webtalknow/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/websitebeauty/yuanjiaohua/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/develop/git/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/develop/lighthouse/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/develop/vercel/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/develop/Markdown/MWeb/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/develop/Markdown/markdown/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/develop/designbeauty/db1/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/develop/designbeauty/my-to-desihn/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/en/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/archive/2025/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/archive/2024/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/archive/2023/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/archive/2022/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/archive/2021/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/category/%E7%BD%91%E7%AB%99%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://wcowin.work/Mkdocs-Wcowin/blog/category/hello-world/</loc>
|
||||
<lastmod>2025-05-11</lastmod>
|
||||
<lastmod>2025-06-03</lastmod>
|
||||
</url>
|
||||
</urlset>
|
BIN
sitemap.xml.gz
BIN
sitemap.xml.gz
Binary file not shown.
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="https://s2.loli.net/2025/02/12/aE5ovtzAlNTd9Uh.png">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.13">
|
||||
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user