Empty or non-defined extra_css generates warning #1335
Closed
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 |
waylan
added a commit
to waylan/mkdocs
that referenced
this issue
Nov 1, 2017
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.
This was referenced Nov 1, 2017
waylan
added a commit
that referenced
this issue
Nov 1, 2017
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: