Skip to content

Commit 109c602

Browse files
authoredMay 17, 2024
chore: remove summary files (doocs#2828)
1 parent c29b144 commit 109c602

13 files changed

+15
-713
lines changed
 

‎lcci/summary.md

-115
This file was deleted.

‎lcci/summary_en.md

-115
This file was deleted.

‎lcof/summary.md

-81
This file was deleted.

‎lcof/summary_en.md

-81
This file was deleted.

‎lcof2/summary.md

-125
This file was deleted.

‎lcp/summary.md

-88
This file was deleted.

‎lcp/summary_en.md

-88
This file was deleted.

‎lcs/summary.md

-9
This file was deleted.

‎lcs/summary_en.md

-9
This file was deleted.

‎solution/CONTEST_README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
comments: true
3+
---
4+
15
# 力扣竞赛
26

37
[English Version](/solution/CONTEST_README_EN.md)

‎solution/CONTEST_README_EN.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
comments: true
3+
---
4+
15
# LeetCode Contest
26

37
[中文文档](/solution/CONTEST_README.md)

‎solution/template.md

+4
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ This work is licensed under a <a rel="license" href="http://creativecommons.org/
124124

125125
<!-- 这里是contest_readme_template开始位置 -->
126126

127+
{}
128+
127129
# 力扣竞赛
128130

129131
[English Version](/solution/CONTEST_README_EN.md)
@@ -156,6 +158,8 @@ This work is licensed under a <a rel="license" href="http://creativecommons.org/
156158

157159
<!-- 这里是contest_readme_template_en开始位置 -->
158160

161+
{}
162+
159163
# LeetCode Contest
160164

161165
[中文文档](/solution/CONTEST_README.md)

‎solution/util.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -473,9 +473,10 @@ def generate_contest_readme(result: List):
473473
result.sort(key=lambda x: -x[0])
474474
content_cn = "\n\n".join(c[1] for c in result)
475475
content_en = "\n\n".join(c[2] for c in result)
476-
content_cn = contest_readme_cn.format(content_cn)
476+
metadata_section = "---\ncomments: true\n---"
477+
content_cn = contest_readme_cn.format(metadata_section, content_cn)
477478
with open("./CONTEST_README.md", "w", encoding="utf-8") as f:
478479
f.write(content_cn)
479-
content_en = contest_readme_en.format(content_en)
480+
content_en = contest_readme_en.format(metadata_section, content_en)
480481
with open("./CONTEST_README_EN.md", "w", encoding="utf-8") as f:
481482
f.write(content_en)

0 commit comments

Comments
 (0)
Please sign in to comment.