@@ -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
187187nitpicky = True
188188
@@ -232,8 +232,7 @@ def get_file_from_conf_ini(path_to_file):
232232# The theme to use for HTML and HTML Help pages. See the documentation for
233233# a list of builtin themes.
234234#
235- #html_theme = 'learn_theme'
236- html_theme = 'sphinx_rtd_theme'
235+ html_theme = 'furo'
237236
238237if 'GEN_LEARN_SITE' in os .environ and os .environ ['GEN_LEARN_SITE' ] == "yes" :
239238 html_title = "learn.adacore.com"
@@ -245,24 +244,32 @@ def get_file_from_conf_ini(path_to_file):
245244
246245html_theme_path = ['.' ] # make sphinx search for themes in current dir
247246
247+ html_css_files = [
248+ "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/fontawesome.min.css" ,
249+ "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/solid.min.css" ,
250+ "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/brands.min.css" ,
251+ ]
252+
248253# Theme options are theme-specific and customize the look and feel of a theme
249254# further. For a list of options available for each theme, see the
250255# documentation.
251256#
252257html_theme_options = {
253- 'logo_only' : True ,
254- 'flyout_display' : 'hidden' ,
255- 'version_selector' : False ,
256- 'prev_next_buttons_location' : 'bottom' ,
257- 'style_external_links' : False ,
258- 'vcs_pageview_mode' : '' ,
259- # 'style_nav_header_background': 'white',
260- # Toc options
261- 'collapse_navigation' : False ,
262- 'sticky_navigation' : False ,
263- 'navigation_depth' : 4 ,
264- 'includehidden' : True ,
265- 'titles_only' : False
258+ # furo options
259+
260+ # 'light_css_variables': {
261+ # },
262+ # 'dark_css_variables': {
263+ # }
264+ 'sidebar_hide_name' : True ,
265+ 'navigation_with_keys' : True ,
266+ 'top_of_page_buttons' : ["view" , "edit" ],
267+ # 'announcement': "",
268+ # 'footer_icons': [],
269+
270+ "source_repository" : "https://github.com/AdaCore/learn" ,
271+ "source_branch" : "master" ,
272+ "source_directory" : "content/" ,
266273}
267274
268275html_show_sphinx = False
@@ -271,6 +278,9 @@ def get_file_from_conf_ini(path_to_file):
271278 html_logo = "img/logo.svg"
272279else :
273280 html_logo = "img/logo_sandbox.svg"
281+ html_theme_options ["announcement" ] = \
282+ "<p>⚠️ This version of the website contains UNPUBLISHED contents. " \
283+ "⚠️</p>"
274284
275285html_favicon = "img/favicon.ico"
276286
0 commit comments