Skip to content

Commit c8e0a9a

Browse files
committed
Change the environment variable that is used to suppress the nag message
The commit squidfunk/mkdocs-material@51d9b76 made this environment ununsable - it's always set and there's no reasonable way to detect whether it was actually set on the command line. Users will unfortunately run into a new nuisance even if they previously set our variable.
1 parent 252e8dc commit c8e0a9a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

properdocs/replacement_warning.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,10 @@ def setup():
4444
return
4545

4646
if is_running_from_mkdocs():
47-
# Allow to silence this warning with NO_MKDOCS_2_WARNING=true
48-
if os.environ.get('NO_MKDOCS_2_WARNING', '').lower() != 'true':
47+
# Allow to silence this warning with DISABLE_MKDOCS_2_WARNING=true
48+
if os.environ.get('DISABLE_MKDOCS_2_WARNING', '').lower() != 'true':
4949
print(colorize_message(_warning_message), file=sys.stderr) # noqa: T201
5050

51-
# Prevent warnings from the theme that already uses this environment variable.
52-
# That warning does not apply to ProperDocs.
53-
os.environ['NO_MKDOCS_2_WARNING'] = 'true'
54-
5551
_warning_message = '' # Disable all activations other than the first one.
5652

5753

0 commit comments

Comments
 (0)