Skip to content

Commit 199e315

Browse files
committed
Updated warning message to clarify relation to MkDocs
1 parent 1025833 commit 199e315

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

material/plugins/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@
2626
if not getenv("NO_MKDOCS_2_WARNING"):
2727
print(
2828
"\n"
29-
f"{Fore.RED} │ ⚠ WARNING – MkDocs 2.0 is incompatible with Material for MkDocs{Style.RESET_ALL}\n"
29+
f"{Fore.RED} │ ⚠ Warning from the Material for MkDocs team{Style.RESET_ALL}\n"
3030
f"{Fore.RED}{Style.RESET_ALL}\n"
31-
f"{Fore.RED}{Style.RESET_ALL} MkDocs 2.0 introduces backward-incompatible changes:\n"
31+
f"{Fore.RED}{Style.RESET_ALL} MkDocs 2.0, the underlying framework of Material for MkDocs,\n"
32+
f"{Fore.RED}{Style.RESET_ALL} will introduce backward-incompatible changes, including:\n"
3233
f"{Fore.RED}{Style.RESET_ALL}\n"
3334
f"{Fore.RED} │ × {Style.RESET_ALL}All plugins will stop working – the plugin system has been removed\n"
3435
f"{Fore.RED} │ × {Style.RESET_ALL}All theme overrides will break – the theming system has been rewritten\n"

src/plugins/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@
2626
if not getenv("NO_MKDOCS_2_WARNING"):
2727
print(
2828
"\n"
29-
f"{Fore.RED} │ ⚠ WARNING – MkDocs 2.0 is incompatible with Material for MkDocs{Style.RESET_ALL}\n"
29+
f"{Fore.RED} │ ⚠ Warning from the Material for MkDocs team{Style.RESET_ALL}\n"
3030
f"{Fore.RED}{Style.RESET_ALL}\n"
31-
f"{Fore.RED}{Style.RESET_ALL} MkDocs 2.0 introduces backward-incompatible changes:\n"
31+
f"{Fore.RED}{Style.RESET_ALL} MkDocs 2.0, the underlying framework of Material for MkDocs,\n"
32+
f"{Fore.RED}{Style.RESET_ALL} will introduce backward-incompatible changes, including:\n"
3233
f"{Fore.RED}{Style.RESET_ALL}\n"
3334
f"{Fore.RED} │ × {Style.RESET_ALL}All plugins will stop working – the plugin system has been removed\n"
3435
f"{Fore.RED} │ × {Style.RESET_ALL}All theme overrides will break – the theming system has been rewritten\n"

0 commit comments

Comments
 (0)