Skip to content

Commit b045611

Browse files
authored
Docs: Split API to multiple pages (#898)
Resolves #895
2 parents aa5bdfc + 6585f63 commit b045611

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+322
-211
lines changed

CHANGES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ $ pipx install --suffix=@next 'tmuxp' --pip-args '\--pre' --force
2727
- `config_reader`: Move to `tmuxp._internal` (#897)
2828
- `_types`: Move to `tmuxp._internal` (#900)
2929

30+
### Documentation
31+
32+
- Refactor API docs to split across multiple pages (#898)
33+
- Remove unused reStructuredText section headers from some modules (#898)
34+
3035
## tmuxp 1.33.0 (2023-12-21)
3136

3237
_Maintenance only, no bug fixes or new features_

docs/_ext/aafig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""aafig plugin for sphinx.
22
3-
sphinxcontrib.aafig.
3+
sphinxcontrib.aafig
44
~~~~~~~~~~~~~~~~~~~
55
66
Allow embedded ASCII art to be rendered as nice looking images

docs/api.md

Lines changed: 0 additions & 149 deletions
This file was deleted.

docs/api/cli/convert.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# tmuxp convert - `tmuxp.cli.convert`
2+
3+
```{eval-rst}
4+
.. automodule:: tmuxp.cli.convert
5+
:members:
6+
:show-inheritance:
7+
:undoc-members:
8+
```

docs/api/cli/debug_info.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# tmuxp debug-info - `tmuxp.cli.debug_info`
2+
3+
```{eval-rst}
4+
.. automodule:: tmuxp.cli.debug_info
5+
:members:
6+
:show-inheritance:
7+
:undoc-members:
8+
```

docs/api/cli/edit.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# tmuxp edit - `tmuxp.cli.edit`
2+
3+
```{eval-rst}
4+
.. automodule:: tmuxp.cli.edit
5+
:members:
6+
:show-inheritance:
7+
:undoc-members:
8+
```

docs/api/cli/freeze.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# tmuxp freeze - `tmuxp.cli.freeze`
2+
3+
```{eval-rst}
4+
.. automodule:: tmuxp.cli.freeze
5+
:members:
6+
:show-inheritance:
7+
:undoc-members:
8+
```

docs/api/cli/import_config.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# tmuxp import - `tmuxp.cli.import_config`
2+
3+
```{eval-rst}
4+
.. automodule:: tmuxp.cli.import_config
5+
:members:
6+
:show-inheritance:
7+
:undoc-members:
8+
```

docs/api/cli/index.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
(api_cli)=
2+
3+
# CLI
4+
5+
:::{warning}
6+
Be careful with these! Internal APIs are **not** covered by version policies. They can break or be removed between minor versions!
7+
8+
If you need an internal API stabilized please [file an issue](https://github.com/tmux-python/tmuxp/issues).
9+
:::
10+
11+
```{toctree}
12+
convert
13+
debug_info
14+
edit
15+
freeze
16+
import_config
17+
load
18+
ls
19+
shell
20+
utils
21+
```
22+
23+
## `tmuxp.cli`
24+
25+
```{eval-rst}
26+
.. automodule:: tmuxp.cli
27+
:members:
28+
:show-inheritance:
29+
:undoc-members:
30+
```

docs/api/cli/load.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# tmuxp load - `tmuxp.cli.load`
2+
3+
```{eval-rst}
4+
.. automodule:: tmuxp.cli.load
5+
:members:
6+
:show-inheritance:
7+
:undoc-members:
8+
```

0 commit comments

Comments
 (0)