MCPcopy
hub / github.com/getpelican/pelican / read

Method read

pelican/readers.py:281–290  ·  view source on GitHub ↗

Parses restructured text

(self, source_path)

Source from the content-addressed store, hash-verified

279 return pub
280
281 def read(self, source_path):
282 """Parses restructured text"""
283 pub = self._get_publisher(source_path)
284 parts = pub.writer.parts
285 content = parts.get("body")
286
287 metadata = self._parse_metadata(pub.document, source_path)
288 metadata.setdefault("title", parts.get("title"))
289
290 return content, metadata
291
292
293class MarkdownReader(BaseReader):

Callers 15

read_fileMethod · 0.45
pelican_openFunction · 0.45
filestamp_funcMethod · 0.45
get_sourceMethod · 0.45
file_to_soupFunction · 0.45
_get_tumblr_postsFunction · 0.45
fields2pelicanFunction · 0.45
mainFunction · 0.45
test_simple_themeMethod · 0.45

Calls 3

_get_publisherMethod · 0.95
_parse_metadataMethod · 0.95
getMethod · 0.80