Skip to content

Commit

Permalink
raise SkipProgressMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverRainZ committed Oct 18, 2024
1 parent 3db58e5 commit bc50b71
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/sphinxnotes/fasthtml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ def gen_pages_from_extensions(self) -> None:
def gen_additional_pages(self) -> None:
raise SkipProgressMessage

@progress_message(__('generating indices'))
def gen_indices(self) -> None:
"""We totally skipped index generation here, but we stil need to disable
:attr:`Builder.use_index` (see _on_builder_inited) and ``html_domain_indices``
(see _overwrite_config), to prevent the overhead of collecting index data.
"""
raise SkipProgressMessage

@progress_message(__('dumping object inventory'))
def dump_inventory(self) -> None:
raise SkipProgressMessage

def _overwrite_config(self) -> None:
"""
Expand Down

0 comments on commit bc50b71

Please sign in to comment.