
    	                     >    S SK Jr  S SKJr  S SKJr   " S S\5      rg)    )nodes)admonitionlabels)HTML5Translatorc                   B   ^  \ rS rSrSrS/rSS jrS rU 4S jrSr	U =r
$ )	BotoHTML5Translator   zEExtension of Sphinx's ``HTML5Translator`` for Botocore documentation.z
[REQUIRED]c                     U R                   R                  U R                  USSU-   S95        U(       a)  S[        U    S3nU R                   R                  U5        gg)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       +lib/third_party/botocore/docs/translator.pyvisit_admonition$BotoHTML5Translator.visit_admonition   sa    		MM$md.BMD	
 01A$1G0HN  IIU#	     c                 8   [        U5      S:H  =(       a    [        US   [        R                  5      =(       ab    [        US   5      S:H  =(       aJ    [        US   S   [        R                  5      =(       a#    US   S   R                  5       U R                  ;  $ )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_heading'BotoHTML5Translator.is_implicit_heading$   s     IN I47ELL1IDG!I 471:uzz2I Q
!!#4+H+HH	
r   c                    > U R                  U5      (       a7  US   S   nU R                  R                  SU S35        [        R                  e[
        TU ]  U5        g)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$   #BotoHTML5Translator.visit_paragraph2   sU     ##D))71:DIItD612.. G#D)r    ) )__name__
__module____qualname____firstlineno____doc__r   r   r   r$   __static_attributes____classcell__)r&   s   @r   r   r      s'    O 	 	$
* *r   r   N)docutilsr   sphinx.localer   sphinx.writers.html5r   SphinxHTML5Translatorr   r(   r   r   <module>r5      s     * I,*/ ,*r   