Skip to content

Commit

Permalink
feat(doc): change theme of the GeoNature documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize committed Nov 18, 2024
1 parent 5584b71 commit fffbcef
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 25 deletions.
30 changes: 15 additions & 15 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
## AUTOAPI
extensions.append("autoapi.extension")
autoapi_dirs = ["../backend/geonature", "../backend/dependencies"]
autoapi_ignore = ["*migrations*", "*tests*"]
autoapi_ignore = ["*migrations*", "*tests*", "*celery_app.py"]
autoapi_add_toctree_entry = False


Expand Down Expand Up @@ -97,25 +97,25 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "sphinx_rtd_theme"
html_theme = "sphinx_book_theme"
html_logo = "./images/LogoGeonature.jpg"
# 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 = {
"canonical_url": "",
"logo_only": False,
"display_version": True,
"prev_next_buttons_location": "bottom",
"style_external_links": False,
"style_nav_header_background": "white",
# Toc options
"collapse_navigation": True,
"sticky_navigation": True,
"navigation_depth": 4,
"includehidden": True,
"titles_only": False,
# "canonical_url": "",
# "logo_only": False,
# "display_version": True,
# "prev_next_buttons_location": "bottom",
# "style_external_links": False,
# "style_nav_header_background": "white",
# # Toc options
# "collapse_navigation": True,
# "sticky_navigation": True,
"navigation_depth": 3,
# "includehidden": True,
# "titles_only": False,
}

# Add any paths that contain custom static files (such as style sheets) here,
Expand All @@ -128,7 +128,7 @@
#
# This is required for the alabaster theme
# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
html_sidebars = {"**": ["globaltoc.html", "relations.html", "sourcelink.html", "searchbox.html"]}
# html_sidebars = {"**": ["globaltoc.html", "relations.html", "sourcelink.html", "searchbox.html"]}
# html_sidebars = {
# '**': [
# 'relations.html', # needs 'show_related': True theme option to display
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sphinx
sphinx_rtd_theme
sphinx-book-theme
myst-parser
sphinx-autoapi
31 changes: 22 additions & 9 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,27 @@
#
# pip-compile requirements.in
#
accessible-pygments==0.0.5
# via pydata-sphinx-theme
alabaster==0.7.16
# via sphinx
astroid==3.3.5
# via sphinx-autoapi
babel==2.16.0
# via sphinx
# via
# pydata-sphinx-theme
# sphinx
beautifulsoup4==4.12.3
# via pydata-sphinx-theme
certifi==2024.8.30
# via requests
charset-normalizer==3.4.0
# via requests
docutils==0.21.2
# via
# myst-parser
# pydata-sphinx-theme
# sphinx
# sphinx-rtd-theme
idna==3.10
# via requests
imagesize==1.4.1
Expand All @@ -44,8 +50,13 @@ myst-parser==3.0.1
# via -r requirements.in
packaging==24.1
# via sphinx
pydata-sphinx-theme==0.16.0
# via sphinx-book-theme
pygments==2.18.0
# via sphinx
# via
# accessible-pygments
# pydata-sphinx-theme
# sphinx
pyyaml==6.0.2
# via
# myst-parser
Expand All @@ -54,25 +65,25 @@ requests==2.32.3
# via sphinx
snowballstemmer==2.2.0
# via sphinx
soupsieve==2.6
# via beautifulsoup4
sphinx==7.4.7
# via
# -r requirements.in
# myst-parser
# pydata-sphinx-theme
# sphinx-autoapi
# sphinx-rtd-theme
# sphinxcontrib-jquery
# sphinx-book-theme
sphinx-autoapi==3.3.3
# via -r requirements.in
sphinx-rtd-theme==3.0.1
sphinx-book-theme==1.1.3
# via -r requirements.in
sphinxcontrib-applehelp==2.0.0
# via sphinx
sphinxcontrib-devhelp==2.0.0
# via sphinx
sphinxcontrib-htmlhelp==2.1.0
# via sphinx
sphinxcontrib-jquery==4.1
# via sphinx-rtd-theme
sphinxcontrib-jsmath==1.0.1
# via sphinx
sphinxcontrib-qthelp==2.0.0
Expand All @@ -84,7 +95,9 @@ stdlib-list==0.11.0
tomli==2.0.2
# via sphinx
typing-extensions==4.12.2
# via astroid
# via
# astroid
# pydata-sphinx-theme
urllib3==2.2.3
# via requests
zipp==3.20.2
Expand Down

0 comments on commit fffbcef

Please sign in to comment.