Skip to content

Commit 68aebb0

Browse files
committed
Clean up docs
1 parent 8ac8a66 commit 68aebb0

File tree

7 files changed

+467
-12
lines changed

7 files changed

+467
-12
lines changed

.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ exclude_lines =
77
raise NotImplementedError()
88
partial_branches =
99
pragma: no branch
10+
if TYPE_CHECKING:

docs/_static/.gitkeep

Whitespace-only changes.

docs/api/mwparserfromhell.smart_list.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ smart_list Package
99
:undoc-members:
1010

1111
:mod:`list_proxy` Module
12-
---------------------
12+
------------------------
1313

1414
.. automodule:: mwparserfromhell.smart_list.list_proxy
1515
:members:
1616
:undoc-members:
1717

1818
:mod:`smart_list` Module
19-
---------------------
19+
------------------------
2020

2121
.. automodule:: mwparserfromhell.smart_list.smart_list
2222
:members:
2323
:undoc-members:
2424

2525
:mod:`utils` Module
26-
---------------------
26+
-------------------
2727

2828
.. automodule:: mwparserfromhell.smart_list.utils
2929
:members:

docs/conf.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
# General information about the project.
4343
project = "mwparserfromhell"
44-
copyright = "2012–2021 Ben Kurtovic"
44+
copyright = "2012–2025 Ben Kurtovic"
4545

4646
# The version info for the project you're documenting, acts as replacement for
4747
# |version| and |release|, also used in various other places throughout the
@@ -91,12 +91,21 @@
9191

9292
# The theme to use for HTML and HTML Help pages. See the documentation for
9393
# a list of builtin themes.
94-
html_theme = "nature"
94+
html_theme = "alabaster"
9595

9696
# Theme options are theme-specific and customize the look and feel of a theme
9797
# further. For a list of options available for each theme, see the
9898
# documentation.
99-
# html_theme_options = {}
99+
html_theme_options = {
100+
"github_user": "earwig",
101+
"github_repo": "mwparserfromhell",
102+
"github_type": "star",
103+
"description": "A parser for MediaWiki wikicode",
104+
"show_relbars": True,
105+
"page_width": "1200px",
106+
"sidebar_width": "320px",
107+
"fixed_sidebar": True,
108+
}
100109

101110
# Add any paths that contain custom themes here, relative to this directory.
102111
# html_theme_path = []

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ dev = [
3838
"psutil",
3939
"pytest",
4040
"pytest-cov",
41+
"sphinx",
4142
]
4243

4344
[build-system]

src/mwparserfromhell/nodes/template.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -364,11 +364,11 @@ def add(
364364

365365
def update(self, params: Mapping[Any, Any], **kwargs: Any) -> None:
366366
"""Update the template with multiple parameters at once.
367-
Args:
368-
params: A dictionary mapping parameter names to values.
369-
**kwargs: Optional arguments that will be applied to all parameters,
370-
matching the same arguments in :meth:`add` (showkey, before,
371-
after, preserve_spacing)
367+
368+
- *params*: A dictionary mapping parameter names to values.
369+
- *kwargs*: Optional arguments that will be applied to all parameters, matching
370+
the same arguments in :meth:`add` (*showkey*, *before*, *after*,
371+
*preserve_spacing*).
372372
"""
373373
for name, value in params.items():
374374
self.add(name, value, **kwargs)

uv.lock

Lines changed: 445 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)