Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ca59f3b
Python: introduce Sphinx furo theme package
gusthoff Jun 6, 2025
b09f993
Sphinx: replace RTD theme by Furo theme
gusthoff Jun 6, 2025
5c1f341
Sphinx: add Furo options
gusthoff Jun 6, 2025
599f488
Sphinx: add announcement for learn-sandbox
gusthoff Jun 6, 2025
c47437b
Sphinx: reintroduce Font-Awesome
gusthoff Jun 6, 2025
ad68f19
Sphinx: adapt color of logo images to Furo theme
gusthoff Jun 6, 2025
b75abe5
Widget: adapt template for Font-Awesome 6
gusthoff Jun 6, 2025
2d3bcbe
SCSS: remove dark-mode version
gusthoff Jun 6, 2025
8a3a9be
SCSS: remove RTD-theme related information
gusthoff Jun 6, 2025
0313bf3
SCSS: remove scroll-to-top button
gusthoff Jun 6, 2025
89dad2f
Widget: fix rows in settings dropdown menu
gusthoff Jun 6, 2025
e40587e
SCSS: fix color of settings bar
gusthoff Jun 6, 2025
2045340
SCSS: fix color/font/format of compile/run button
gusthoff Jun 6, 2025
a3c2522
SCSS: fix overlapping of dropdown-menu
gusthoff Jun 6, 2025
bdef960
SCSS: fix color of source-code file tabs
gusthoff Jun 6, 2025
6d690e9
SCSS: fix color of dropdown-menu
gusthoff Jun 6, 2025
68b8331
SCSS: fix color of code block output
gusthoff Jun 6, 2025
3984c55
SCSS: add entry for output_console
gusthoff Jun 6, 2025
9024369
SCSS: use standard font color for output_info
gusthoff Jun 6, 2025
b86b7e0
SCSS: fix font color for output-area
gusthoff Jun 6, 2025
e19286f
SCSS: use standard background color for admonition 'In other languages'
gusthoff Jun 6, 2025
4e3f973
Sphinx: remove HTML template for RTD-theme
gusthoff Jun 9, 2025
5a97051
Sphinx: change dark mode theme of Pygments extension
gusthoff Jun 9, 2025
f60c54d
Sphinx: introduce connection to learn repository
gusthoff Jun 9, 2025
9d99c49
Sphinx: remove deprecated `html_theme`
gusthoff Jun 9, 2025
99a40ed
SCSS: fix image background adaptation for dark mode in case of light …
gusthoff Jun 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
coverage==7.8.0
docutils==0.21.2
furo==2024.8.6
graphviz==0.20.3
ipython==9.1.0
pdf2image==1.17.0
Expand Down
4 changes: 4 additions & 0 deletions frontend/requirements_frozen.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
alabaster==1.0.0
asttokens==3.0.0
babel==2.17.0
beautifulsoup4==4.13.4
certifi==2025.1.31
charset-normalizer==3.4.1
coverage==7.8.0
decorator==5.2.1
docutils==0.21.2
executing==2.2.0
furo==2024.8.6
graphviz==0.20.3
idna==3.10
imagesize==1.4.1
Expand Down Expand Up @@ -36,8 +38,10 @@ roman-numerals-py==3.1.0
setuptools==79.0.1
six==1.17.0
snowballstemmer==2.2.0
soupsieve==2.7
Sphinx==8.1.3
sphinx-reredirects==0.1.6
sphinx-basic-ng==1.0.0b2
sphinx-rtd-theme==3.0.2
sphinxcontrib-applehelp==2.0.0
sphinxcontrib-bibtex==2.6.3
Expand Down
75 changes: 0 additions & 75 deletions frontend/sphinx/_templates/footer.html

This file was deleted.

43 changes: 0 additions & 43 deletions frontend/sphinx/_templates/layout.html

This file was deleted.

42 changes: 26 additions & 16 deletions frontend/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ def get_file_from_conf_ini(path_to_file):
'sphinx.ext.graphviz',
'sphinx.ext.extlinks',
'widget_extension',
'sphinx_rtd_theme',
'sphinx_reredirects',
'sphinxcontrib.plantuml',
]
Expand Down Expand Up @@ -183,6 +182,7 @@ def get_file_from_conf_ini(path_to_file):

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
pygments_dark_style = "monokai"

nitpicky = True

Expand Down Expand Up @@ -232,8 +232,7 @@ def get_file_from_conf_ini(path_to_file):
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
#html_theme = 'learn_theme'
html_theme = 'sphinx_rtd_theme'
html_theme = 'furo'

if 'GEN_LEARN_SITE' in os.environ and os.environ['GEN_LEARN_SITE'] == "yes":
html_title = "learn.adacore.com"
Expand All @@ -245,24 +244,32 @@ def get_file_from_conf_ini(path_to_file):

html_theme_path = ['.'] # make sphinx search for themes in current dir

html_css_files = [
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/fontawesome.min.css",
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/solid.min.css",
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/brands.min.css",
]

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
html_theme_options = {
'logo_only': True,
'flyout_display': 'hidden',
'version_selector': False,
'prev_next_buttons_location': 'bottom',
'style_external_links': False,
'vcs_pageview_mode': '',
# 'style_nav_header_background': 'white',
# Toc options
'collapse_navigation': False,
'sticky_navigation': False,
'navigation_depth': 4,
'includehidden': True,
'titles_only': False
# furo options

# 'light_css_variables': {
# },
# 'dark_css_variables': {
# }
'sidebar_hide_name': True,
'navigation_with_keys': True,
'top_of_page_buttons': ["view", "edit"],
# 'announcement': "",
# 'footer_icons': [],

"source_repository": "https://github.com/AdaCore/learn",
"source_branch": "master",
"source_directory": "content/",
}

html_show_sphinx = False
Expand All @@ -271,6 +278,9 @@ def get_file_from_conf_ini(path_to_file):
html_logo = "img/logo.svg"
else:
html_logo = "img/logo_sandbox.svg"
html_theme_options["announcement"] = \
"<p>⚠️ This version of the website contains UNPUBLISHED contents. " \
"⚠️</p>"

html_favicon = "img/favicon.ico"

Expand Down
Binary file modified frontend/sphinx/img/favicon.ico
Binary file not shown.
Binary file modified frontend/sphinx/img/learn_meta_img.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/sphinx/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading