Skip to content

Commit

Permalink
docs fixes: get working again
Browse files Browse the repository at this point in the history
* fix moving of rules_for_contributors to CONTRIBUTING.md
  made in 99cacc3 which broke the docs
* remove easy_install reference, deprecated
* fix invalid syntax errors
  • Loading branch information
clintonsteiner committed Jan 7, 2025
1 parent e295f73 commit 968a068
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
3 changes: 2 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@
"sphinx.ext.autodoc",
"sphinx.ext.doctest",
"sphinx.ext.viewcode",
"myst_parser",
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]

# The suffix of source filenames.
source_suffix = ".rst"
source_suffix = [".rst", ".md"]

# The encoding of source files.
# source_encoding = 'utf-8-sig'
Expand Down
5 changes: 5 additions & 0 deletions doc/source/contributing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Contributing
============

```{include} ../CONTRIBUTING.md
```
11 changes: 2 additions & 9 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ Sections
api
artifact
build
using_jenkinsapi
rules_for_contributors
contributing

Important Links
---------------
Expand Down Expand Up @@ -53,14 +52,8 @@ Most users can do the following:
pip install jenkinsapi
Or..

.. code-block:: bash
easy_install jenkinsapi
* In Jenkins > 1.518 you will need to disable "Prevent Cross Site Request Forgery exploits".
* Remember to set the Jenkins Location in general settings - Jenkins' REST web-interface will not work if this is set incorrectly.
* Remember to set the Jenkins Location in general settings - Jenkins REST web-interface will not work if this is set incorrectly.
Examples
--------
Expand Down
3 changes: 1 addition & 2 deletions jenkinsapi/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,7 @@ def get_estimated_duration(self) -> int | None:
def stop(self) -> bool:
"""
Stops the build execution if it's running
:return boolean True if succeded False otherwise or the build
is not running
:return: boolean True if succeeded False otherwis
"""
if self.is_running():
url: str = "%s/stop" % self.baseurl
Expand Down
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ astroid>=1.4.8
pylint>=1.7.1
tox>=2.3.1
mock
myst-parser
codecov
requests_kerberos
flake8

0 comments on commit 968a068

Please sign in to comment.