Skip to content

Commit 81afcec

Browse files
committed
update
1 parent 6c85bfa commit 81afcec

File tree

3 files changed

+94
-0
lines changed

3 files changed

+94
-0
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
permissions:
8+
contents: write
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Configure Git Credentials
15+
run: |
16+
git config user.name github-actions[bot]
17+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
18+
- uses: actions/setup-python@v4
19+
with:
20+
python-version: 3.x
21+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
22+
- uses: actions/cache@v3
23+
with:
24+
key: mkdocs-material-${{ env.cache_id }}
25+
path: .cache
26+
restore-keys: |
27+
mkdocs-material-
28+
- run: pip install mkdocs-material
29+
- run: mkdocs gh-deploy --force

mkdocs.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
site_name: 小林 x 图解计算机基础(搬运)
2+
3+
theme:
4+
name: material
5+
custom_dir: overrides
6+
logo: assets/logo.jpg
7+
favicon: assets/logo.jpg
8+
language: zh
9+
font:
10+
code: Roboto Mono
11+
12+
palette:
13+
- media: "(prefers-color-scheme: light)"
14+
scheme: default
15+
toggle:
16+
icon: material/brightness-7
17+
name: 切换到夜间模式
18+
19+
- media: "(prefers-color-scheme: dark)"
20+
scheme: slate
21+
accent: deep orange
22+
toggle:
23+
icon: material/brightness-4
24+
name: 切换到日间模式
25+
26+
features:
27+
- navigation.instant
28+
- navigation.instant.progress
29+
- navigation.tracking
30+
- navigation.tabs
31+
- navigation.tabs.sticky
32+
- navigation.sections
33+
# - navigation.expand
34+
# - navigation.path
35+
- navigation.top
36+
- content.code.copy
37+
- content.tabs.link
38+
39+
plugins:
40+
- search
41+
42+
markdown_extensions:
43+
- pymdownx.highlight:
44+
auto_title: true
45+
anchor_linenums: true
46+
linenums: true
47+
line_spans: __span
48+
- pymdownx.tabbed:
49+
alternate_style: true
50+
- attr_list
51+
- md_in_html
52+
- admonition
53+
- pymdownx.details
54+
- pymdownx.inlinehilite
55+
- pymdownx.snippets
56+
- pymdownx.superfences
57+
58+
extra_css:
59+
- assets/extra.css

overrides/main.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{% extends "base.html" %}
2+
3+
{% block extrahead %}
4+
<meta name="referrer" content="no-referrer">
5+
{{ super() }}
6+
{% endblock %}

0 commit comments

Comments
 (0)