From 9c1e4767e518bc796fb6c561cc10d5ef35f7afd4 Mon Sep 17 00:00:00 2001 From: Wcowin <1135801806@qq.com> Date: Tue, 4 Jun 2024 15:03:45 +0800 Subject: [PATCH] Create mkdocs.yml --- docs/mkdocs.yml | 460 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 460 insertions(+) create mode 100644 docs/mkdocs.yml diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml new file mode 100644 index 000000000..e48a2f3bf --- /dev/null +++ b/docs/mkdocs.yml @@ -0,0 +1,460 @@ +#[Info] +site_name: Wcowin's Web +site_url: http://wcowin.work/ +site_author: 王科文(Wcowin) + +#[UI] +theme: + name: material + custom_dir: docs/overrides + # font: + # text: Bitter + # code: Roboto Mono + logo: https://i.postimg.cc/RVk3KzS2/Cravatar-modified.png + #https://s1.imagehub.cc/images/2024/02/02/91a767e93d1a344e44c69936464c583e.png + # https://s2.loli.net/2024/02/01/gaE47y5fKM6kosV.png + favicon: https://s2.loli.net/2024/04/06/yEOZavwMr6kTWhu.png + palette: + - media: "(prefers-color-scheme)" + toggle: + icon: material/link + name: 关闭自动模式 + #primary: blue grey + - media: "(prefers-color-scheme: light)" + scheme: default # 日间模式 + primary: blue grey # 上方的 + accent: blue # 链接等可交互元件的高亮色 + # teal + toggle: + icon: material/toggle-switch # 图标 + name: 切换至夜间模式 # 鼠标悬浮提示 + - media: "(prefers-color-scheme: dark)" + scheme: slate # 夜间模式 + primary: black + accent: indigo + # teal + toggle: + icon: material/toggle-switch-off-outline + name: 切换至日间模式 + features: + - announce.dismiss #呈现可标记为由用户读取的临时公告,可以包含一个用于取消当前公告的按钮 + # - navigation.instant + #- header.autohide #自动隐藏 + - navigation.instant.progress + # - navigation.prune #渲染的 HTML 中仅包含可见的导航项 + - navigation.tracking #地址栏中的 URL 将自动更新为在目录中突出显示的活动锚点 + - navigation.tabs #顶级部分将呈现在上面视口标题下方的菜单层中,但在移动设备上保持原样 + # - navigation.tabs.sticky #启用粘性选项卡后,导航选项卡将锁定在标题下方,并在向下滚动时始终保持可见 + - navigation.sections #启用部分后,顶级部分在边栏中呈现为1220px以上视口的组,但在移动设备上保持原样 + - navigation.top # 返回顶部的按钮 在上滑时出现 + - navigation.footer #页脚将呈现在边栏中,但在移动设备上保持原样 + - search.suggest # 搜索输入一些字母时推荐补全整个单词 + - search.highlight # 搜索出的文章关键词加入高亮 + - search.share #搜索分享按钮 + - navigation.expand # 打开Tab时左侧目录全部展开 + - navigation.indexes #启用节索引页后,可以将文档直接附加到节 + - content.tabs.link + - content.tooltips + - content.code.copy + - content.code.select + - content.action.edit + - content.action.view + - content.code.annotate + language: zh # 一些提示性的文字会变成中文 + icon: + repo: fontawesome/brands/github #右上角图标 + tag: + html: fontawesome/brands/html5 + js: fontawesome/brands/js + css: fontawesome/brands/css3 + Mkdocs: octicons/tag-16 + +edit_uri: edit/main/docs # 编辑按钮跳转的链接 +repo_url: https://github.com/Wcowin/Wcowin.github.io # 右上角点击跳转的链接 +repo_name: Wcowin.github.io # 右上角的名字 + +# [Navigtion] +nav: + - 主页: index.md + - 技术: + - 好用/好玩网站分享: blog/Webplay.md + - 甜甜圈🍩代码: blog/technique sharing/ttq.md + - Mac/windows软件网站汇总: blog/macsoft.md + - 语雀: blog/yuque.md + - Telegram 群组、频道、机器人 汇总分享: blog/TG.md + - MKdocs教程: + - 利用mkdocs部署静态网页至GitHub pages: blog/Mkdocs/mkdocs1.md + - Mkdocs部署静态网页至GitHub pages配置说明(mkdocs.yml): blog/Mkdocs/mkdocs2.md + - 解决 mkdocs部署 Github Pages 自定义域名失效的问题: blog/Mkdocs/mkdocs3.md + - 网站添加Mkdocs博客: blog/Mkdocs/mkdocsblog.md + - Mkdocs美化: + - 网页圆角化设计: blog/websitebeauty/yuanjiaohua.md + - Mkdocs-Wcowin主题: blog/websitebeauty/mkdocs-wcowin1.md + - 添加评论系统(giscus为例): blog/websitebeauty/mkcomments.md + - 添加顶部公告栏: blog/websitebeauty/header.md + - 添加在线聊天: blog/websitebeauty/webtalknow.md + - 修改网站字体: blog/websitebeauty/mkdocsfont.md + - JS实现鼠标样式: blog/websitebeauty/shubiao.md + - 背景特效: blog/websitebeauty/backgroud.md + - 为MKdocs添加文章修订时间戳: blog/websitebeauty/time.md + - 技术分享: + - Win11镜像下载、壁纸及KMS激活 : blog/technique sharing/win.md + - 实用脚本分享: blog/technique sharing/jiaoben.md + - 搭建个人图床: blog/technique sharing/tuchuang.md + - oh-my-zsh 更新: blog/technique sharing/ohmuzsh.md + - 解决谷歌翻译用不了的问题: blog/technique sharing/googletranslate.md + - 爱心代码: blog/technique sharing/aixin.md + - 用Matlab画玫瑰百合花: blog/technique sharing/matlabrose.md + - 科学上网: blog/technique sharing/kexue.md + - 计算机编年史: blog/technique sharing/jisuanjibiannianshi.md + + - 学术: + - LaTeX常用符号整理: blog/Academic/LaTeX.md + - 一份简短的关于LATEX安装的介绍: https://mirrors.sjtug.sjtu.edu.cn/ctan/info/install-latex-guide-zh-cn/install-latex-guide-zh-cn.pdf + - 希腊字母总结: blog/Academic/希腊字母.pdf + - Math: blog/Academic/math.md + - 数学竞赛: + - 第十四届全国大学生数学竞赛(非数学类)初赛补赛详细解答: blog/Academic/Math/14.md + - 第十三届全国大学生数学竞赛(非数学类)决赛详细解答: blog/Academic/Math/13js.md + - 电磁场期末复习索引: blog/Academic/diancichang.html + - 电磁场期末公式总结(手写): blog/Academic/ddiancichang.md + - Mac: + - PD虚拟机: blog/Mac/Pd.md + - 提示 「“XXX”已损坏,无法打开。 您应该将它移到废纸篓。」「打不开 xxx,因为它来自身份不明的开发者」解决方法: blog/Mac/sunhuai.md + - Macbook启动台顽固应用图标删除方法: blog/Mac/shanchu.md + - Homebrew国内如何自动安装(国内地址)(Mac & Linux): blog/Mac/homebrew.md + - mac 无法访问 github 的解决办法: blog/Mac/jiasugithub.md + - Mac的esc键失效的解决方法: blog/Mac/Macesc.md + - 启动台图标顺序错乱怎么办: blog/Mac/Launchpad.md + - Mac小技巧:去除系统截图名的日期后缀: blog/Mac/jietu.md + - 小小Mac技巧: blog/Mac/xjiq.md + - Mac隐藏彩蛋: blog/Mac/maccd.md + - Mac 键盘快捷键: blog/Mac/kjj.md + - iPhone: + - iphone多账号如何不频繁登录,双重认证: blog/iphone/iphoneduozhanghao.md + - 苹果iphone /iOS 限免网站合集: blog/iphone/iphonexianmian.md + - 苹果手机如何去除开屏广告: blog/iphone/iphonequchukaiping.md + - WIN: + - 彻底卸载360安全卫士的方法: blog/Win/360.md + - 三步卸载 Microsoft Edge: blog/Win/edgexz.md + - windows快捷键: blog/Win/winkjj.md + - 安卓的子系统: blog/Win/anzhuodezixit.md + - Python: + - 将Python文件.py打包成.exe可执行程序: blog/py/python.md + - pip: blog/py/pip.md + - C语言: + - C笔记: blog/C language/c.md + - C++: blog/C language/C++.md + + - 开发: + - develop/index.md + - 我的设备: develop/mydevice.md + - 如何注册ChatGPT: develop/ChatGPT.md + - Markdown: + - Markdown指南: develop/Markdown/markdown.md + - MWeb Pro: develop/Markdown/MWeb.md + - Git 实用技巧: develop/git.md + - 我的作品: + - Mkdocs-Wcowin主题: develop/Mywork/mkdocs-wcowin.md + - 人脸识别系统: develop/Mywork/face-recognition.md + - 基于讯飞人脸算法进行人脸比对: develop/Mywork/face_compare.md + - 基于百度API和opencv的智能车牌识别程序: develop/Mywork/opencv.md + - 利用百度API进行植物识别: develop/Mywork/aizhiwu.md + - 玩的设计: develop/Mywork/design.md + - 设计美学: + - 唐·诺曼—情感设计的三个层次: develop/designbeauty/db1.md + - 我对设计的一些观点: develop/designbeauty/my-to-desihn.md + - 1024code: develop/1024code.md + - 利用Lighthouse测试网站性能: develop/lighthouse.md + - What is Github: develop/Github.md + - 如何将 github pages 迁移到 vercel 上托管: develop/vercel.md + - 大厂们的良心软件~: develop/fenxiang.md + - 写给所有 Mac 用户的摸鱼指北: develop/Mac.md + - 看源码才懂: develop/kanyuanma.md + + - 闲话: + - relax/index.md + - 推荐的Books: relax/tuijianyuedu.md + - 小米: relax/xiaomo.md + - Apple: relax/Apple.md + # - 如是我闻: relax/rushiwowen.md + - 王冰冰♡: relax/wbb.md + - 诗文: + - 枫桥夜泊: relax/shiwen/fqyb.md + - 滕王阁序: relax/shiwen/twgx.md + - 望江南·超然台作: relax/shiwen/sjcnh.md + - 击鼓: relax/shiwen/jg.md + - 雨霖铃·秋别: relax/shiwen/yll.md + - 江城子·乙卯正月二十日夜记梦: relax/shiwen/jcz.md + - 日记: + - 2024: + - 20240131: relax/diary/2024/20240131.md + - 20240218: relax/diary/2024/20240218.md + - 数至十: + - 1: relax/wkwMath/1.md + - 2: relax/wkwMath/2.md + - 3: relax/wkwMath/3.md + - 4: relax/wkwMath/4.md + - 5: relax/wkwMath/5.md + - 6: relax/wkwMath/6.md + # - 诗经: relax/shiwen/shijing.json + + - 观影: + - 推荐的番剧: relax/Movie/tuijianfanju.md + - 推荐的电影: relax/Movie/tuijiandedianyin.md + - 推荐的电视剧: relax/Movie/tuijiandsj.md + + - 杂文: + - 毛主席语录选编: relax/Essay/mzdyl.md + - 《目送》节选: relax/Essay/musong.md + - 大学一个人吃饭很丢人吗?: relax/Essay/dx.md + - luv letter: relax/Essay/luv letter.md + - 有哪些给男孩子在谈恋爱时的忠告?: relax/Essay/zhonggao.md + - 哈基米🐈: relax/Essay/cat.md + - 程序人生: + - 《程序员成长历程的四个阶段》: relax/Manong/sigejieduan.md + - 《程序员脱单指南》: relax/Manong/tuodanbukeneng.md + - 《程序员学习路线图》: relax/Manong/wtf.md + - 《printf("❤️\n》: relax/Manong/cxiaoaixin.md + - 写信: + - 第一封: relax/Letter/letter1.md + - 第二封: relax/Letter/letter2.md + - 情书: + - 朱生豪与宋清如: relax/Letter/luvletter/sqrzszyz.md + - 《朱生豪情书全集摘录》(021): relax/Letter/luvletter/zhushenghao1.md + - 《朱生豪情书全集摘录》(031): relax/Letter/luvletter/zhushenghao2.md + - 《朱生豪情书全集摘录》(036): relax/Letter/luvletter/zhushenghao3.md + - 《朱生豪情书全集摘录》(046): relax/Letter/luvletter/zhushenghao4.md + - 《朱生豪情书全集摘录》(053): relax/Letter/luvletter/zhushenghao5.md + - 《朱生豪情书全集摘录》(055): relax/Letter/luvletter/zhushenghao6.md + + - Game: + - 原神: relax/Game/yuanshen.md + - 如何玩好《王者荣耀》?: relax/Game/wzry.md + - 入党结业考试题总结: relax/rudang.md + - 润学之为什么润: about/run.md + - 让人说话,天塌不下来: about/maozedong.md + - 关于教育革命的谈话: relax/jiaoyu.md + - 程序猿神之楷模:一个人,一个网站,5.75亿美元卖掉: relax/kaimo.md + + - 旅行: + - trip/index.md + - 重庆: + - 重庆旅游推荐路线: trip/InCQ/CQ.md + - Hometown: trip/LH.md + - 西安: trip/Xian.md + + - 标签: tag.md + - 留言板: waline.md + - 友链: + - 友链: about/link.md + - 如何给MKdocs添加友链: blog/Mkdocs/linktech.md + - Blog: + - blog/index.md + - 关于: + - 个人简介: about/geren.md + # - 一纸简历: https://cv.devtool.tech/preview/76751620-faad-4537-bffd-73ced6ee9671 + - 个人简历: https://lightpdf.cn/docs/ozompku + - My Goal: about/goal.md + - Github主页介绍: about/Wcowin.md + - 网站制作: about/web.md + - 支持作者: about/zcw.md + + - 毕业之前值得去做的30件事: about/biye.md + - 免责声明: about/shengming.md + - Test: about/test.md + - 404公益页面: about/404.md + # - 我们♡+♡=♡²: about/Foryou.md + - 年度总结: + - 2023: about/zongjie/2023.md + - 考研: about/kaoyan.md + +copyright: Copyright © 2022~2024 Wcowin/All Rights Reserved. # 左下角的版权声明 + +extra: + cusdis: + host: https://cusdis.com + app_id: 655cf3bc-734a-4d88-8317-be350621334c + lang: zh-cn + alternate: + - name: 简体中文 + link: / + # https://wcowin-work.translate.goog/?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=zh-CN&_x_tr_pto=wapp + lang: zh + - name: English + link: /en/ + # https://wcowin-work.translate.goog/?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=zh-CN&_x_tr_pto=wapp + lang: en + - name: 中国(台湾) + link: /ZH-TW/ + # https://wcowin-work.translate.goog/?_x_tr_sl=zh-CN&_x_tr_tl=zh-TW&_x_tr_hl=zh-CN&_x_tr_pto=wapp + lang: zh-TW + generator: true #删除页脚显示“使用 MkDocs 材料制造” + social: + - icon: fontawesome/brands/weixin + link: https://s1.imagehub.cc/images/2024/02/02/bb9ee71b03ee7a3b87caad5cc4bcebff.jpeg + name: Wechat + - icon: fontawesome/brands/x-twitter + link: https://twitter.com/wcowin_ + name: Twitter + - icon: fontawesome/brands/github + link: https://github.com/Wcowin + name: Github + - icon: fontawesome/solid/file-code + link: https://blog.csdn.net/m0_63203517?spm=1000.2115.3001.5343 + name: CSDN + - icon: fontawesome/regular/envelope + link: mailto: #联系方式 + name: Email + + analytics: + provider: google + property: G-29HZMNR0KG + feedback: + title: 此页面有帮助吗? + ratings: + - icon: material/thumb-up-outline + name: This page was helpful + data: 1 + note: >- + 谢谢你的反馈! + - icon: material/thumb-down-outline + name: This page could be improved + data: 0 + note: >- + Thanks for your feedback! Help us improve this page by + using our feedback form. + # consent: + # title: Cookie consent + # description: >- + # 我们也使用cookies来识别您的重复访问和偏好来衡量我们文档的有效性以及用户是否找到他们要找的东西。 + # 如果你同意,你可以帮助我们让我们的网站更好 + + +plugins: + - search: + separator: '[\s\u200b\-_,:!=\[\]()"`/]+|\.(?!\d)|&[lg]t;|(?!\b)(?=[A-Z][a-z])' + - offline + - open-in-new-tab + - git-revision-date-localized: + enabled: !ENV [CI, false] + type: iso_date + enable_creation_date: true + fallback_to_build_date: true + exclude: + - index.md + - tag.md + - waline.md + - blog/posts/update.md + - blog/posts/wkw.md + - about/link.md + - blog/Mkdocs/linktech.md + - git-committers: + enabled: !ENV [CI, false] + repository: Wcowin/Wcowin.github.io + branch: main + exclude: + - index.md + - tag.md + - waline.md + - blog/posts/update.md + - blog/posts/wkw.md + - about/link.md + - blog/Mkdocs/linktech.md + - blog: + post_date_format: full #时间 + draft: true + draft_if_future_date: true #自动将具有未来日期的帖子标记为草稿 + post_readtime: true + post_readtime_words_per_minute: 265 #计算帖子的阅读时间时读者每分钟预计阅读的字数 + post_url_format: "{date}/{slug}" + # categories_slugify: !!python/object/apply:pymdownx.slugs.slugify + # kwds: + # case: lower + # categories_toc: true + # pagination_per_page: 5 + pagination_url_format: "page/{page}" + authors_file: "{blog}/.authors.yml" #作者信息 + - tags: + tags_file: tag.md #分类标签 + +markdown_extensions: + - abbr + - attr_list + - admonition + - def_list + - footnotes + - callouts + - md_in_html + - markdown.extensions.abbr # 支持Markdown文件上方自定义标题标签等 + - pymdownx.caret + - pymdownx.betterem + - pymdownx.critic + - pymdownx.details + - pymdownx.inlinehilite + - pymdownx.keys + - pymdownx.mark + - pymdownx.snippets + - pymdownx.smartsymbols + - pymdownx.tilde + + - pymdownx.superfences: + custom_fences: + - name: mermaid + class: mermaid + format: !!python/name:pymdownx.superfences.fence_code_format + - pymdownx.arithmatex: # latex支持 + generic: true + - toc: + permalink: true # 固定标题位置为当前位置 + - pymdownx.highlight: # 代码块高亮 + anchor_linenums: true + linenums: true # 显示行号 + # auto_title: true # 显示编程语言名称 + - pymdownx.emoji: + emoji_index: !!python/name:material.extensions.emoji.twemoji + emoji_generator: !!python/name:material.extensions.emoji.to_svg + - pymdownx.tabbed: + alternate_style: true + - pymdownx.tasklist: + custom_checkbox: true + + +extra_javascript: + # - javascripts/extra.js + - javascripts/bannerSlider.js + - https://cdn.jsdelivr.net/gh/Wcowin/Wcowin.github.io@main/docs/javascripts/extra.js # extra的cdn + - javascripts/mathjax.js + - https://polyfill.io/v3/polyfill.min.js?features=es6 + - https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js + # - javascripts/mathjax-config.js + # - https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_HTML + # - https://cdn.jsdelivr.net/npm/gitalk@latest/dist/gitalk.min.js + # - https://cdnjs.cloudflare.com/ajax/libs/social-share.js/1.0.16/js/social-share.min.js + # - javascripts/backbound1.js + # - https://cdn.jsdelivr.net/npm/mermaid@10.0.2/dist/add-html-label-6e56ed67.min.js + # - https://res.zvo.cn/translate/translate.js # Translate + + + +extra_css: + - stylesheets/extra.css + - stylesheets/extra2.css #诗词版、打赏 + - stylesheets/link.css #友链 + - stylesheets/customize.css #按钮圆角化 + - stylesheets/bannerSlider.css + # - https://cdn.jsdelivr.net/gh/Wcowin/Wcowin.github.io@main/docs/stylesheets/extra.css # extra.css的CDN + # - stylesheets/extra1.css + # - stylesheets/video.css + # - https://unpkg.com/@waline/client@v2/dist/waline.css + # - https://cdn.jsdelivr.net/npm/gitalk@latest/dist/gitalk.css #评论 + # - ckplayer/css/ckplayer.css + # - https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css + # - https://cdnjs.cloudflare.com/ajax/libs/social-share.js/1.0.16/css/share.min.css + - https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.1.0/style.css #字体 + + +watch: + - docs + - mkdocs.yml + - docs/overrides/partials \ No newline at end of file