- ‘patch/pelican_readers.patch’

This commit is contained in:
Dooho Yi 2020-05-02 19:21:44 +09:00
parent c17cec83f4
commit 282cba3f8e

View file

@ -1,17 +0,0 @@
230c230
< def _parse_metadata(self, document, source_path):
---
> def _parse_metadata(self, document, source_path, nowarning_about_missing_title):
236,240c236,241
< if document.first_child_matching_class(docutils.nodes.title) is None:
< logger.warning(
< 'Document title missing in file %s: '
< 'Ensure exactly one top level section',
< source_path)
---
> if nowarning_about_missing_title is False:
> if document.first_child_matching_class(docutils.nodes.title) is None:
> logger.warning(
> 'Document title missing in file %s: '
> 'Ensure exactly one top level section',
> source_path)