Skip to content

Commit

Permalink
fix: restore rtd theme
Browse files Browse the repository at this point in the history
and fix the table with the custom css

Signed-off-by: EstherLerouzic <[email protected]>
Change-Id: Ib16c08451aa3faaa06ea85c2b9359fc4e7a015da
  • Loading branch information
EstherLerouzic committed Feb 13, 2025
1 parent 7ce6650 commit 2d0c721
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
4 changes: 4 additions & 0 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

.wy-table-responsive table td, .wy-table-responsive table th {
white-space: normal;
}
21 changes: 19 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#
import os
import sys

sys.path.insert(0, os.path.abspath('../'))

# -- General configuration ------------------------------------------------
Expand All @@ -36,6 +37,7 @@
'sphinxcontrib.bibtex',
'sphinx.ext.graphviz',
'myst_parser',
'sphinx_rtd_theme',
]

myst_enable_extensions = [
Expand Down Expand Up @@ -84,11 +86,22 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'alabaster'
html_theme = "sphinx_rtd_theme"
html_theme_options = {
'logo': 'images/GNPy-logo.png',
'logo_name': False,
'prev_next_buttons_location': 'bottom',
# Toc options
'collapse_navigation': True,
'sticky_navigation': True,
'navigation_depth': 4,
'includehidden': True,
'titles_only': False
}
html_theme_options = {
'navigation_depth': 4,
}
html_favicon = 'images/GNPy-logo.png'

html_logo = 'images/GNPy-logo.png'

Expand All @@ -101,7 +114,10 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = []
html_static_path = ['_static']
html_css_files = [
'custom.css', # Inclure votre fichier CSS personnalisé
]

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
Expand All @@ -118,6 +134,7 @@
]
}

html_secnum_depth = 4

# -- Options for HTMLHelp output ------------------------------------------

Expand Down
5 changes: 3 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ tests =
docs =
alabaster>=0.7.12,<1
docutils>=0.17.1,<1
myst-parser>=0.16.1,<1
myst-parser>=4.0.1,<5
Pygments>=2.11.2,<3
rstcheck
Sphinx>=5.3.0,<6
Sphinx>=8.1.3,<9
sphinxcontrib-bibtex>=2.4.1,<3
sphinx_rtd_theme>=3.0.2,<4

0 comments on commit 2d0c721

Please sign in to comment.