Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc build fails with sphinx 4: no attribute 'add_stylesheet' #210

Open
drew-parsons opened this issue Oct 15, 2021 · 0 comments
Open

doc build fails with sphinx 4: no attribute 'add_stylesheet' #210

drew-parsons opened this issue Oct 15, 2021 · 0 comments

Comments

@drew-parsons
Copy link
Contributor

The doc build for xtensor-blas fails with sphinx 4:

sphinx-build -b html -d build/doctrees   source build/html
Running Sphinx v4.2.0
making output directory... done

Exception occurred:
  File "/build/xtensor-blas-0.19.1/docs/source/conf.py", line 19, in setup
    app.add_stylesheet("main_stylesheet.css")
AttributeError: 'Sphinx' object has no attribute 'add_stylesheet'
The full traceback has been saved in /tmp/sphinx-err-dacahox3.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make[2]: *** [Makefile:56: html] Error 2

This is the same as xtensor Issue #2441, xtensor-stack/xtensor#2441

add_stylesheet is deprecated and needs to be replaced with add_css_file()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant