sphinx-argparse-cli 1.21.1__tar.gz → 1.21.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sphinx_argparse_cli-1.21.1 → sphinx_argparse_cli-1.21.2}/PKG-INFO +1 -1
- {sphinx_argparse_cli-1.21.1 → sphinx_argparse_cli-1.21.2}/src/sphinx_argparse_cli/_logic.py +2 -1
- {sphinx_argparse_cli-1.21.1 → sphinx_argparse_cli-1.21.2}/src/sphinx_argparse_cli/version.py +2 -2
- {sphinx_argparse_cli-1.21.1 → sphinx_argparse_cli-1.21.2}/tests/test_logic.py +7 -3
- {sphinx_argparse_cli-1.21.1 → sphinx_argparse_cli-1.21.2}/.gitignore +0 -0
- {sphinx_argparse_cli-1.21.1 → sphinx_argparse_cli-1.21.2}/LICENSE.txt +0 -0
- {sphinx_argparse_cli-1.21.1 → sphinx_argparse_cli-1.21.2}/README.md +0 -0
- {sphinx_argparse_cli-1.21.1 → sphinx_argparse_cli-1.21.2}/pyproject.toml +0 -0
- {sphinx_argparse_cli-1.21.1 → sphinx_argparse_cli-1.21.2}/src/sphinx_argparse_cli/__init__.py +0 -0
- {sphinx_argparse_cli-1.21.1 → sphinx_argparse_cli-1.21.2}/src/sphinx_argparse_cli/py.typed +0 -0
- {sphinx_argparse_cli-1.21.1 → sphinx_argparse_cli-1.21.2}/tests/complex.txt +0 -0
- {sphinx_argparse_cli-1.21.1 → sphinx_argparse_cli-1.21.2}/tests/complex_pre_310.txt +0 -0
- {sphinx_argparse_cli-1.21.1 → sphinx_argparse_cli-1.21.2}/tests/conftest.py +0 -0
- {sphinx_argparse_cli-1.21.1 → sphinx_argparse_cli-1.21.2}/tests/test_sphinx_argparse_cli.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sphinx-argparse-cli
|
|
3
|
-
Version: 1.21.
|
|
3
|
+
Version: 1.21.2
|
|
4
4
|
Summary: render CLI arguments (sub-commands friendly) defined by argparse module
|
|
5
5
|
Project-URL: Documentation, https://github.com/tox-dev/sphinx-argparse-cli#sphinx-argparse-cli
|
|
6
6
|
Project-URL: Homepage, https://github.com/tox-dev/sphinx-argparse-cli
|
|
@@ -25,6 +25,7 @@ from docutils.nodes import (
|
|
|
25
25
|
Node,
|
|
26
26
|
Text,
|
|
27
27
|
bullet_list,
|
|
28
|
+
container,
|
|
28
29
|
fully_normalize_name,
|
|
29
30
|
list_item,
|
|
30
31
|
literal,
|
|
@@ -187,7 +188,7 @@ class SphinxArgparseCli(SphinxDirective):
|
|
|
187
188
|
self.env.note_reread() # this document needs to be always updated
|
|
188
189
|
title_text = self.options.get("title", f"{self.parser.prog} - CLI interface").strip()
|
|
189
190
|
if not title_text:
|
|
190
|
-
home_section: Element =
|
|
191
|
+
home_section: Element = container("")
|
|
191
192
|
else:
|
|
192
193
|
home_section = section("", title("", Text(title_text)), ids=[self.make_id(title_text)], names=[title_text])
|
|
193
194
|
|
{sphinx_argparse_cli-1.21.1 → sphinx_argparse_cli-1.21.2}/src/sphinx_argparse_cli/version.py
RENAMED
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '1.21.
|
|
32
|
-
__version_tuple__ = version_tuple = (1, 21,
|
|
31
|
+
__version__ = version = '1.21.2'
|
|
32
|
+
__version_tuple__ = version_tuple = (1, 21, 2)
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
|
@@ -407,6 +407,10 @@ def test_multiword_prog(build_outcome: str) -> None:
|
|
|
407
407
|
|
|
408
408
|
|
|
409
409
|
@pytest.mark.sphinx(buildername="html", testroot="title-empty-groups")
|
|
410
|
-
def test_empty_title_groups_in_toctree(
|
|
411
|
-
|
|
412
|
-
|
|
410
|
+
def test_empty_title_groups_in_toctree(app: SphinxTestApp, monkeypatch: pytest.MonkeyPatch) -> None:
|
|
411
|
+
monkeypatch.setenv("FORCE_COLOR", "1")
|
|
412
|
+
monkeypatch.delenv("NO_COLOR", raising=False)
|
|
413
|
+
app.build()
|
|
414
|
+
cli_html = (Path(app.outdir) / "cli.html").read_text()
|
|
415
|
+
assert '<section id="tool-options">' in cli_html
|
|
416
|
+
assert "be verbose" in cli_html
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sphinx_argparse_cli-1.21.1 → sphinx_argparse_cli-1.21.2}/src/sphinx_argparse_cli/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|