Skip to content

Commit

Permalink
Add fixes for nox checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Bizordec committed Sep 7, 2023
1 parent 05dfdc3 commit 8f18679
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/customization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ Configuration Options

Scope of site preferences (i.e. cookie consent, content tabs, color palette).
If you have multi-site project, you can set this to "/"
to share preferences between all sub-sites. See the :ref:`version_dropdown` section
to share preferences between all sub-sites. See the :ref:`version_dropdown` section
on how to setup a multi-site project.

.. confval:: sphinx_immaterial_external_resource_cache_dir
Expand Down
8 changes: 5 additions & 3 deletions tests/extra_scope_test.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
from __future__ import annotations

from typing import TYPE_CHECKING
from bs4 import BeautifulSoup
import re
import textwrap
from pathlib import Path
from typing import TYPE_CHECKING

import pytest
from bs4 import BeautifulSoup

if TYPE_CHECKING:
from sphinx.testing.util import SphinxTestApp
Expand Down Expand Up @@ -47,7 +49,7 @@ def test_extra_scope(
)
app.build()

with open(app.outdir / "index.html", mode="r") as file:
with open(Path(app.outdir) / "index.html", mode="r") as file:
soup = BeautifulSoup(file.read(), "html.parser")

head = soup.head
Expand Down

0 comments on commit 8f18679

Please sign in to comment.