Skip to content

Commit 887f4a6

Browse files
committed
refactor!(toc): Rename to sphinx_toctree_autodoc_fix
1 parent 9431fd5 commit 887f4a6

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,16 @@ See more: <https://gp-libs.git-pull.com/linkify_issues/>
125125
`sphinx.ext.autodoc` doesn't link objects in the table of contents. So we need a
126126
plugin to help.
127127

128-
See more: <https://gp-libs.git-pull.com/sphinx_toctree_signature/>
128+
See more: <https://gp-libs.git-pull.com/sphinx_toctree_autodoc_fix/>
129129

130130
#### Configuration
131131

132-
1. Add `'sphinx_toctree_signature'` to `extensions`
132+
1. Add `'sphinx_toctree_autodoc_fix'` to `extensions`
133133

134134
```python
135135
extensions = [
136136
# ...
137-
"sphinx_toctree_signature",
137+
"sphinx_toctree_autodoc_fix",
138138
]
139139
```
140140

docs/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
from os.path import dirname, relpath
77
from pathlib import Path
88

9+
import sphinx_toctree_autodoc_fix
10+
911
import gp_libs
1012
import linkify_issues
11-
import sphinx_toctree_signature
1213

1314
# Get the project root dir, which is the parent dir of this
1415
cwd = Path(__file__).parent
@@ -35,7 +36,7 @@
3536
"sphinxext.rediraffe",
3637
"myst_parser",
3738
"linkify_issues",
38-
"sphinx_toctree_signature",
39+
"sphinx_toctree_autodoc_fix",
3940
]
4041
myst_enable_extensions = ["colon_fence", "substitution", "replacements"]
4142

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
quickstart
1111
doctest/index
12-
sphinx_toctree_signature/index
12+
sphinx_toctree_autodoc_fix/index
1313
linkify_issues/index
1414
```
1515

docs/sphinx_toctree_signature/index.md renamed to docs/sphinx_toctree_autodoc_fix/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(sphinx_toctree_signature)=
1+
(sphinx_toctree_autodoc_fix)=
22
(sphinx-toctree-signature)=
33

44
# ToC + `sphinx.ext.autodoc` fixer
@@ -12,19 +12,19 @@ Table of Contents won't generate for `sphinx.ext.autodoc`, see
1212

1313
In your _conf.py_:
1414

15-
1. Add `'sphinx_toctree_signature'` to `extensions`
15+
1. Add `'sphinx_toctree_autodoc_fix'` to `extensions`
1616

1717
```python
1818
extensions = [
1919
# ...
20-
"sphinx_toctree_signature",
20+
"sphinx_toctree_autodoc_fix",
2121
]
2222
```
2323

2424
## API
2525

2626
```{eval-rst}
27-
.. automodule:: sphinx_toctree_signature
27+
.. automodule:: sphinx_toctree_autodoc_fix
2828
:members:
2929
:show-inheritance:
3030
:undoc-members:
File renamed without changes.

tests/test_sphinx_toctree_signature.py renamed to tests/test_sphinx_toctree_autodoc_fix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ def test_toc_shows_api_docs(
5151
test_id: str,
5252
text: str,
5353
) -> None:
54-
"""Assert sphinx_toctree_signature collects entries from autodoc.
54+
"""Assert sphinx_toctree_autodoc_fix collects entries from autodoc.
5555
5656
Normal sphinx ToC does not collect them< see sphinx-doc#6316
5757
"""
5858
args, kwargs = make_app_params(
5959
index=text,
6060
confoverrides={
61-
"extensions": ["sphinx_toctree_signature", "sphinx.ext.autodoc"],
61+
"extensions": ["sphinx_toctree_autodoc_fix", "sphinx.ext.autodoc"],
6262
"html_theme": "basic",
6363
},
6464
)

0 commit comments

Comments
 (0)