Skip to content

Commit

Permalink
Merge pull request #9167 from bonartm/fix_css_specific_page
Browse files Browse the repository at this point in the history
html: fix missing reverting when adding css files to specific page
  • Loading branch information
tk0miya committed May 4, 2021
2 parents cfb9183 + a7c5a3a commit a0d6036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/builders/html/__init__.py
Expand Up @@ -1026,7 +1026,7 @@ def hasdoc(name: str) -> bool:

# revert script_files and css_files
self.script_files[:] = self._script_files
self.css_files[:] = self.css_files
self.css_files[:] = self._css_files

self.update_page_context(pagename, templatename, ctx, event_arg)
newtmpl = self.app.emit_firstresult('html-page-context', pagename,
Expand Down

0 comments on commit a0d6036

Please sign in to comment.