Skip to content

html_static_path settings are not preserved #157

@hroemer

Description

@hroemer

Configuration settings for html_static_path are overwritten in builders.py:

        # Hand over builder configs to html builder.
        setattr(self.config, "html_static_path", self.config.revealjs_static_path)

Thus any static files defined either in conf.py or by other extensions are ignored and essentially do not get copied to the output.

Could you please change it to something conceptually like this, preserving existing values:

        # Hand over builder configs to html builder.
        hsp = getattr(self.config, "html_static_path")
        hsp = hsp + self.config.revealjs_static_path if hsp else self.config.revealjs_static_path
        setattr(self.config, "html_static_path", hsp)

Regards,

Metadata

Metadata

Assignees

Labels

high:bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions