From 046c4a075513ca9d6cb7e609d74fd2e4f3ce8cd4 Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Wed, 28 Oct 2026 10:37:26 +0800 Subject: [PATCH] Update build.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 网站侧边栏中删除面试高频问题一项,与首页保持一致。 --- website/builder/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/builder/build.py b/website/builder/build.py index 4e773ac2..3fa57e5b 100644 --- a/website/builder/build.py +++ b/website/builder/build.py @@ -153,7 +153,7 @@ def build(optimize=True): homepage = homepage.replace('width="200px"', 'class="site-logo" width="200px"', 1) (dist / 'README.md').write_text('# CS-Notes\n\n' + homepage) note_paths = ['/' + str(p.relative_to(ROOT).with_suffix('')) for p in sorted((ROOT / 'notes').glob('*.md'))] - sidebar = ['- [首页](/)', '- [面试高频问题](/notes/面试高频问题)', ''] + sidebar = ['- [首页](/)', ''] for line in homepage.splitlines(): if line.startswith('## '): label = re.sub(r':[a-z0-9_]+:', '', line[3:]).strip()