Skip to content

Commit

Permalink
Merge pull request #3291 from axsaucedo/docs_styling_update_fix
Browse files Browse the repository at this point in the history
Docs styling fix to work on readthedocs
  • Loading branch information
axsaucedo authored Jun 14, 2021
2 parents 99b7897 + 14d95f8 commit ab685c5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 24 deletions.
2 changes: 1 addition & 1 deletion doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sphinx==3.2.1
sphinx-autobuild>=0.7.1
sphinx-autodoc-typehints>=1.6.0
sphinx_material==0.0.30
sphinx_material==0.0.32
m2r2>=0.2.5
sphinxcontrib-apidoc>=0.3.0
nbsphinx>=0.4.2
Expand Down
1 change: 0 additions & 1 deletion doc/source/_static/theme_overrides.css

This file was deleted.

13 changes: 0 additions & 13 deletions doc/source/_templates/layout.html

This file was deleted.

15 changes: 6 additions & 9 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
# The full version, including alpha/beta/rc tags
# release = seldon-core.__version__


# -- General configuration ---------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down Expand Up @@ -106,9 +107,6 @@
napoleon_use_param = True
napoleon_use_rtype = False

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

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
Expand Down Expand Up @@ -181,7 +179,7 @@

if html_theme == "sphinx_material":
html_theme_options = {
"google_analytics_account": "",
"google_analytics_account": "GTM-WT76RV",
"base_url": "https://docs.seldon.io/projects/seldon-core/",
"color_primary": "indigo",
"color_accent": "teal",
Expand Down Expand Up @@ -220,16 +218,15 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]

# override default theme width
html_context = {
"css_files": ["_static/theme_overrides.css",], # override wide tables in RTD theme
}

html_extra_path = ["_extra"]

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#

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

# The default sidebars (for documents that don't match any pattern) are
# defined by theme itself. Builtin themes are using these templates by
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
Expand Down

0 comments on commit ab685c5

Please sign in to comment.