Skip to content

Getting NoneType css_files or theme_css_files after Sphinx Upgrade #158

@alexhagen

Description

@alexhagen

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:

Exception occurred:
  File "/usr/local/lib/python2.7/dist-packages/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 /tmp/sphinx-err-Jz7JLa.log, if you want to report the issue to the developers.

Sphinx works with html_theme = 'alabaster' instead of sphinx-bootstrap, so I believe it's in sphinx-bootstrap-theme. My relevant configuration lines are:

html_theme = 'bootstrap'
html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
html_theme_options = {
    # Tab name for entire site. (Default: "Site")
    'navbar_site_name': "Alex Hagen",
    'navbar_sidebarrel': True,
    'navbar_pagenav': True,
    'navbar_pagenav_name': "Page",
    'globaltoc_depth': 2,
    'globaltoc_includehidden': "true",
    'navbar_class': "navbar",
    'navbar_fixed_top': "true",
    'source_link_position': None,
    'bootswatch_theme': "journal",
    'bootstrap_version': "3",
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions