diff --git a/docs/customization.rst b/docs/customization.rst index 505bfae1c..ac1c21237 100644 --- a/docs/customization.rst +++ b/docs/customization.rst @@ -233,7 +233,7 @@ Configuration Options .. task-list:: :custom: - + - [x] :themeconf:`edit_uri` is configured - [x] :python:`"content.actions.view"` is in the list of :themeconf:`features` - [x] :themeconf:`hide-edit-link` is *not* present for the page @@ -268,7 +268,7 @@ Configuration Options .. .. themeconf:: previous The icon used in various places of the site that mean "go back": - + - footer's previous page link icon when :python:`"navigation.footer"` is in the list of :themeconf:`features` - hide search on mobile browsers - nested menus in the navigation drawer @@ -292,7 +292,7 @@ Configuration Options specifying the feature's name in a list of strings. The following features are supported: - `content.action.* `_ - + - ``content.action.view`` will enable the :si-icon:`material/file-eye-outline` "View source of this page" link at the top of the page. - ``content.action.edit`` will enable the :si-icon:`material/file-edit-outline` "Edit this page" link at the top of the page. diff --git a/sphinx_immaterial/search.py b/sphinx_immaterial/search.py index 5e82ac9a2..1275b63f8 100644 --- a/sphinx_immaterial/search.py +++ b/sphinx_immaterial/search.py @@ -50,7 +50,9 @@ def __init__(self, app: sphinx.application.Sphinx): self._jinja2_env: Optional[jinja2.sandbox.SandboxedEnvironment] if isinstance(builder, sphinx.builders.html.StandaloneHTMLBuilder): # only useful if using HTML output - self._jinja2_env = jinja2.sandbox.SandboxedEnvironment(loader=builder.templates) + self._jinja2_env = jinja2.sandbox.SandboxedEnvironment( + loader=builder.templates + ) self._jinja2_env.globals.update(builder.globalcontext) else: self._jinja2_env = None