Skip to content

Commit

Permalink
chore: add more configuration in mkdocs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Dup4 committed Feb 15, 2022
1 parent f71ff89 commit a00b262
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: ci

on:
push:
branches:
branches:
- master
- main

Expand All @@ -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
73 changes: 70 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -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="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/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'
Expand Down Expand Up @@ -45,7 +112,7 @@ nav:
- 软件工程:
- 'MIT 6.031: Software Construction': '软件工程/6031.md'
- 'UCB CS169: software engineering': '软件工程/CS169.md'
- 体系结构:
- 体系结构:
- 'Coursera: Nand2Tetris': '体系结构/N2T.md'
- 'UCB CS61C: Great Ideas in Computer Architecture': '体系结构/CS61C.md'
- 'CMU 15-213: CSAPP': '体系结构/CSAPP.md'
Expand Down Expand Up @@ -79,7 +146,7 @@ nav:
- '智能计算系统': '人工智能/CYJ.md'
- 机器学习:
- 'Coursera: Machine Learning': '机器学习/ML.md'
- 'Stanford CS229: Machine Learning': '机器学习/CS229.md'
- 'Stanford CS229: Machine Learning': '机器学习/CS229.md'
- 'UCB CS189: Introduction to Machine Learning': '机器学习/CS189.md'
- 深度学习:
- 'Coursera: Deep Learning': '深度学习/CS230.md'
Expand Down

0 comments on commit a00b262

Please sign in to comment.