Dashboard
PHP:
8.2.30
OS:
Linux
User:
dh_nv8b2m
/
/
usr
/
lib
/
python3
/
dist-packages
/
docutils
/
transforms
/
__pycache__
📤 Upload
📝 New File
📁 New Folder
Close
Editing: frontmatter.cpython-310.pyc
o "5p`�N � @ s� d Z dZddlZddlZddlmZmZ ddlmZm Z ej dkr#eZG dd� de �Z G d d � d e �ZG dd� de �ZG d d� de �ZdS )a4 Transforms related to the front matter of a document or a section (information found before the main text): - `DocTitle`: Used to transform a lone top level section's title to the document title, promote a remaining lone top-level section's title to the document subtitle, and determine the document's title metadata (document['title']) based on the document title and/or the "title" setting. - `SectionSubTitle`: Used to transform a lone subsection into a subtitle. - `DocInfo`: Used to transform a bibliographic field list into docinfo elements. �reStructuredText� N)�nodes�utils)�TransformError� Transform)� r c @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) � TitlePromoterzJ Abstract base class for DocTitle and SectionSubTitle transforms. c C s� t |tj�s td��t|�rt |d tj�rJ �| �|�\}}|du r%dS |j|ddd� |dd� |d|� |dd� |dd�<