Skip to content

Commit

Permalink
Improve error message when html_style is set
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Jan 2, 2022
1 parent e2f6c86 commit 576b68e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/furo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ def _html_page_context(
return

if "css_files" in context:
if "_static/styles/furo.css" not in context["css_files"]:
raise Exception(
"This documentation is not using `furo.css` as the stylesheet. "
"If you have set `html_style` in your conf.py file, remove it."
)

_add_asset_hashes(
context["css_files"],
["styles/furo.css", "styles/furo-extensions.css"],
Expand Down

0 comments on commit 576b68e

Please sign in to comment.