Skip to content

Commit

Permalink
website
Browse files Browse the repository at this point in the history
  • Loading branch information
ZehyrW committed Jan 21, 2024
1 parent fe15edd commit 04ddbf4
Show file tree
Hide file tree
Showing 54 changed files with 9,773 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Welcome to MkDocs

For full documentation visit [mkdocs.org](https://www.mkdocs.org).

## Commands

* `mkdocs new [dir-name]` - Create a new project.
* `mkdocs serve` - Start the live-reloading docs server.
* `mkdocs build` - Build the documentation site.
* `mkdocs -h` - Print help message and exit.

## Project layout

mkdocs.yml # The configuration file.
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files.

4 changes: 4 additions & 0 deletions docs/关于我/About_me.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ABOUT ME
## 1. 个人简介
武汉大学,网络空间安全专业,大三在读

1 change: 1 addition & 0 deletions docs/算法/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
> 记录一下寒假的机试练习
120 changes: 120 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
site_name: WHU-WWZ Website


nav:
- 首页: index.md
- 机试: 算法/index.md
- 关于我: 关于我/About_me.md



theme:
name: 'material'
language: zh
font:
# text: Long Cang
text: Exo 2
code: Playfair Display
favicon: assets/blog.png
icon:
logo: assets/blog.png
palette:
# Toggle light mode
- scheme: default
primary: white
accent: indigo
toggle:
icon: material/weather-sunny
name: 亮色模式
# Toggle dark mode
- scheme: slate
primary: black
accent: blue
toggle:
icon: material/weather-night
name: 暗色模式
features:
- navigation.tabs
# - navigation.sections
# - toc.integrate
- search.suggest
- search.highlight
- search.share
- header.autohide
icon:
repo: fontawesome/brands/github

extra:
social: # icons
# - icon: fontawesome/brands/bilibili
# link: https://space.bilibili.com/24502827
# name: Bilibili | 杨希杰619 # 鼠标悬浮提示
- icon: fontawesome/brands/github
link: https://github.com/ZehyrW
name: GitHub
- icon: fontawesome/brands/instagram
link: https://instagram.com
name: Instagram
- icon: fontawesome/brands/twitter
link: https://twitter.com/
name: Twitter
- icon: fontawesome/solid/paper-plane
link: mailto:<[email protected]>

alternate:
# Switch to English
- name: English
link: <your-site>/en/
lang: en
# Switch to Chinese
- name: 简体中文
link: <your-site>/de/
lang: zh
# Switch to Japanese
- name: 日本語
link: <your-site>/ja/
lang: ja

repo_url: https://github.com/ZehyrW 右上角点击跳转的链接
repo_name: ZehyrW(Wang Zhuo) # 右上角的名字

copyright: Copyright &copy; 2024 Whu-WWZ

# [Extensions]
plugins:
- search: # 现在还不支持中文搜索 支持之后可以设置语言
# insider已经支持中文的分词搜索了 https://squidfunk.github.io/mkdocs-material/blog/2022/chinese-search-support/
separator: '[\s\u200b\-]'
lang:
- en
- ja
- tags # 给单篇文章添加标签 https://squidfunk.github.io/mkdocs-material/setup/setting-up-tags/?h=tags


markdown_extensions:
- pymdownx.arithmatex: # 数学公式支持
generic: true
- attr_list # 给图片后面添加{width="300"}设置大小
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- toc:
permalink: true # 固定标题位置为当前位置
- pymdownx.highlight: # 代码块高亮
# linenums: true # 显示行号
# auto_title: true # 显示编程语言名称
- pymdownx.superfences # 代码块高亮插件
- meta # 支持Markdown文件上方自定义标题标签等
- admonition # https://squidfunk.github.io/mkdocs-material/reference/admonitions/#inline-blocks
- pymdownx.details # admonition需要

extra_javascript:
# 数学公式支持
# https://squidfunk.github.io/mkdocs-material/reference/math/#katex
- mkdocs/javascripts/katex.js
- https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/katex.min.js
- https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/contrib/auto-render.min.js
extra_css:
- https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.7/katex.min.css
- mkdocs/css/no-footer.css # 不使用底部的翻页
- mkdocs/css/unordered-list-symbols.css # multiplt unordered list symbols
Loading

0 comments on commit 04ddbf4

Please sign in to comment.