@@ -221,8 +221,6 @@ def get_file_from_conf_ini(path_to_file):
221221 '[GNATcheck Reference Manual: %s]' ),
222222 'gnat_stack_ug_url' : ('http://docs.adacore.com/live/wave/gnatstack/html/gnatstack_ug/%s' ,
223223 '[GNATstack User\' s Guide: %s]' ),
224- 'cwe' : ('https://cwe.mitre.org/data/definitions/%s.html' ,
225- '[CWE-%s]' ),
226224 }
227225
228226extlinks_detect_hardcoded_links = True
@@ -252,9 +250,8 @@ def get_file_from_conf_ini(path_to_file):
252250#
253251html_theme_options = {
254252 'logo_only' : True ,
255- # 'analytics_id': '',
256- # 'analytics_anonymize_ip': False,
257- 'display_version' : False ,
253+ 'flyout_display' : 'hidden' ,
254+ 'version_selector' : False ,
258255 'prev_next_buttons_location' : 'bottom' ,
259256 'style_external_links' : False ,
260257 'vcs_pageview_mode' : '' ,
@@ -487,8 +484,10 @@ def get_file_from_conf_ini(path_to_file):
487484
488485def setup (app ):
489486
487+ outdir = str (app .outdir )
488+
490489 # TODO: find a better way to retrieve the current target (html/latex/epub)
491- if 'html' in app . outdir :
490+ if 'html' in outdir :
492491 templates_path .append ('_templates' )
493492
494493 redirects .update ({
@@ -517,10 +516,10 @@ def setup(app):
517516
518517 if not os .getenv ('SPHINX_LOCAL_BUILD' ):
519518 raise e
520- elif 'epub' in app . outdir :
519+ elif 'epub' in outdir :
521520 if config .has_option ('' , 'cover_page' ):
522521 pdf_cover_page = get_file_from_conf_ini (config ['DEFAULT' ]['cover_page' ])
523- png_cover_page = app . outdir + "/" + '_static/cover.jpeg'
522+ png_cover_page = outdir + "/" + '_static/cover.jpeg'
524523
525524 pages = convert_from_path (pdf_path = pdf_cover_page ,
526525 dpi = 72 ,
0 commit comments