Skip to content

Commit

Permalink
Add sphinx_immaterial theme
Browse files Browse the repository at this point in the history
  • Loading branch information
bruhnild committed Dec 6, 2024
1 parent 7cc0cd9 commit cbc8d49
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 8 deletions.
7 changes: 5 additions & 2 deletions docs/requirements.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
-c ../requirements.txt

sphinx-rtd-theme
sphinx-autobuild
sphinx-autobuild
sphinx_immaterial
sphinx>=4.0.0
sphinx-autobuild
sphinx-intl
Binary file added docs/source/_static/favicon.ico
Binary file not shown.
Binary file added docs/source/_static/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
101 changes: 95 additions & 6 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,108 @@

extensions = [
"sphinx.ext.todo",
"sphinx_rtd_theme",
"sphinx_immaterial"
]

templates_path = ["_templates"]
exclude_patterns = []
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# The suffix of source filenames.
source_suffix = '.rst'

# The master toctree document.
master_doc = 'index'

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = "sphinx_rtd_theme"
exclude_patterns = ['_build']
pygments_style = 'sphinx'

html_theme = "sphinx_immaterial"
html_favicon = "_static/favicon.ico"
html_static_path = ["_static"]
html_logo = "_static/logo.webp"
html_logo = "_static/logo.png"

# Material theme options (see theme.conf for more information)
html_theme_options = {
"logo_only": True,
"icon": {
"repo": "fontawesome/brands/github",
"edit": "material/file-edit-outline",
},
"site_url": "https://demo-terravisu-territoires.makina-corpus.com/",
"repo_url": "https://github.com/Terralego/TerraVisu/",
"repo_name": "TerraVisu",
"edit_uri": "blob/main/docs",
"globaltoc_collapse": True,
"features": [
"navigation.expand",
# "navigation.tabs",
# "toc.integrate",
"navigation.sections",
# "navigation.instant",
# "header.autohide",
"navigation.top",
# "navigation.tracking",
# "search.highlight",
"search.share",
"toc.follow",
"toc.sticky",
"content.tabs.link",
"announce.dismiss",
],
"palette": [
{
"media": "(prefers-color-scheme: light)",
"scheme": "default",
"primary": "blue",
"accent": "light-blue",
"toggle": {
"icon": "material/weather-night",
"name": "Switch to dark mode",
},
},
{
"media": "(prefers-color-scheme: dark)",
"scheme": "slate",
"primary": "red",
"accent": "deep-orange",
"toggle": {
"icon": "material/weather-sunny",
"name": "Switch to light mode",
},
},
],
"social": [
{
"icon": "fontawesome/brands/github",
"link": "https://github.com/Terralego/TerraVisu/"
},
{
"icon": "fontawesome/brands/linkedin",
"link": "https://www.linkedin.com/company/makina-corpus",
},
],
"toc_title_is_page_title": True,
}

# Output file base name for HTML help builder.
htmlhelp_basename = 'TerraVisudoc'

latex_documents = [
('index', 'TerraVisu.tex', 'TerraVisu Documentation',
'Makina Corpus Territoires', 'manual'),
]

man_pages = [
('index', 'terravisu', 'TerraVisu Documentation',
['Makina Corpus Territoires'], 1)
]
html_sidebars = {
"**": ["logo-text.html", "globaltoc.html", "localtoc.html", "searchbox.html"]
}
texinfo_documents = [
('index', 'TerraVisu', 'TerraVisu Documentation',
'Makina Corpus Territoires', 'TerraVisu', 'One line description of project.',
'Miscellaneous'),
]
4 changes: 4 additions & 0 deletions docs/source/others/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ Changelog

- Update to python 3.12

**Documentation:**

- Add sphinx_immaterial theme


2024.06.0 (2024-06-21)
---------------------------
Expand Down

0 comments on commit cbc8d49

Please sign in to comment.