diff --git a/apidoc/_static/logo.png b/apidoc/_static/logo.png index 10db04a63..c2052c894 100644 Binary files a/apidoc/_static/logo.png and b/apidoc/_static/logo.png differ diff --git a/apidoc/_static/plotly-style.css b/apidoc/_static/plotly-style.css new file mode 100644 index 000000000..2163d78c9 --- /dev/null +++ b/apidoc/_static/plotly-style.css @@ -0,0 +1,13 @@ +.navbar-default { + background-color: #00004f; +} +.navbar { + min-height: 75px; +} +.navbar-brand { + font-family: "Open Sans", sans-serif; + padding: 10px 10px; +} +.body { + font-family: "Open Sans", sans-serif; +} diff --git a/apidoc/conf.py b/apidoc/conf.py index 36f64cce9..cdfc9f831 100644 --- a/apidoc/conf.py +++ b/apidoc/conf.py @@ -14,13 +14,13 @@ # import os import sys - +import sphinx_bootstrap_theme # sys.path.insert(0, os.path.abspath("../packages/python/plotly")) # -- Project information ----------------------------------------------------- -project = "plotly" +project = "" copyright = "2019, plotly team" author = "plotly team" @@ -87,18 +87,18 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = "alabaster" +html_theme = "bootstrap" +html_theme_path = sphinx_bootstrap_theme.get_html_theme_path() +html_logo='logo.png' # 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 = { - #'nosidebar': True, - 'analytics_id':'UA-39373211-1', - 'logo':'logo.png', - 'page_width': '70%', - 'sidebar_width':'20%' + 'analytics_id':'UA-39373211-1', # not supported by this theme + 'bootswatch_theme': "flatly", + 'source_link_position': "no" } # Add any paths that contain custom static files (such as style sheets) here, @@ -203,3 +203,6 @@ # If true, `todo` and `todoList` produce output, else they produce nothing. todo_include_todos = True + +def setup(app): + app.add_stylesheet("plotly-style.css") # also can be a full URL diff --git a/requirements.txt b/requirements.txt index 12b19a6c9..51b9284c4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,6 +18,7 @@ networkx squarify scikit-image sphinx +sphinx_bootstrap_theme recommonmark pathlib python-frontmatter