twilio / twilio-python

A Python module for communicating with the Twilio API and generating TwiML.
MIT License
1.86k stars 711 forks source link

9.0.5: documentation no longer builds #790

Open kloczek opened 6 months ago

kloczek commented 6 months ago

Looks like with latest 9.0.5 it is no longer possible to build documentation because some files are missing.

+ /usr/bin/sphinx-build -n -T -b man docs build/sphinx/man
Running Sphinx v7.2.6
WARNING: Invalid configuration value found: 'language = None'. Update your configuration to a valid language code. Falling back to 'en' (English).
making output directory... done
WARNING: html_static_path entry 'source/_static' does not exist
WARNING: The pre-Sphinx 1.0 'intersphinx_mapping' format is deprecated and will be removed in Sphinx 8. Update to the current format as described in the documentation. Hint: "intersphinx_mapping = {'<name>': ('https://docs.python.org/', None)}".https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html#confval-intersphinx_mapping
loading intersphinx inventory from https://docs.python.org/objects.inv...
intersphinx inventory has moved: https://docs.python.org/objects.inv -> https://docs.python.org/3/objects.inv
building [mo]: targets for 0 po files that are out of date
writing output...
building [man]: all manpages
updating environment: [new config] 0 added, 0 changed, 0 removed
reading sources...

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/sphinx/cmd/build.py", line 298, in build_main
    app.build(args.force_all, args.filenames)
  File "/usr/lib/python3.10/site-packages/sphinx/application.py", line 355, in build
    self.builder.build_update()
  File "/usr/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 290, in build_update
    self.build(['__all__'], to_build)
  File "/usr/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 313, in build
    updated_docnames = set(self.read())
  File "/usr/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 423, in read
    raise SphinxError('root file %s not found' %
sphinx.errors.SphinxError: root file /home/tkloczko/rpmbuild/BUILD/twilio-python-9.0.5/docs/index.rst not found

Sphinx error:
root file /home/tkloczko/rpmbuild/BUILD/twilio-python-9.0.5/docs/index.rst not found
tiwarishubham635 commented 6 months ago

Can you share some more context for reproducing the error?

kloczek commented 6 months ago

Just please try to clone git repo in which this file is missing.

tiwarishubham635 commented 6 months ago

Are you sure you were able to do this in earlier versions? I see docs folder did not have this file earlier as well?

kloczek commented 6 months ago

No .. actually now I'm not 100% sure šŸ¤” Nervelessness it does not work now .. šŸ˜ž

tiwarishubham635 commented 6 months ago

So I see that it checks for index.rst which is the entrypoint. We do not have that in our repo. I can take a look on how to add it.

tiwarishubham635 commented 5 months ago

Created an internal ticket for this to be picked up. +1s will help it move up. Thanks!

tiwarishubham635 commented 3 months ago

Just a suggestion, can you try running make docs command? We are using the same for verifying docs generation. Please check this once and let me know.

kloczek commented 3 months ago

So looks like autodoc support is not finished/broken in conf.py

tiwarishubham635 commented 3 months ago

I think #807 will fix that issue