neovim / pynvim

Python client and plugin host for Nvim
http://pynvim.readthedocs.io/en/latest/
Apache License 2.0
1.47k stars 118 forks source link

docs (readthedocs) CI is failing #552

Closed justinmk closed 6 months ago

justinmk commented 7 months ago

The docs build https://readthedocs.org/projects/pynvim/builds/ is failing since 260a0b922bbd30be4ec32365faf37c2c70a7a4c4 . That commit triggered the build, but its code changes may be unrelated, instead we may need to update some dependencies/configuration: https://github.com/search?q=repo%3Aneovim%2Fpynvim+Sphinx&type=code

https://readthedocs.org/projects/pynvim/builds/22217681/

python -m sphinx -T -E -W --keep-going -b html -d _build/doctrees -D language=en . $READTHEDOCS_OUTPUT/html
Running Sphinx v7.2.6
making output directory... done

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/pynvim/envs/latest/lib/python3.11/site-packages/sphinx/cmd/build.py", line 293, in build_main
    app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/pynvim/envs/latest/lib/python3.11/site-packages/sphinx/application.py", line 272, in __init__
    self._init_builder()
  File "/home/docs/checkouts/readthedocs.org/user_builds/pynvim/envs/latest/lib/python3.11/site-packages/sphinx/application.py", line 342, in _init_builder
    self.builder.init()
  File "/home/docs/checkouts/readthedocs.org/user_builds/pynvim/envs/latest/lib/python3.11/site-packages/sphinx/builders/html/__init__.py", line 219, in init
    self.init_templates()
  File "/home/docs/checkouts/readthedocs.org/user_builds/pynvim/envs/latest/lib/python3.11/site-packages/sphinx/builders/html/__init__.py", line 270, in init_templates
    self.theme = theme_factory.create(themename)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/pynvim/envs/latest/lib/python3.11/site-packages/sphinx/theming.py", line 230, in create
    raise ThemeError(__('no theme named %r found (missing theme.conf?)') % name)
sphinx.errors.ThemeError: no theme named 'sphinx_rtd_theme' found (missing theme.conf?)

Theme error:
no theme named 'sphinx_rtd_theme' found (missing theme.conf?)
wookayin commented 6 months ago

@justinmk I can't really test because my fork doesn't have the actual action set up that would publis hto readthedocs, but this might fix the issue: https://github.com/wookayin/pynvim/commit/06e9073cad3f721a9984295c7767b7c4739fab45. Not sending a PR because I'm not 100% certain about it.

justinmk commented 6 months ago

@wookayin a PR would be appreciated, I'm ok with just merging stuff to try to fix readthedocs, since I don't know a better workflow for it.

wookayin commented 6 months ago

Boom -- https://readthedocs.org/projects/pynvim/builds/22812828/ failed :P I'll give another try much later by setting up some repo.... thanks for trying though

justinmk commented 6 months ago

Yay, thanks!