Skip to content

Commit 3c9b2ed

Browse files
committed
dependencies: use compatible version and avoid hardcode override themes
1 parent fa3b3f4 commit 3c9b2ed

File tree

13 files changed

+69
-384
lines changed

13 files changed

+69
-384
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
[![](https://github.com/ZJU-Turing/TuringDoneRight/actions/workflows/deploy.yml/badge.svg)](https://turing2025.tonycrane.cc/)
44

5-
> **Warning** 正在建设中
5+
> [!Warning]
6+
> 正在建设中
67
78
## 本地构建
89

910
- 安装依赖
1011
```sh
11-
$ pip install -r requirements.txt # 注意固定版本号可能会干扰原有环境
12+
$ pip install -r requirements.txt
1213
```
1314
- 开启本地预览服务
1415
```sh

mkdocs.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ theme:
2626
palette:
2727
- scheme: default
2828

29-
extra:
30-
analytics:
31-
provider: custom
32-
property: G-G594CHT348
33-
3429
markdown_extensions:
3530
- toc:
3631
permalink: true

overrides/base.html

Lines changed: 0 additions & 266 deletions
This file was deleted.

overrides/main.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{% extends "base.html" %}
2+
3+
{% block extrahead %}
4+
{% if page and page.meta and page.meta.counter %}
5+
<link rel="stylesheet" href="https://cdn.tonycrane.cc/turing2022/css/counter.css">
6+
{% endif %}
7+
{% endblock %}
8+
9+
{% block site_nav %}
10+
{{ super() }}
11+
{% if "toc.integrate" not in features %}
12+
{% if page and page.meta and page.meta.fold_toc %}
13+
<script src="{{ 'js/toc.js' | url }}" defer></script>
14+
<link rel="stylesheet" href="{{ 'css/fold_toc.css' | url }}">
15+
{% endif %}
16+
{% endif %}
17+
{% endblock %}

overrides/partials/content.html

Lines changed: 0 additions & 18 deletions
This file was deleted.

overrides/partials/copyright.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@
1919
</a>
2020
{% endif %}
2121
</div>
22-

0 commit comments

Comments
 (0)