8o p d Z dZddlZddlZddlZddlZddlmZmZmZ ddl m
Z
ej ej
ej d ej
ej e d Zd Z G d d
e
j Z G d de
j ZdS )
z
S5/HTML Slideshow Writer.
reStructuredText N)frontendnodesutils) html4css1dummythemesc t j t | }t j | st j d| d|d |S )NzTheme directory not found: z (path: ))ospathjointhemes_dir_pathisdirdocutilsApplicationError)namer
s /builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib/python3.11/site-packages/docutils/writers/s5_html/__init__.py
find_themer s` 7<<..D
7== G'':>$$EG G GK c e Zd Zej j ddddgddddfd d
gddd
fddgdej dfddgdddfddgddgdddfddgddej d fd!d"gd#ddfd$d%gdej dfd&d'gd(ddff fz Zd)d*iZd+Z d,Z
d- Zd.S )/WriterzS5 Slideshow Specific OptionszFor the S5/HTML writer, the --no-toc-backlinks option (defined in General Docutils Options above) is the default, and should not be changed.aB Specify an installed S5 theme by name. Overrides --theme-url. The default theme name is "default". The theme files will be copied into a "ui/" directory, in the same directory as the destination file (output HTML). Note that existing theme files will not be overwritten (unless --overwrite-theme-files is used).z--themedefaultz theme_url)r metavar overrideszSpecify an S5 theme URL. The destination file (output HTML) will link to this theme; nothing will be copied. Overrides --theme.z--theme-urlztheme)r r z{Allow existing theme files in the ``ui/`` directory to be overwritten. The default is not to overwrite theme files.z--overwrite-theme-files
store_true)action validatorzfKeep existing theme files in the ``ui/`` directory; do not overwrite any. This is the default.z--keep-theme-filesoverwrite_theme_filesstore_false)destr z@Set the initial view mode to "slideshow" [default] or "outline".z--view-mode slideshowoutlinez)choicesr r zONormally hide the presentation controls in slideshow mode. This is the default.z--hidden-controlsT)r r r z^Always show the presentation controls in slideshow mode. The default is to hide the controls.z--visible-controlshidden_controlszMEnable the current slide indicator ("1 / 15"). The default is to disable it.z--current-slidez:Disable the current slide indicator. This is the default.z--no-current-slide
current_slide
toc_backlinksr zs5_html writer)writerszhtml writerszhtml4css1 writerc \ t j | t | _ d S N)r r __init__S5HTMLTranslatortranslator_classselfs r r- zWriter.__init__Y s' !!$''' 0r N)__name__
__module____qualname__r r
settings_specr validate_booleansettings_default_overridesconfig_sectionconfig_section_dependenciesr- r r r r # s $2' %N
+H#% %
&L/G
4
4
6G$
%!0I
J
J
L1
*m
D
D
F M/"I.;
!!
!d 13 3
4
1
$
>
>
@*
!0I
J
J
L G
"m
<
<
>K' @,6A ,AM\ #21!5%N#71 1 1 1 1r r c e Zd ZdZdZdZdZ dZ dZ dZ e ez Z
d Zd Zd
Z
ej d Zd Zd
Zd Zd Zd Zd Zd ZdS )r. a
zA
z
%(header)s
r __base__)z
slides.csszoutline.cssz print.cssz opera.cssz slides.js)zs5-core.csszframing.cssz
pretty.cssc t j j | g|R d | _ | | j j j }d| j j j }| j
| j | j ||dz | j j j s| j
| j
| j
d g | _ g | _ d| _ d | _ d S )N)visiblehidden)r
view_modecontrol_visibilityz)
r )r HTMLTranslatorr- theme_file_pathsetup_themedocumentsettingsr@ r'
stylesheetappends5_stylesheet_templater( disable_current_slidemeta s5_footer s5_header
section_counttheme_files_copied)r1 argsr@ rA s r r- zS5HTMLTranslator.__init__ s )$66666#M*4 24=3I4CEt:*.*>/88J"L "L L M M M }%3 ?O""4#=>>> EFFF"&r c | j j j r| d S | j j j r| j j j | _ d S t
j d )Nz&No theme specified for S5/HTML writer.)rE rF r
copy_themer rC r r r0 s r rD zS5HTMLTranslator.setup_theme sf =!' :OO
]
#
- :#'=#9#CD +8: :
:r c | j j }t |j }|g}i | _ i }dd|j | _ |j r|t j t j
|j d|j }t j | st j | ndS d}|r_t j
| D ]3}|| j k r| ||| r|| j v rd||<