Skip to content

Commit d3ef653

Browse files
authored
docs: Move to gp-libs (our internal helpers for sphinx, #812)
- Render changelog in [`linkify_issues`] - Fix Table of contents rendering with sphinx autodoc with [`sphinx_toctree_autodoc_fix`] - Deprecate `sphinx-autoapi`, per above fixing the table of contents issue This also removes the need to workaround autoapi bugs. - Test doctests in our docs via [`pytest_doctest_docutils`] (built on [`doctest_docutils`]) [`linkify_issues`]: https://gp-libs.git-pull.com/linkify_issues/ [`sphinx_toctree_autodoc_fix`]: https://gp-libs.git-pull.com/sphinx_toctree_autodoc_fix/ [`pytest_doctest_docutils`]: https://gp-libs.git-pull.com/doctest/pytest.html [`doctest_docutils`]: https://gp-libs.git-pull.com/doctest
2 parents 7c08c17 + a4de2d4 commit d3ef653

File tree

6 files changed

+48
-58
lines changed

6 files changed

+48
-58
lines changed

CHANGES

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ $ pipx install --suffix=@next 'tmuxp' --pip-args '\--pre' --force
1919

2020
- _Insert changes/features/fixes for next release here_
2121

22+
### Documentation
23+
24+
- Render changelog in [`linkify_issues`] (#812)
25+
- Fix Table of contents rendering with sphinx autodoc with [`sphinx_toctree_autodoc_fix`] (#812)
26+
- Test doctests in our docs via [`pytest_doctest_docutils`] (built on [`doctest_docutils`]) (#812)
27+
28+
[`linkify_issues`]: https://gp-libs.git-pull.com/linkify_issues/
29+
[`sphinx_toctree_autodoc_fix`]: https://gp-libs.git-pull.com/sphinx_toctree_autodoc_fix/
30+
[`pytest_doctest_docutils`]: https://gp-libs.git-pull.com/doctest/pytest.html
31+
[`doctest_docutils`]: https://gp-libs.git-pull.com/doctest
32+
2233
## tmuxp 1.13.3 (2022-09-10)
2334

2435
- Revert v1.13.1's #793 change for now, the behavior behind launching workspace

docs/cli/convert.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(convert-config)=
1+
(cli-convert)=
22

33
# tmuxp convert
44

docs/cli/load.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ You can load your tmuxp file and attach the vim session via a few
88
shorthands:
99

1010
1. The directory with a `.tmuxp.{yaml,yml,json}` file in it
11-
2. The name of the project file in your {}`$HOME/.tmuxp` folder
11+
2. The name of the project file in your `$HOME/.tmuxp` folder
1212
3. The direct path of the tmuxp file you want to load
1313

1414
Path to folder with `.tmuxp.yaml`, `.tmuxp.yml`, `.tmuxp.json`:

docs/conf.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,22 @@
2727
"sphinx.ext.napoleon",
2828
"sphinx.ext.linkcode",
2929
"aafig",
30-
"sphinx_autoissues",
3130
"sphinx_click.ext", # sphinx-click
3231
"sphinx_inline_tabs",
3332
"sphinx_copybutton",
3433
"sphinxext.opengraph",
3534
"sphinxext.rediraffe",
3635
"myst_parser",
36+
"sphinx_toctree_autodoc_fix",
37+
"linkify_issues",
3738
]
3839

39-
myst_enable_extensions = ["colon_fence", "substitution", "replacements"]
40+
myst_enable_extensions = [
41+
"colon_fence",
42+
"substitution",
43+
"replacements",
44+
"strikethrough",
45+
]
4046

4147
templates_path = ["_templates"]
4248

@@ -88,9 +94,8 @@
8894
]
8995
}
9096

91-
# sphinx-autoissues
92-
issuetracker = "github"
93-
issuetracker_project = about["__github__"].replace("https://github.com/", "")
97+
# linkify_issues
98+
issue_url_tpl = "https://github.com/tmux-python/tmuxp/issues/{issue_id}"
9499

95100
# sphinxext.opengraph
96101
ogp_site_url = about["__docs__"]

poetry.lock

Lines changed: 23 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ sphinx = "*"
5757
aafigure = ">=0.6"
5858
pillow = "*"
5959
furo = "*"
60+
gp-libs = "0.0.1a10"
6061
sphinx-autobuild = "*"
6162
sphinx-autodoc-typehints = "*"
6263
sphinx-click = "*"
6364
sphinx-inline-tabs = "*"
6465
sphinxext-opengraph = "*"
6566
sphinx-copybutton = "*"
6667
sphinxext-rediraffe = "*"
67-
sphinx-autoissues = "*"
6868
myst_parser = "*"
6969
docutils = "~0.18.0"
7070

@@ -102,9 +102,9 @@ docs = [
102102
"sphinxext-opengraph",
103103
"sphinx-inline-tabs",
104104
"sphinxext-rediraffe",
105-
"sphinx-autoissues",
106105
"myst_parser",
107106
"furo",
107+
"gp-libs",
108108
"aafigure",
109109
"pillow",
110110
]

0 commit comments

Comments
 (0)