File tree Expand file tree Collapse file tree 8 files changed +11
-18
lines changed Expand file tree Collapse file tree 8 files changed +11
-18
lines changed Original file line number Diff line number Diff line change 22
22
23
23
extensions = [
24
24
"sphinx.ext.autodoc" ,
25
- "autoapi.extension" ,
26
25
"sphinx.ext.intersphinx" ,
27
26
"sphinx_autodoc_typehints" ,
28
27
"sphinx.ext.todo" ,
29
28
"sphinx.ext.linkcode" ,
30
29
"sphinx.ext.napoleon" ,
31
- "sphinx_autoissues" ,
32
30
"sphinx_click.ext" , # sphinx-click
33
31
"sphinx_inline_tabs" ,
34
32
"sphinx_copybutton" ,
35
33
"sphinxext.opengraph" ,
36
34
"sphinxext.rediraffe" ,
37
35
"myst_parser" ,
36
+ "linkify_issues" ,
37
+ "sphinx_toctree_autodoc_fix" ,
38
38
]
39
39
40
40
myst_enable_extensions = [
94
94
]
95
95
}
96
96
97
- # sphinx-autoissues
98
- issuetracker = "github"
99
- issuetracker_project = about ["__github__" ].replace ("https://github.com/" , "" )
97
+ # linkify_issues
98
+ issue_url_tpl = f'{ about ["__github__" ]} /issues/{{issue_id}}'
100
99
101
100
# sphinx.ext.autodoc
102
101
autoclass_content = "both"
103
102
autodoc_member_order = "bysource"
104
103
autosummary_generate = True
105
104
106
- # sphinx-autoapi
107
- autoapi_type = "python"
108
- autoapi_dirs = [project_root / "libtmux" ]
109
- autoapi_generate_api_docs = False # when fales, use directives
110
- suppress_warnings = ["autoapi.python_import_resolution" , "autoapi.not_readable" ]
111
-
112
105
# sphinx-copybutton
113
106
copybutton_prompt_text = (
114
107
r">>> |\.\.\. |> |\$ |\# | In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
Original file line number Diff line number Diff line change 1
1
# Test helpers
2
2
3
3
``` {eval-rst}
4
- .. autoapimodule :: libtmux.test
4
+ .. automodule :: libtmux.test
5
5
:members:
6
6
```
Original file line number Diff line number Diff line change 1
1
# Utilities
2
2
3
3
``` {eval-rst}
4
- .. autoapimodule :: libtmux.common
4
+ .. automodule :: libtmux.common
5
5
:members:
6
6
```
Original file line number Diff line number Diff line change 1
1
# Exceptions
2
2
3
3
``` {eval-rst}
4
- .. autoapimodule :: libtmux.exc
4
+ .. automodule :: libtmux.exc
5
5
:members:
6
6
```
Original file line number Diff line number Diff line change 10
10
[ pty(4) ] : https://www.freebsd.org/cgi/man.cgi?query=pty&sektion=4
11
11
12
12
``` {eval-rst}
13
- .. autoapiclass :: libtmux.Pane
13
+ .. autoclass :: libtmux.Pane
14
14
:members:
15
15
:inherited-members:
16
16
:private-members:
Original file line number Diff line number Diff line change 10
10
tmux initializes a server on automatically on first running (e.g. executing ` tmux ` )
11
11
12
12
``` {eval-rst}
13
- .. autoapiclass :: libtmux.Server
13
+ .. autoclass :: libtmux.Server
14
14
:members:
15
15
:inherited-members:
16
16
:private-members:
Original file line number Diff line number Diff line change 7
7
- Identified by ` $ ` , e.g. ` $313 `
8
8
9
9
``` {eval-rst}
10
- .. autoapiclass :: libtmux.Session
10
+ .. autoclass :: libtmux.Session
11
11
:members:
12
12
:inherited-members:
13
13
:private-members:
Original file line number Diff line number Diff line change 11
11
```
12
12
13
13
``` {eval-rst}
14
- .. autoapiclass :: Window
14
+ .. autoclass :: Window
15
15
:members:
16
16
:inherited-members:
17
17
:private-members:
You can’t perform that action at this time.
0 commit comments