Skip to content

Commit 09c6f5c

Browse files
committed
ext: SnippetBuiler should derived from DummyBuilder
1 parent 341afe6 commit 09c6f5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sphinxnotes/snippet/ext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from docutils import nodes
1818
from sphinx.locale import __
1919
from sphinx.util import logging
20-
from sphinx.builders import Builder
20+
from sphinx.builders.dummy import DummyBuilder
2121

2222
if TYPE_CHECKING:
2323
from sphinx.application import Sphinx
@@ -150,7 +150,7 @@ def on_builder_finished(app:Sphinx, exception) -> None:
150150
cache.dump()
151151

152152

153-
class SnippetBuilder(Builder):
153+
class SnippetBuilder(DummyBuilder): # DummyBuilder has dummy impls we need.
154154
name = 'snippet'
155155
epilog = __('The snippet builder produces snippets (not to OUTPUTDIR) for use by snippet CLI tool')
156156

0 commit comments

Comments
 (0)