I am using sphinx for documentation. When I am using "make confluence", I am getting the below warnings from the index.rst file.
How can I remove these warnings? Also, Table of content is not working in confluence due to these warning but the documentation is getting created in the code.
Any suggestion/help will be highly appreciable.
[4px@learning-2 docs]$ make confluence
Running Sphinx v4.2.0
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [confluence]: targets for 0 source files that are out of date
updating environment: 0 added, 1 changed, 0 removed
/usr/lib64/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 192 from C header, got 216 from PyObject
return f(*args, **kwds)
/usr/lib64/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 192 from C header, got 216 from PyObject
return f(*args, **kwds)
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] index
/home/4px/sphinx/docs/source/index.rst:: WARNING: unable to build link to document due to missing title (in index): genindex
/home/4px/sphinx/docs/source/index.rst:: WARNING: unable to build link to document due to missing title (in index): py-modindex
/home/4px/sphinx/docs/source/index.rst:: WARNING: unable to build link to document due to missing title (in index): search
publishing documents... [100%] index
Publish point: https://<........>.atlassian.net/wiki/spaces/DOCS/pages/4194009282
building intersphinx... done
build succeeded, 3 warnings.
index.rst file-
.. 4px documentation master file, created by
sphinx-quickstart on Tue Oct 26 11:19:49 2021.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
API Documentation
**************************
CODE DOCUMENTATION
====================================
.. toctree::
:hidden:
index
featureSelection
==================
.. automodule:: featureSelection
:members:
interpolate
============
.. automodule:: interpolate
:members:
pets
============
.. automodule:: pets
:members:
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
I got one github issue regarding this warning, but it was for older version.
Sphinx 2.2.2 warning · Issue #265 · sphinx-contrib/confluencebuilder
The below warnings are removed after cleaning up the index.rst file and creating individual rst file for each python script instead of adding structured format in an index.rst as above.
It yields another advantage of creating TOC page in confluence on its own.
The structure of index.rst should be below in cd docs/sources directory, where assets, plant,Site, pipeline are the name of the python script
index.rst-
.. spectRRa documentation master file, created by
sphinx-quickstart on Fri Apr 24 11:55:57 2020.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
**API Docs**
***************
.. toctree::
assets
plants
pipelines
sites
Also create all individual rst file in cd docs/sources/ directory.
Ex-For assets.py script,the assets.rst file will be below.
assets.rst-
.. spectRRa documentation master file, created by
sphinx-quickstart on Fri Apr 24 11:55:57 2020.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
.. toctree::
:maxdepth: 2
:caption: Contents:
**Assets**
=================
.. automodule:: assets
:members:
Note-Pls don't change indentation otherwise, it won't work and throw indentation warnnings.
Ref Link-Stack overflow TOC page generation in confluence using sphinx confluence builder