| Server IP : 3.111.61.48 / Your IP : 216.73.216.67 Web Server : Apache System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.2.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /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�<