Skip to content

Commit

Permalink
Fix sphinx doc
Browse files Browse the repository at this point in the history
WARNING: The config value `html_logo' has type `dict'; expected `str'.
/builddir/build/BUILD/xrootd-5.4.2/bindings/python/docs/source/modules/client/file.rst:5: WARNING: duplicate object description of XRootD.client, other instance in modules/client/copyprocess, use :noindex: for one of them
/builddir/build/BUILD/xrootd-5.4.2/bindings/python/docs/source/modules/client/filesystem.rst:8: WARNING: duplicate object description of XRootD.client, other instance in modules/client/file, use :noindex: for one of them
/builddir/build/BUILD/xrootd-5.4.2/bindings/python/docs/source/modules/client/url.rst:8: WARNING: duplicate object description of XRootD.client, other instance in modules/client/filesystem, use :noindex: for one of them
/builddir/build/BUILD/xrootd-5.4.2/bindings/python/docs/source/index.rst:16: WARNING: examples is already assigned section numbers (nested numbered toctree?)
/builddir/build/BUILD/xrootd-5.4.2/redhat-linux-build/bindings/python/build/lib.linux-x86_64-3.10/XRootD/client/file.py:docstring of XRootD.client.file.File.close:6: WARNING: unknown keyword: with
/builddir/build/BUILD/xrootd-5.4.2/redhat-linux-build/bindings/python/build/lib.linux-x86_64-3.10/XRootD/client/file.py:docstring of XRootD.client.file.File.close:6: WARNING: unknown keyword: with
  • Loading branch information
ellert committed Apr 23, 2022
1 parent 1f765a4 commit 790360f
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 0 additions & 2 deletions bindings/python/docs/source/.templates/layout.html
@@ -1,4 +1,2 @@
{% extends "!layout.html" %}
{% set css_files = css_files + ['_static/css/custom.css']%}
{% set logo = 'img/xrootd-200x68.png'%}
{% set favicon = 'img/favicon.ico?v=2'%}
4 changes: 2 additions & 2 deletions bindings/python/docs/source/conf.py
Expand Up @@ -111,12 +111,12 @@

# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
html_logo = {}
html_logo = 'xrootd-200x68.png'

# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
#html_favicon = None
html_favicon = 'favicon.ico'

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down
3 changes: 1 addition & 2 deletions bindings/python/docs/source/examples.rst
Expand Up @@ -3,9 +3,8 @@
============

.. toctree::
:numbered:
:maxdepth: 2

examples/filesystem
examples/file
examples/copyprocess
examples/copyprocess
File renamed without changes.
2 changes: 1 addition & 1 deletion bindings/python/docs/source/install.rst
Expand Up @@ -3,4 +3,4 @@
===========================

.. include:: ../../README.rst
:start-line: 8
:start-line: 8
3 changes: 2 additions & 1 deletion bindings/python/docs/source/modules/client/copyprocess.rst
Expand Up @@ -6,6 +6,7 @@ Class Reference
---------------

.. module:: XRootD.client
:noindex:

.. autoclass:: XRootD.client.CopyProcess

Expand All @@ -14,4 +15,4 @@ Methods

.. automethod:: XRootD.client.CopyProcess.add_job
.. automethod:: XRootD.client.CopyProcess.prepare
.. automethod:: XRootD.client.CopyProcess.run
.. automethod:: XRootD.client.CopyProcess.run
1 change: 1 addition & 0 deletions bindings/python/docs/source/modules/client/file.rst
Expand Up @@ -3,6 +3,7 @@
================================================

.. module:: XRootD.client
:noindex:

.. autoclass:: XRootD.client.File

Expand Down
2 changes: 1 addition & 1 deletion bindings/python/docs/source/modules/client/responses.rst
Expand Up @@ -18,4 +18,4 @@ requests to an `XRootD` server.
.. autoclass:: XRootD.client.responses.Location()
.. autoclass:: XRootD.client.responses.HostList()
.. autoclass:: XRootD.client.responses.HostInfo()
.. autoclass:: XRootD.client.responses.ProtocolInfo()
.. autoclass:: XRootD.client.responses.ProtocolInfo()
3 changes: 2 additions & 1 deletion bindings/python/docs/source/modules/client/url.rst
Expand Up @@ -6,11 +6,12 @@ Class Reference
---------------

.. module:: XRootD.client
:noindex:

.. autoclass:: XRootD.client.URL()

Methods
*******

.. automethod:: XRootD.client.URL.is_valid
.. automethod:: XRootD.client.URL.clear
.. automethod:: XRootD.client.URL.clear
2 changes: 1 addition & 1 deletion bindings/python/docs/source/modules/client/utils.rst
Expand Up @@ -8,4 +8,4 @@
:members:

.. autoclass:: XRootD.client.utils.CopyProgressHandler
:members:
:members:
4 changes: 2 additions & 2 deletions bindings/python/libs/client/file.py
Expand Up @@ -76,8 +76,8 @@ def close(self, timeout=0, callback=None):
object and None
As of Python 2.5, you can avoid having to call this method explicitly if you
use the :keyword:`with` statement. For example, the following code will
automatically close *f* when the :keyword:`with` block is exited::
use the `with` statement. For example, the following code will
automatically close *f* when the `with` block is exited::
from __future__ import with_statement # This isn't required in Python 2.6
Expand Down

0 comments on commit 790360f

Please sign in to comment.