Skip to content

Commit 2ec8cfe

Browse files
committed
feat: book toc add chapter_index.html
1 parent 9dcb7c2 commit 2ec8cfe

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

epub_browser/processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ def create_index_page(self):
802802
chapter_index = chapter_index_map.get(toc_item['src'])
803803

804804
if chapter_index is not None:
805-
index_html += f' <li class="{level_class}"><a href="/book/{self.book_hash}/chapter_{chapter_index}.html">{toc_item["title"]}</a></li>\n'
805+
index_html += f' <li class="{level_class}"><a href="/book/{self.book_hash}/chapter_{chapter_index}.html"><span class="chapter-title">{toc_item["title"]}</span><span class="chapter-page">chapter_{chapter_index}.html</span></a></li>\n'
806806
else:
807807
print(f"Chapter index not found: {toc_item['src']}")
808808
else:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name="epub-browser", # 在PyPI上显示的项目名称
9-
version="1.0.3", # 初始版本号
9+
version="1.0.5", # 初始版本号
1010
author="dfface", # 作者名
1111
author_email="dfface@sina.com", # 作者邮箱
1212
keywords="epub reader html export browser convert calibre-web calibre",

0 commit comments

Comments
 (0)