Skip to content

Setting html_context['css_files'] renders add_stylesheet() inoperative #2442

@mgeier

Description

@mgeier

When I use something like this in my conf.py:

html_static_path = ['_static']
html_context = {
    'css_files': ['_static/my_css_file.css'],
}

... and an extension uses add_stylesheet(), latter has no effect.

Is this intentional?

I would expect the css_files mentioned in conf.py to be appended to the list of CSS files from the theme and from extensions.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions