-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty or non-defined extra_css generates warning #1335
Comments
No, not at this time, although, that should be temporary. Prior to this release, all CSS files in your |
All right, thanks for the clarification. I guess I'll build without |
The warning for missing files should only be issued if the config setting is empty. The warning only exists because we disabled autopopulating of the settings. Autopopulating only used to run when the setting was empty so the warning is not nessecary if the setting has been populated. Given the above, no string comparisons need to be made as we only need to check if any files exist when empty. Therefore, we don't actually need to normalize paths. As we are no longer modifying users' strings, they can again put any string in their config, such as URLs of CDNs. Fixes mkdocs#1335 & mkdocs#1336.
The warning for missing files should only be issued if the config setting is empty. The warning only exists because we disabled autopopulating of the settings. Autopopulating only used to run when the setting was empty so the warning is not nessecary if the setting has been populated. Given the above, no string comparisons need to be made as we only need to check if any files exist when empty. Therefore, we don't actually need to normalize paths. As we are no longer modifying users' strings, they can again put any string in their config, such as URLs of CDNs. Fixes #1335 & #1336.
I have a bit of css files in my project that I don't want to include in
extra_css
.With 0.17, even if I define empty lists in
mkdocs.yml
, I get a warning that makes--strict
building fail.For instance, with this in
mkdocs.yml
I get:
The exact same thing happens if I remove the
extra_css
part frommkdocs.yml
.Is there a way to build in
strict
mode while making sure that extra CSS files are not added to the project?The text was updated successfully, but these errors were encountered: