Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try with material theme #99

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sphinx
sphinx_glpi_theme
sphinx-material
sphinx-toolbox
20 changes: 16 additions & 4 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# serve to show the default.

import datetime
import sphinx_glpi_theme
#import sphinx_glpi_theme

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -130,17 +130,26 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'glpi'
html_theme = 'sphinx_material'

# 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 = {}
html_theme_options = {
'nav_title': '',

'color_primary': 'blue',
'color_accent': 'light-blue',
'globaltoc_depth': 1,

'repo_url': 'https://github.com/pluginsGLPI/doc/',
'repo_name': 'pluginsGLPI/doc',
}

# Add any paths that contain custom themes here, relative to this directory.
# html_theme_path = []
html_theme_path = sphinx_glpi_theme.get_html_themes_path()
#html_theme_path = sphinx_glpi_theme.get_html_themes_path()

# The name for this set of Sphinx documents.
# "<project> v<release> documentation" by default.
Expand Down Expand Up @@ -190,6 +199,9 @@
# Custom sidebar templates, maps document names to template names.
#
# html_sidebars = {}
html_sidebars = {
"**": ["logo-text.html", "globaltoc.html", "localtoc.html", "searchbox.html"]
}

# Additional templates that should be rendered to pages, maps page names to
# template names.
Expand Down