diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 43142970..f1970e36 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,8 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python_version }} + - name: Setup Graphviz + uses: ts-graphviz/setup-graphviz@v1 - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/mknodes/utils/pathhelpers.py b/mknodes/utils/pathhelpers.py index dd6a2b87..bdc9dd82 100644 --- a/mknodes/utils/pathhelpers.py +++ b/mknodes/utils/pathhelpers.py @@ -86,7 +86,7 @@ def get_material_icon_path(icon: str) -> pathlib.Path: if "/" not in icon: icon = f"material/{icon}" path = pathlib.Path(next(iter(material.__path__))) - return path / ".icons" / f"{icon}.svg" + return path / "templates" / ".icons" / f"{icon}.svg" def download_from_github( diff --git a/pyproject.toml b/pyproject.toml index 2770b1f1..57fa0d94 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -106,7 +106,7 @@ dependencies = [ # MkDocs "mkdocs >=1.5", "mkdocs-literate-nav", - "mkdocs-material", + "mkdocs-material >= 9.4", "mkdocstrings[python]", "mkdocs-section-index",