Skip to content

Commit

Permalink
Fix docs jobs (pycontribs#1884)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored and Wojtini committed Sep 2, 2024
1 parent 5802581 commit 7519b7f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ decorator==5.1.1
# via ipython
defusedxml==0.7.1
# via jira (setup.cfg)
docutils==0.20.1
docutils==0.21.2
# via
# jira (setup.cfg)
# sphinx
Expand Down
4 changes: 4 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ jira.resources module
:undoc-members:
:show-inheritance:

.. autoclass:: jira.resources.Field
:members:
:undoc-members:
:show-inheritance:

jira.utils module
-----------------
Expand Down
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
# language = None
language = "en"
locale_dirs: list[str] = []

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
Expand Down
10 changes: 2 additions & 8 deletions jira/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2814,14 +2814,8 @@ def add_worklog(
started (Optional[datetime.datetime]): Moment when the work is logged, if not specified will default to now
user (Optional[str]): the user ID or name to use for this worklog
visibility (Optional[Dict[str,Any]]): Details about any restrictions in the visibility of the worklog.
Optional when creating or updating a worklog. ::
```js
{
"type": "group", # "group" or "role"
"value": "<string>",
"identifier": "<string>" # OPTIONAL
}
```
Example of visibility options when creating or updating a worklog.
``{ "type": "group", "value": "<string>", "identifier": "<string>"}``
Returns:
Worklog
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ opt = [
]
async = ["requests-futures>=0.9.7"]
test = [
"docutils>=0.12",
"docutils>=0.21.2",
"flaky",
"MarkupSafe>=0.23",
"oauthlib",
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ setenv =
PYTHONHTTPSVERIFY=0
commands =
sphinx-build \
-a -n -v -W --keep-going \
--verbose \
--write-all \
--nitpicky --fail-on-warning \
-b html --color \
-d "{toxworkdir}/docs_doctree" \
docs/ "{toxworkdir}/docs_out"
Expand Down

0 comments on commit 7519b7f

Please sign in to comment.