mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
print active readers when no content is found
This commit is contained in:
parent
f761f95288
commit
be4e04f774
1 changed files with 10 additions and 2 deletions
|
|
@ -467,7 +467,11 @@ def main():
|
||||||
', '.join(k for k, v in modified.items() if v)))
|
', '.join(k for k, v in modified.items() if v)))
|
||||||
|
|
||||||
if modified['content'] is None:
|
if modified['content'] is None:
|
||||||
logger.warning('No valid files found in content.')
|
logger.warning('No valid files found in content for the active readers:')
|
||||||
|
for k, v in readers.readers.items():
|
||||||
|
if v.enabled:
|
||||||
|
logger.warning(' | %s (%s)' % (type(v).__name__,
|
||||||
|
', '.join(v.file_extensions)))
|
||||||
|
|
||||||
if modified['theme'] is None:
|
if modified['theme'] is None:
|
||||||
logger.warning('Empty theme folder. Using `basic` '
|
logger.warning('Empty theme folder. Using `basic` '
|
||||||
|
|
@ -490,7 +494,11 @@ def main():
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if next(watchers['content']) is None:
|
if next(watchers['content']) is None:
|
||||||
logger.warning('No valid files found in content.')
|
logger.warning('No valid files found in content for the active readers:')
|
||||||
|
for k, v in readers.readers.items():
|
||||||
|
if v.enabled:
|
||||||
|
logger.warning(' | %s (%s)' % (type(v).__name__,
|
||||||
|
', '.join(v.file_extensions)))
|
||||||
|
|
||||||
if next(watchers['theme']) is None:
|
if next(watchers['theme']) is None:
|
||||||
logger.warning('Empty theme folder. Using `basic` theme.')
|
logger.warning('Empty theme folder. Using `basic` theme.')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue