Skip to content

Commit 91798f4

Browse files
authored
Fix docs jobs (#1884)
1 parent 39d89ef commit 91798f4

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

constraints.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ decorator==5.1.1
3535
# via ipython
3636
defusedxml==0.7.1
3737
# via jira (setup.cfg)
38-
docutils==0.20.1
38+
docutils==0.21.2
3939
# via
4040
# jira (setup.cfg)
4141
# sphinx

docs/api.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ jira.resources module
7676
:undoc-members:
7777
:show-inheritance:
7878

79+
.. autoclass:: jira.resources.Field
80+
:members:
81+
:undoc-members:
82+
:show-inheritance:
7983

8084
jira.utils module
8185
-----------------

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@
9898

9999
# The language for content autogenerated by Sphinx. Refer to documentation
100100
# for a list of supported languages.
101-
# language = None
101+
language = "en"
102+
locale_dirs: list[str] = []
102103

103104
# There are two options for replacing |today|: either, you set today to some
104105
# non-false value, then it is used:

jira/client.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2811,14 +2811,8 @@ def add_worklog(
28112811
started (Optional[datetime.datetime]): Moment when the work is logged, if not specified will default to now
28122812
user (Optional[str]): the user ID or name to use for this worklog
28132813
visibility (Optional[Dict[str,Any]]): Details about any restrictions in the visibility of the worklog.
2814-
Optional when creating or updating a worklog. ::
2815-
```js
2816-
{
2817-
"type": "group", # "group" or "role"
2818-
"value": "<string>",
2819-
"identifier": "<string>" # OPTIONAL
2820-
}
2821-
```
2814+
Example of visibility options when creating or updating a worklog.
2815+
``{ "type": "group", "value": "<string>", "identifier": "<string>"}``
28222816
28232817
Returns:
28242818
Worklog

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ opt = [
6969
]
7070
async = ["requests-futures>=0.9.7"]
7171
test = [
72-
"docutils>=0.12",
72+
"docutils>=0.21.2",
7373
"flaky",
7474
"MarkupSafe>=0.23",
7575
"oauthlib",

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ setenv =
9292
PYTHONHTTPSVERIFY=0
9393
commands =
9494
sphinx-build \
95-
-a -n -v -W --keep-going \
95+
--verbose \
96+
--write-all \
97+
--nitpicky --fail-on-warning \
9698
-b html --color \
9799
-d "{toxworkdir}/docs_doctree" \
98100
docs/ "{toxworkdir}/docs_out"

0 commit comments

Comments
 (0)