From 188d395ac77b61935c1514529976fa58cf4042a7 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Fri, 22 Sep 2023 19:22:21 +0200 Subject: [PATCH] Test direct GitHub Pages deployment --- material/overrides/hooks/translations.py | 2 +- src/overrides/hooks/translations.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/material/overrides/hooks/translations.py b/material/overrides/hooks/translations.py index 6a523f698..35b8c2d9c 100644 --- a/material/overrides/hooks/translations.py +++ b/material/overrides/hooks/translations.py @@ -40,7 +40,7 @@ def on_page_markdown(markdown: str, *, page: Page, config: MkDocsConfig, files): # Collect all existing languages names: dict[str, str] = {} known: dict[str, dict[str, str]] = {} - for path in glob("src/templates/partials/languages/*.html"): + for path in glob("material/templates/partials/languages/*.html"): with open(path, "r", encoding = "utf-8") as f: data = f.read() diff --git a/src/overrides/hooks/translations.py b/src/overrides/hooks/translations.py index 6a523f698..35b8c2d9c 100644 --- a/src/overrides/hooks/translations.py +++ b/src/overrides/hooks/translations.py @@ -40,7 +40,7 @@ def on_page_markdown(markdown: str, *, page: Page, config: MkDocsConfig, files): # Collect all existing languages names: dict[str, str] = {} known: dict[str, dict[str, str]] = {} - for path in glob("src/templates/partials/languages/*.html"): + for path in glob("material/templates/partials/languages/*.html"): with open(path, "r", encoding = "utf-8") as f: data = f.read()