Skip to content

Commit

Permalink
feat!: Disable searching propetry (page are not working)
Browse files Browse the repository at this point in the history
Include these
- implementation
- test cases
- document
- changelog

Refs: #104
  • Loading branch information
attakei committed May 23, 2022
1 parent 341a72d commit 2f046a3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGES-2.x.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ Added Features
--------------

* Directive ``revealjs-notes`` writes speaker-view content into presentation

* Config ``reveajs_notes_from_comments`` toggle if it creates speaker-view content from comment-block

* BREAKING CHANGE: Default value is False. You must set ``True`` explicitly to use as same as ver 1.x
* Config ``reveajs_use_index`` toggle if it creates ``genindex.html``

* BREAKING CHANGE: Default value is False. You must set ``True`` explicitly to use as same as ver 1.x


Deleted feaures
---------------

* Remove snake-cesed directives
* Does not generate ``search.html``
1 change: 1 addition & 0 deletions sphinx_revealjs/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class RevealjsHTMLBuilder(StandaloneHTMLBuilder):

name = "revealjs"
default_translator_class = RevealjsSlideTranslator
search = False

def __init__(self, app): # noqa: D107
super().__init__(app)
Expand Down
6 changes: 6 additions & 0 deletions tests/test_generatings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@
def test_not_generate_genindex(app: SphinxTestApp, status, warning): # noqa
app.build()
assert not (app.outdir / "genindex.html").exists()


@pytest.mark.sphinx("revealjs", testroot="default")
def test_not_generate_search(app: SphinxTestApp, status, warning): # noqa
app.build()
assert not (app.outdir / "search.html").exists()

0 comments on commit 2f046a3

Please sign in to comment.