-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Merge pull request #114 from attakei/issue/104
Remove func for generating needless pages Refs: #104
- Loading branch information
Showing
10 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,8 @@ | |
extensions = [ | ||
"sphinx_revealjs", | ||
] | ||
|
||
# To skip toctree | ||
rst_prolog = """ | ||
:orphan: | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,8 @@ | |
extensions = [ | ||
"sphinx_revealjs", | ||
] | ||
|
||
# To skip toctree | ||
rst_prolog = """ | ||
:orphan: | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,8 @@ | |
extensions = [ | ||
"sphinx_revealjs", | ||
] | ||
|
||
# To skip toctree | ||
rst_prolog = """ | ||
:orphan: | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"""Test cases for generating giles.""" | ||
import pytest | ||
from sphinx.testing.util import SphinxTestApp | ||
|
||
|
||
@pytest.mark.sphinx( | ||
"revealjs", testroot="default", confoverrides={"revealjs_use_index": True} | ||
) | ||
def test_generating_genindex(app: SphinxTestApp, status, warning): # noqa | ||
app.build() | ||
assert (app.outdir / "genindex.html").exists() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Test cases for generating giles.""" | ||
import pytest | ||
from sphinx.testing.util import SphinxTestApp | ||
|
||
|
||
@pytest.mark.sphinx("revealjs", testroot="default") | ||
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() |