Skip to content

Commit

Permalink
trimmed trailing whitespace and ran black
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Apr 11, 2024
1 parent 3a3f9a9 commit acc1c32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/customization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -292,7 +292,7 @@ Configuration Options
specifying the feature's name in a list of strings. The following features are supported:

- `content.action.* <https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/#code-actions>`_

- ``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.

Expand Down
4 changes: 3 additions & 1 deletion sphinx_immaterial/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit acc1c32

Please sign in to comment.