Skip to content

Commit 2051d25

Browse files
committed
Improve docs layout
1 parent a95a824 commit 2051d25

File tree

9 files changed

+41
-10
lines changed

9 files changed

+41
-10
lines changed

.bumpversion.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ search = version = "{current_version}"
1818
replace = version = "{new_version}"
1919

2020
[bumpversion:file:.github/workflows/conda_ci.yml]
21+
22+
[bumpversion:file:flake8_sphinx_links/__init__.py]
23+
search = : str = "{current_version}"
24+
replace = : str = "{new_version}"

doc-source/_static/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ div.highlight {
88
.field-list dt, dl.simple dt {
99
margin-top: 0.5rem;
1010
}
11+
12+
div.versionchanged ul, div.versionremoved ul {
13+
margin-left: 20px;
14+
margin-top: 0;
15+
}

doc-source/api.rst

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,18 @@
22
API Reference
33
================
44

5+
In addition to the Flake8 plugin, the following public API is available
6+
to allow other plugins to build on top of ``flake8-strftime``.
7+
8+
.. autosummary-widths:: 25/100
9+
510
.. automodule:: flake8_strftime
6-
:undoc-members:
11+
:no-docstring:
12+
:no-members:
13+
:autosummary-members:
14+
15+
.. autoclass:: flake8_strftime.Plugin
16+
:no-members:
17+
18+
.. autoclass:: flake8_strftime.Visitor
19+
:no-members:

doc-source/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,7 @@ def setup(app):
7575
from sphinx_toolbox.latex import better_header_layout
7676

7777
app.connect("config-inited", lambda app, config: better_header_layout(config))
78+
79+
80+
nitpicky = True
81+
autosummary_widths_builders = ["latex"]

doc-source/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,13 @@ Installation
136136

137137
.. end installation
138138
139+
139140
Contents
140141
---------
141142

142143
.. html-section::
143144

145+
144146
.. toctree::
145147
:hidden:
146148

@@ -152,6 +154,7 @@ Contents
152154
usage
153155
api
154156
Source
157+
license
155158

156159
.. sidebar-links::
157160
:caption: Links

doc-source/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
git+https://github.com/sphinx-toolbox/html-section
1+
git+https://github.com/sphinx-toolbox/sphinx-toolbox-experimental
22
default-values>=0.5.0
33
extras-require>=0.2.0
44
furo>=2020.11.19b18

flake8_strftime/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@
5858
class Visitor(flake8_helper.Visitor):
5959
"""
6060
AST node visitor for identifying platform specific strftime codes.
61-
62-
.. autoclasssumm::
63-
:autosummary-sections: ;;
6461
""" # noqa: RST303
6562

6663
def __init__(self) -> None:

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ extensions = [
7171
"seed_intersphinx_mapping",
7272
"sphinx_toolbox.pre_commit",
7373
"sphinx_toolbox.flake8",
74-
"html_section",
75-
"autosummary_widths",
74+
"sphinx_toolbox_experimental.html_section",
75+
"sphinx_toolbox_experimental.autosummary_widths",
76+
"sphinx_toolbox_experimental.needspace",
7677
]
7778
sphinxemoji_style = "twemoji"
7879
gitstamp_fmt = "%d %b %Y"

repo_helper.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ short_desc: "A flake8 plugin which checks for use of platform specific strftime
1515
use_whey: true
1616
min_coverage: 100
1717
sphinx_html_theme: furo
18-
standalone_contrib_guide: true
1918
preserve_custom_theme: true
2019

2120
conda_channels:
@@ -40,13 +39,18 @@ classifiers:
4039
extra_sphinx_extensions:
4140
- sphinx_toolbox.pre_commit
4241
- sphinx_toolbox.flake8
43-
- html_section
44-
- autosummary_widths
42+
- sphinx_toolbox_experimental.html_section
43+
- sphinx_toolbox_experimental.autosummary_widths
44+
- sphinx_toolbox_experimental.needspace
4545

4646
entry_points:
4747
flake8.extension:
4848
- STRFTIME=flake8_strftime:Plugin
4949

50+
sphinx_conf_epilogue:
51+
- nitpicky = True
52+
- autosummary_widths_builders = ["latex"]
53+
5054
tox_unmanaged:
5155
- testenv:lint
5256

0 commit comments

Comments
 (0)