@@ -104,7 +104,6 @@ def get_file_from_conf_ini(path_to_file):
104104 'sphinx.ext.graphviz' ,
105105 'sphinx.ext.extlinks' ,
106106 'widget_extension' ,
107- 'sphinx_rtd_theme' ,
108107 'sphinx_reredirects' ,
109108 'sphinxcontrib.plantuml' ,
110109]
@@ -183,6 +182,7 @@ def get_file_from_conf_ini(path_to_file):
183182
184183# The name of the Pygments (syntax highlighting) style to use.
185184pygments_style = 'sphinx'
185+ pygments_dark_style = "monokai"
186186
187187# Figures, tables and code-blocks are automatically numbered if they
188188# have a caption.
@@ -239,8 +239,7 @@ def get_file_from_conf_ini(path_to_file):
239239# The theme to use for HTML and HTML Help pages. See the documentation for
240240# a list of builtin themes.
241241#
242- #html_theme = 'learn_theme'
243- html_theme = 'sphinx_rtd_theme'
242+ html_theme = 'furo'
244243
245244if 'GEN_LEARN_SITE' in os .environ and os .environ ['GEN_LEARN_SITE' ] == "yes" :
246245 html_title = "learn.adacore.com"
@@ -252,24 +251,47 @@ def get_file_from_conf_ini(path_to_file):
252251
253252html_theme_path = ['.' ] # make sphinx search for themes in current dir
254253
254+ html_css_files = [
255+ "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/fontawesome.min.css" ,
256+ "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/solid.min.css" ,
257+ "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/brands.min.css" ,
258+ ]
259+
255260# Theme options are theme-specific and customize the look and feel of a theme
256261# further. For a list of options available for each theme, see the
257262# documentation.
258263#
259264html_theme_options = {
260- 'logo_only' : True ,
261- 'flyout_display' : 'hidden' ,
262- 'version_selector' : False ,
263- 'prev_next_buttons_location' : 'bottom' ,
264- 'style_external_links' : False ,
265- 'vcs_pageview_mode' : '' ,
266- # 'style_nav_header_background': 'white',
267- # Toc options
268- 'collapse_navigation' : False ,
269- 'sticky_navigation' : False ,
270- 'navigation_depth' : 4 ,
271- 'includehidden' : True ,
272- 'titles_only' : False
265+ # furo options
266+ 'light_css_variables' : {
267+ 'color-brand-primary' : '#fa5000' ,
268+ 'color-brand-content' : '#fa5000' ,
269+ 'color-brand-visited' : '#9f1b5e' ,
270+ 'color-admonition-background' : '#faf1ec' ,
271+ 'color-admonition-title' : '#fa5000' ,
272+ 'color-admonition-title-background' : '#fadfd2' ,
273+ 'color-admonition-title--note' : 'var(--color-admonition-title)' ,
274+ 'color-admonition-title-background--note' : 'var(--color-admonition-title-background)' ,
275+ },
276+ 'dark_css_variables' : {
277+ 'color-brand-primary' : '#fa5000' ,
278+ 'color-brand-content' : '#fa5000' ,
279+ 'color-brand-visited' : '#9f1b5e' ,
280+ 'color-admonition-background' : '#261d1a' ,
281+ 'color-admonition-title' : '#fa5000' ,
282+ 'color-admonition-title-background' : '#502000' ,
283+ 'color-admonition-title--note' : 'var(--color-admonition-title)' ,
284+ 'color-admonition-title-background--note' : 'var(--color-admonition-title-background)' ,
285+ },
286+ 'sidebar_hide_name' : True ,
287+ 'navigation_with_keys' : True ,
288+ 'top_of_page_buttons' : ["view" , "edit" ],
289+ # 'announcement': "",
290+ # 'footer_icons': [],
291+
292+ "source_repository" : "https://github.com/AdaCore/learn" ,
293+ "source_branch" : "main" ,
294+ "source_directory" : "content/" ,
273295}
274296
275297html_show_sphinx = False
@@ -278,6 +300,9 @@ def get_file_from_conf_ini(path_to_file):
278300 html_logo = "img/logo.svg"
279301else :
280302 html_logo = "img/logo_sandbox.svg"
303+ html_theme_options ["announcement" ] = \
304+ "<p>⚠️ This version of the website contains UNPUBLISHED contents. " \
305+ "⚠️</p>"
281306
282307html_favicon = "img/favicon.ico"
283308
0 commit comments