跳转至

2024-03-10⚓︎

继续爆肝!!!!!!!

开发进度 40% [########————————————]

更新了大量内容

今天一天全都在重构,脑子要炸了,睡觉了睡觉了, 快四了

功能太多了不一一列举了,都加注释了,自己看代码吧

犹记得第一次搭建博客的时候,彻夜不眠配置博客的支配,现在又开始了

ymal
# Markdown扩展配置
# https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#/
markdown_extensions:
  # Markdown缩写 - abbr
  # https://squidfunk.github.io/mkdocs-material/reference/tooltips/#adding-abbreviations
  - abbr

  # Markdown警告 - admonition
  # https://squidfunk.github.io/mkdocs-material/reference/admonitions/#usage
  - admonition

  # 属性列表 - attr_list
  # https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#attribute-lists
  - attr_list

  # 定义列表 - def_list
  # https://squidfunk.github.io/mkdocs-material/reference/lists/#/using-definition-lists
  - def_list

  # 脚注 - footnotes
  # https://squidfunk.github.io/mkdocs-material/reference/footnotes/#/adding-footnote-references
  - footnotes

  # HTML of Markdown - md_in_html
  # https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#markdown-in-html
  - md_in_html

  # 表格 - tables
  # https://squidfunk.github.io/mkdocs-material/reference/data-tables/#/usage
  - tables

  # 目录
  # https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#table-of-contents
  - toc:
      permalink: ⚓︎ # 链接图标样式
      # title: 目录  # 右侧目录的标题
      permalink_title: 锚链接到本标题

  # Mathjax
  - pymdownx.arithmatex:
      generic: true

  # 粗体斜体 ** __
  - pymdownx.betterem

  # 语法高亮 下划线 上下标显示
  # https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#caret-mark-tilde
  - pymdownx.caret
  - pymdownx.mark
  - pymdownx.tilde

  # 增删红绿标记
  # https://squidfunk.github.io/mkdocs-material/reference/formatting/#/highlighting-changes
  - pymdownx.critic:
      mode: view

  # 细节 - pymdownx.details
  # https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#details
  # https://squidfunk.github.io/mkdocs-material/reference/admonitions/#collapsible-blocks
  # https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#admonition
  - pymdownx.details

  # 表情符号
  # https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#emoji
  # - pymdownx.emoji:
  #     emoji_index: !!python/name:material.extensions.emoji.twemoji  # 定义使用哪组表情符号进行渲染
  #     emoji_generator: !!python/name:material.extensions.emoji.to_svg #定义如何呈现已解析的表情符号或图标简码。请注意,图标只能与to_svg配置一起使用
  #     options:
  #       custom_icons:
  #         - overrides/.icons

  # 代码高亮
  # https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#highlight
  - pymdownx.highlight:
      linenums: true # 行号开关
      anchor_linenums: true # 为所有代码块添加行号锚点
      use_pygments: true
      pygments_lang_class: true # 添加 CSS 类来识别代码块的语言,这对于自定义注释标记的功能至关重要
      auto_title: true # 显示正在使用的语言的名称
      linenums_style: pymdownx-inline
      line_spans: __span # 优化,让每一行代码都包含在<span>中

  # 内联高亮代码块,构建在代码高亮之上
  # https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#inlinehilite
  - pymdownx.inlinehilite

  # 按键/键盘
  # https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#keys
  - pymdownx.keys

  # 智能符号,某些字符序列转换为其相应的符号,例如版权符号或分数
  # https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#smartsymbols
  # https://facelessuser.github.io/pymdown-extensions/extensions/smartsymbols/#/
  - pymdownx.smartsymbols

  # 片段
  # https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#snippets
  - pymdownx.snippets:
      auto_append: # 缩写术语表
        - includes/abbreviations.md

  # 超级栅栏,允许代码和内容块任意嵌套,包括警告、选项卡、列表和所有其他元素。
  # https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#superfences
  # https://facelessuser.github.io/pymdown-extensions/extensions/superfences/#nested-fence-format
  - pymdownx.superfences:
      # 与高亮语冲突 https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#highlight
      custom_fences:
        - name: mermaid
          class: mermaid
          format: !!python/name:pymdownx.superfences.fence_code_format

  # 选项卡
  - pymdownx.tabbed:
      alternate_style: true
      combine_header_slug: true # 添加一个tab锚点
      # 为tab增加一个大标题,生成一个指定的锚点链接,上面的进阶用法
      slugify: !!python/object/apply:pymdownx.slugs.slugify # 允许自定义 slug 函数。对于某些语言,默认值可能不会产生良好且可读的标识符 - 考虑使用另一个 slug 函数
        kwds:
          case: lower


  # 任务列表
  - pymdownx.tasklist:
      custom_checkbox: true # 切换复选框的渲染样式,用漂亮的图标替换原生复选框样式,推荐打开
      clickable_checkbox: false # 是否可点击,但这种状态不是永久的,刷新会还原,不推荐打开

今天驻场 qfnuctf 比赛,蹲了一天班,休息一下,简单更新点小东西吧,回宿舍


2024-04-18 2024-03-10


发现错误? 想参与编辑? 请阅读: 贡献指南,想联系作者?请点击: 联系作者,想赞助我? 请点击: 赞助计划

评论