Skip to content

Commit 0d07c03

Browse files
mikethemanewdurbin
authored andcommitted
refactor: move custom config under extra
Removes a startup warning about an unknown configuration directive. Refs: https://www.mkdocs.org/user-guide/configuration/#extra Signed-off-by: Mike Fiedler <[email protected]>
1 parent 7610317 commit 0d07c03

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mkdocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
site_name: Python Software Foundation Policies
2-
preview: !ENV [PREVIEW, "False"]
32
theme:
43
name: material
54
custom_dir: ./overrides
@@ -23,6 +22,7 @@ plugins:
2322
fallback_to_build_date: true
2423
extra:
2524
homepage: https://python.org/psf/
25+
preview: !ENV [PREVIEW, "False"]
2626
site_url: https://policies.python.org/
2727
repo_url: https://github.com/psf/policies
2828

overrides/main.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% extends "base.html" %}
22

3-
{% block announce %}{% if config.preview %}
3+
{% block announce %}{% if config.extra.preview %}
44
<p>This is a <strong>preview</strong> of provisional changes to our policies.</p>
55
<p>Any differences between the contents of these pages and the policies published at https://policies.python.org/ are <strong>not</strong> legally binding.</p>
66
{% endif %}{% endblock %}

0 commit comments

Comments
 (0)