
    Af	                     F    d dl mZ d dlmZ d dlmZ  G d de          ZdS )    )nodes)admonitionlabels)HTML5Translatorc                   6     e Zd ZdZdgZddZd Z fdZ xZS )BotoHTML5TranslatorzEExtension of Sphinx's ``HTML5Translator`` for Botocore documentation.z
[REQUIRED] c                     | j                             |                     |dd|z                        |r-dt          |          d}| j                             |           dS dS )z;Uses the h3 tag for admonition titles instead of the p tag.divzadmonition )CLASSz<h3 class='admonition-title'> z</h3>N)bodyappendstarttagr   )selfnodenametitles       g/home/panchajanya/Development/work/volatility3/lib/python3.11/site-packages/botocore/docs/translator.pyvisit_admonitionz$BotoHTML5Translator.visit_admonition   s    	MM$md.BMDD	
 	
 	
  	$N1A$1GNNN  IU#####		$ 	$    c                 4   t          |          dk    ot          |d         t          j                  oet          |d                   dk    oLt          |d         d         t          j                  o&|d         d                                         | j        vS )zDetermines if a node is an implicit heading.

        An implicit heading is represented by a paragraph node whose only
        child is a strong node with text that isnt in `IGNORE_IMPLICIT_HEADINGS`.
           r   )len
isinstancer   strongTextastextIGNORE_IMPLICIT_HEADINGS)r   r   s     r   is_implicit_headingz'BotoHTML5Translator.is_implicit_heading$   s     IIN I47EL11IDG!I 471:uz22I Q
!!##4+HH	
r   c                     |                      |          r8|d         d         }| j                            d| d           t          j        t                                          |           dS )zVisit a paragraph HTML element.

        Replaces implicit headings with an h3 tag and defers to default
        behavior for normal paragraph elements.
        r   z<h3>z</h3>
N)r   r   r   r   SkipNodesupervisit_paragraph)r   r   text	__class__s      r   r"   z#BotoHTML5Translator.visit_paragraph2   sp     ##D)) 	*71:DI1D111222. GG##D)))))r   )r   )	__name__
__module____qualname____doc__r   r   r   r"   __classcell__)r$   s   @r   r   r      sn        OO 	 	$ 	$ 	$ 	$
 
 
* * * * * * * * *r   r   N)docutilsr   sphinx.localer   sphinx.writers.html5r   SphinxHTML5Translatorr    r   r   <module>r/      sr          * * * * * * I I I I I I,* ,* ,* ,* ,*/ ,* ,* ,* ,* ,*r   