Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.11.4
hooks:
- id: ruff
args:
Expand Down
6 changes: 3 additions & 3 deletions hooks/generate_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def main() -> None:
catalog = get_location_catalog(docs_dir)
# 为了控制显示顺序,人为指定 locations
locations = ["北京", "京外"]
assert (
len(locations) == len(catalog)
), "人为规定的`locations`数量应当与实际相同。如果您给某个`university/*.md`加了新的`location`,应当更新`locations`。"
assert len(locations) == len(catalog), (
"人为规定的`locations`数量应当与实际相同。如果您给某个`university/*.md`加了新的`location`,应当更新`locations`。"
)

with mkdocs_gen_files.open("SUMMARY.md", "w") as f: # Used by mkdocs-literate-nav
tab = " " * 4
Expand Down
2 changes: 1 addition & 1 deletion hooks/macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def still_migrating():
return f"""
!!! warning ":material-file-move-outline: 仍在迁移"

此文档尚未完成迁移,排版可能不正常。建议您暂时参阅[**:material-file-document-outline:原先的飞书版本**]({env.page.meta['feishu_url']})。
此文档尚未完成迁移,排版可能不正常。建议您暂时参阅[**:material-file-document-outline:原先的飞书版本**]({env.page.meta["feishu_url"]})。

如果您有兴趣帮助迁移,可以[:material-file-edit-outline:编辑此页]({env.page.edit_url})。
(记得到 [:octicons-issue-opened-24:议题#6](https://github.com/Scholar-Compass/content/issues/6) 说一声,以免和同学撞车。)
Expand Down