-
Notifications
You must be signed in to change notification settings - Fork 213
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
Getting NoneType css_files or theme_css_files after Sphinx Upgrade #158
Comments
Confirmed with:
and $ fab clean && fab demo
...
Exception occurred:
File "/Users/rye/scm/os/sphinx-bootstrap-theme/sphinx_bootstrap_theme/bootstrap/layout.html", line 40, in top-level template code
{% set css_files = css_files + theme_css_files + bootswatch_css_custom %}
TypeError: unsupported operand type(s) for +: 'NoneType' and 'list'
The full traceback has been saved in /var/folders/p0/n23gplhx6xz72m7grb4mtqqh0000gp/T/sphinx-err-RsvPad.log, if you want to report the issue to the developers.
... I don't think this should be too hard to fix... looks like undeclared jinja variables or something changed error asserts... |
Update: Looked into sphinx-bootstrap-theme's Adding
to a custom Exception occurred:
File "/usr/local/lib/python2.7/dist-packages/sphinx/util/osutil.py", line 61, in relative_uri
if to.startswith(SEP):
UndefinedError: 'str object' has no attribute 'filename'
The full traceback has been saved in /tmp/sphinx-err-4DxoKf.log, if you want to report the issue to the developers.
It's possible Sphinx changed their |
Possibly related: https://github.com/sphinx-doc/sphinx/blob/master/CHANGES#L318-L321
|
Il 17 maggio 2017 15:56:02 CEST, Ryan Roemer <notifications@github.com> ha scritto:
Possibly related:
https://github.com/sphinx-doc/sphinx/blob/master/CHANGES#L318-L321
```
1.6b2
* #3662: ``builder.css_files`` is deprecated. Please use
``add_stylesheet()``
API instead.
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#158 (comment)
Yes, apparently fixed in the meantime. Confirmation appreciated.
--
Sent from mobile. Sorry for being short
|
Fixed after installing Sphinx (1.6.2) from |
`#158 <https://github.com/ryan-roemer/sphinx-bootstrap-theme/pull/158>`_, `#160 <https://github.com/ryan-roemer/sphinx-bootstrap-theme/pull/160>`_. * **Breaking Change**: Remove ``bootswatch_css_custom`` override, and instead opt for documenting idiomatic Sphinx-version specific generic overrides for custom CSS.
The theme uses `css_files` hackery, but that is deprecated in modern Sphinx and error prone because there are real object instances and not strings that now comprise `css_files`. See, e.g. #158 This PR switches all of the conditionally-included CSS files into css `@import url("NAME.css");` statements and just now has _one_ root style sheet included the old fashioned way. Hopefully this is both backwards compatible with any previous Sphinx versions and works better as `css_files` goes off into deprecation sunset.
I upgraded my Sphinx (to 1.6.1) to install another package this morning, and now my build using sphinx_bootstrap_theme (version 0.4.14) gives me the following error:
Sphinx works with
html_theme = 'alabaster'
instead of sphinx-bootstrap, so I believe it's in sphinx-bootstrap-theme. My relevant configuration lines are:The text was updated successfully, but these errors were encountered: