| Server IP : 167.99.254.82 / Your IP : 216.73.216.229 Web Server : Apache System : Linux host.techisquad.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 User : pawluxera ( 1011) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/docutils/transforms/__pycache__/ |
Upload File : |
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�<