chore: add more configuration in mkdocs.yml

This commit is contained in:
Dup4 2022-02-15 13:03:11 +08:00
parent f71ff89e3d
commit a00b2620b8
No known key found for this signature in database
GPG Key ID: A5AFB7DF61AB5579
2 changed files with 75 additions and 5 deletions

View File

@ -11,9 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: pip3 install -U -r requirements.txt
- run: mkdocs gh-deploy --force

View File

@ -1,7 +1,74 @@
site_name: CS自学指南
site_url: https://csdiy.wiki/
site_author: PKUFlyingPig
site_description: >-
CS自学指南
repo_name: cs-self-learning
repo_url: https://github.com/pkuflyingpig/cs-self-learning/
copyright: Copyright &copy; 2021-present <a href="https://github.com/PKUFlyingPig" target="_blank" rel="noopener noreferrer">PKUFlyingPig</a>
theme:
name: material
repo_url: https://github.com/pkuflyingpig/cs-self-learning/
language: zh
static_templates:
- 404.html
include_search_page: false
search_index_only: true
features:
- header.autohide
# - navigation.instant
# - navigation.expand
# - navigation.sections
- navigation.tracking
# - navigation.tabs
# - navigation.tabs.sticky
- navigation.top
# - navigation.indexes
- search.highlight
- search.share
- search.suggest
# - toc.integrate
- content.code.annotate
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
primary: light blue
accent: deep purple
toggle:
icon: material/weather-sunny
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: cyan
accent: deep purple
toggle:
icon: material/weather-night
name: Switch to light mode
font:
text: Roboto
code: Roboto Mono
icon:
repo: fontawesome/brands/github
plugins:
- search:
lang: ja
- git-revision-date-localized
- minify:
minify_html: true
extra:
social:
- icon: fontawesome/brands/github
link: https://github.com/pkuflyingpig/cs-self-learning/
nav:
- 前言: 'index.md'
- 一个仅供参考的CS学习规划: 'CS学习规划.md'