跳转至

mkdocs.yml配置文件

Material 主题 官方文档

本站基础配置

# Project information
site_name: Lyricn Wiki
site_url: https://wiki.lyricn.com
site_author: qhx
site_description: >-
  陪伴,無論你需不需要我一直都在...

repo_name: lyricer/love
repo_url: https://github.com/lyricer/love

# Navigation
nav:
    - Home: index.md
    - Wiki:
        - 介绍: wiki_index.md
        - GitBook:
            - 1.NVM安装使用: GitBook/1.NVM安装使用.md
            - 2.GitBook搭建: GitBook/2.GitBook搭建.md
            - 3.GitBook插件: GitBook/3.GitBook插件.md
        - MkDocs:
            - 1.MkDocs搭建: MkDocs/1.MkDocs搭建.md
            - 2.mkdocs配置文件: MkDocs/2.mkdocs配置文件.md
    - Ops:
        - Server:
            - Linux:
                - 基础: Ops/Linux/Linux/0.基础.md
                - 安全: Ops/Linux/Linux/1.服务器安全.md
                - 防火墙: Ops/Linux/Linux/2.防火墙.md
                - 解压缩: Ops/Linux/Linux/3.解压缩.md
                - Log: Ops/Linux/Linux/4.Log.md
                - 文件: Ops/Linux/Linux/5.文件.md
                - CentOS:
                    - 升级OpenSSH: Ops/Linux/Linux/CentOS/升级OpenSSH.md
                - Ubuntu:
                    - Ubuntu22.04: Ops/Linux/Linux/Ubuntu/Ubuntu22.04.md
                - 深入理解Linux网络:
                    - 介绍: Ops/Linux/深入理解Linux网络/0.index.md
                    - 1.绪论: Ops/Linux/深入理解Linux网络/1.绪论.md
                - PVE:
                    - 使用: Ops/Linux/PVE/0.使用.md
            - Windows:
                - 必备软件: Ops/Windows/1.Windows软件.md
                - 常用命令: Ops/Windows/2.常用命令.md
                - 服务器安全: Ops/Windows/0.服务器安全.md
                - 遇到的问题: Ops/Windows/3.遇到的问题.md
            - OpenWrt:
                - 编译: Ops/OpenWrt/0.编译.md
    - ProgramL:
        - PHP:
            - 基础: ProgramL/PHP/php.md
        - SQL:
            - MySQL:
                - mysql基础: ProgramL/SQL/MySQL/1.mysql基础.md
            - phpMyAdmin:
                - 遇到的问题: ProgramL/SQL/phpMyAdmin/遇到的问题.md
        - Python:
            - 基础: ProgramL/Python/1.Python.md
    - VPS:
        - 部署:
            - 常用脚本: VPS/常用脚本.md
            - 服务商: VPS/服务商.md
            - Telegram: VPS/Telegram.md
            - 遇到的问题: VPS/遇到的问题.md
            - 增加交换内存: VPS/增加交换内存.md
            - ZeroTier: VPS/ZeroTier.md
        - Cloudflare:
            - 使用: VPS/Cloudflare/Cloudflare使用.md
        - Wordpress:
            - 基础: WordPress/wordpress基础.md
            - 安全: WordPress/wordpress安全.md
            - 迁移: WordPress/wordpress迁移.md
            - 插件: WordPress/wordpress插件.md
            - 配置: WordPress/wordpress配置.md
    - IOS:
        - Swift学习:
            - 介绍: IOS学习/Swift/0.介绍.md
    - Docker:
        - 1.基础: Docker/1.基础.md
        - 2.流程: Docker/2.流程.md
        - 3.容器安装: Docker/3.容器安装.md
        - 4.存储目录迁移: Docker/4.存储目录迁移.md
        - Windows使用: Docker/windows使用docker.md
    - Reading:
        - 爱上跑步的13周: Book/爱上跑步的13周.md

    - Other:
        - JetBrains: Other/JetBrains.md
    - Tags: Other/tags.md
    - Blog: https://lyricn.com

plugins:
    - tags:
        tags_file: Other/tags.md
    - search:
        lang: es #英文搜索引擎
extra:
  social:
    - icon: fontawesome/brands/twitter
      link: https://twitter.com/qhx1996

theme:
  name: material
  highlightjs: true
  palette:
    # Toggle light mode
    - scheme: default
      primary: indigo
      accent: pink
      toggle:
        icon: material/toggle-switch
        name: Switch to light mode

    # Toggle dark mode
    - scheme: slate
      primary: deep purple
      accent: blue
      toggle:
        icon: material/toggle-switch-off-outline
        name: Switch to dark mode
  features:
    - search.suggest #搜索建议
    - search.highlight # 搜索高亮
    - header.autohide
    - navigation.top # 回到顶部的按钮
    - navigation.tabs # 顶部选项卡/栏位
    - navigation.tabs.sticky
    - navigation.sections
    - navigation.expand
    - navigation.indexes #文件夹下的 index.md 自动「连接」
    - toc.integrate
  language: 'zh' # 中文
  icon:
    repo: fontawesome/brands/git-alt
  favicon: assets/images/logo.png
  #logo: assets/images/logo.png
  font:
    text: 'Ubuntu'
    code: 'Ubuntu Mono'
markdown_extensions:
    - admonition
    - codehilite:
        guess_lang: false
        linenums: false
    - toc:
        permalink: true
    - footnotes
    - meta
    - def_list
    - pymdownx.arithmatex
    - pymdownx.betterem:
        smart_enable: all
    - pymdownx.caret
    - pymdownx.critic
    - pymdownx.details
    - pymdownx.emoji:
        emoji_generator: !!python/name:pymdownx.emoji.to_png
    - pymdownx.inlinehilite
    - pymdownx.magiclink
    - pymdownx.mark
    - pymdownx.smartsymbols
    - pymdownx.superfences
    - pymdownx.tasklist:
        custom_checkbox: true
    - pymdownx.tabbed
    - pymdownx.tilde
    - markdown_checklist.extension #待办清单