From bbaa4299f079a39e5173bdd43c33159adbf14467 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sun, 26 Mar 2023 21:07:16 +0800 Subject: [PATCH] fix: `chapter` subpath in gitbook --- src/release/utils/sequence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/release/utils/sequence.py b/src/release/utils/sequence.py index 3139ebc..5f9821d 100644 --- a/src/release/utils/sequence.py +++ b/src/release/utils/sequence.py @@ -75,7 +75,7 @@ def gitbookChapterPath(caption: str) -> str: def gitbookSummary(chapters: dict) -> str: summary = '# XXRS\n\n' summary += '* [序言](README.md)\n\n' - summary += '## 内容 \n\n' + summary += '## 内容 \n\n' for caption in chapters: summary += '* [%s](%s)\n' % (caption, gitbookChapterPath(caption)) return summary