lib.metadata.extract
¶
Title, Subtitle, and Metadata extraction of reStructuredText.
- django_docutils.lib.metadata.extract.extract_title(document)[source]¶
Return the title of the document.
- Parameters:
document (
docutils.nodes.document
) – Document to return title for.- Returns:
Title of document or None if not found.
- Return type:
str or None
- django_docutils.lib.metadata.extract.extract_metadata(document)[source]¶
Return the dict containing document metadata.
- Parameters:
document (
docutils.nodes.document
) – Document extract metadata from.- Returns:
docinfo data from document
- Return type:
See also
From
https://github.com/adieu/mezzanine-cli @ mezzanine_cli/parser.py
License
BSD (https://github.com/adieu/mezzanine-cli/blob/master/setup.py)
- django_docutils.lib.metadata.extract.extract_subtitle(document)[source]¶
Return the subtitle of the document.