Skip to content

Commit eef4933

Browse files
Remove docs workaround and upgrade mkdocs-material (#662)
Co-authored-by: Marcelo Trylesinski <[email protected]>
1 parent 3d79243 commit eef4933

File tree

4 files changed

+21
-34
lines changed

4 files changed

+21
-34
lines changed

docs/plugins/main.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,6 @@ def on_page_markdown(markdown: str, page: Page, config: Config, files: Files) ->
2525
return markdown
2626

2727

28-
def on_pre_build(*_args, **_kwargs) -> None:
29-
import mkdocs_redirects.plugin
30-
31-
# work around for very unfortunate bug in mkdocs-redirects:
32-
# https://github.com/mkdocs/mkdocs-redirects/issues/65
33-
mkdocs_redirects.plugin.HTML_TEMPLATE = """
34-
<!doctype html>
35-
<html lang="en">
36-
<head>
37-
<meta charset="utf-8">
38-
<title>Redirecting...</title>
39-
<link rel="canonical" href="{url}">
40-
<!-- remove problematic tag here -->
41-
<script>var anchor=window.location.hash.substr(1);location.href="{url}"+(anchor?"#"+anchor:"")</script>
42-
<meta http-equiv="refresh" content="0; url={url}">
43-
</head>
44-
<body>
45-
Redirecting...
46-
</body>
47-
</html>
48-
"""
49-
50-
5128
def check_documented_system_metrics(markdown: str, page: Page) -> str:
5229
"""Check that all system metrics are documented.
5330

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ dev = [
162162
]
163163
docs = [
164164
"mkdocs>=1.5.0",
165-
"mkdocs-material>=9.5.17",
165+
"mkdocs-material>=9.5.48",
166166
"mkdocs-glightbox>=0.4.0",
167167
"mkdocstrings-python>=1.8.0",
168168
"mkdocs-redirects>=1.2.1",

tests/otel_integrations/test_redis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def redis(redis_container: RedisContainer):
3434

3535
@pytest.fixture
3636
def redis_port(redis_container: RedisContainer) -> str:
37-
return redis_container.get_exposed_port(6379)
37+
return redis_container.get_exposed_port(6379) # pyright: ignore[reportReturnType]
3838

3939

4040
@pytest.fixture(autouse=True)

uv.lock

Lines changed: 19 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)