Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sphinx_simplepdf/builders/simplepdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ def _resolve_scss_folder(self):
def bundled_scss_folder():
return fallback_module.get_scss_sources_path()

# The default importable module lives under sphinx_simplepdf.themes
# skip dynamic import for the default configuration.
if theme_name == "simplepdf_theme":
return bundled_scss_folder()

try:
# theme_name comes from conf.py; dynamic import is no extra trust boundary vs. Sphinx config.
theme_module = importlib.import_module(theme_name)
Expand Down
Loading