You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/options.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ You can customize the plugin by setting options in `mkdocs.yml`. For example:
16
16
exclude:
17
17
- index.md
18
18
enabled: true
19
+
strict: true
19
20
```
20
21
21
22
## `type`
@@ -131,3 +132,18 @@ Which enables you to disable the plugin locally using:
131
132
export ENABLED_GIT_REVISION_DATE=false
132
133
mkdocs serve
133
134
```
135
+
136
+
## `strict`
137
+
138
+
Default is `true`. When enabled, the logs will show warnings when something is wrong but a fallback has been used. When disabled, the logger will use the INFO level instead.
139
+
140
+
- If you want to raise an error when a warning is logged, use [mkdocs strict mode](https://www.mkdocs.org/user-guide/configuration/#strict) (with `mkdocs build --strict`).
141
+
- If you are already using [mkdocs strict mode](https://www.mkdocs.org/user-guide/configuration/#strict), but do not care about these warnings, you can set `strict: false` to ensure no errors are raised.
0 commit comments