Skip to content

Commit 21c84bd

Browse files
Merge pull request #178 from plotly/apidoc_theme
Apidoc theme
2 parents fdb1c4c + 4e08900 commit 21c84bd

File tree

4 files changed

+25
-8
lines changed

4 files changed

+25
-8
lines changed

apidoc/_static/logo.png

-1.54 KB
Loading

apidoc/_static/plotly-style.css

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.navbar-default {
2+
background-color: #00004f;
3+
}
4+
.navbar {
5+
min-height: 75px;
6+
}
7+
.navbar-brand {
8+
font-family: "Open Sans", sans-serif;
9+
padding: 10px 10px;
10+
}
11+
.body {
12+
font-family: "Open Sans", sans-serif;
13+
}

apidoc/conf.py

+11-8
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
#
1515
import os
1616
import sys
17-
17+
import sphinx_bootstrap_theme
1818
# sys.path.insert(0, os.path.abspath("../packages/python/plotly"))
1919

2020

2121
# -- Project information -----------------------------------------------------
2222

23-
project = "plotly"
23+
project = ""
2424
copyright = "2019, plotly team"
2525
author = "plotly team"
2626

@@ -87,18 +87,18 @@
8787
# The theme to use for HTML and HTML Help pages. See the documentation for
8888
# a list of builtin themes.
8989
#
90-
html_theme = "alabaster"
90+
html_theme = "bootstrap"
91+
html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
9192

93+
html_logo='logo.png'
9294
# Theme options are theme-specific and customize the look and feel of a theme
9395
# further. For a list of options available for each theme, see the
9496
# documentation.
9597
#
9698
html_theme_options = {
97-
#'nosidebar': True,
98-
'analytics_id':'UA-39373211-1',
99-
'logo':'logo.png',
100-
'page_width': '70%',
101-
'sidebar_width':'20%'
99+
'analytics_id':'UA-39373211-1', # not supported by this theme
100+
'bootswatch_theme': "flatly",
101+
'source_link_position': "no"
102102
}
103103

104104
# Add any paths that contain custom static files (such as style sheets) here,
@@ -203,3 +203,6 @@
203203

204204
# If true, `todo` and `todoList` produce output, else they produce nothing.
205205
todo_include_todos = True
206+
207+
def setup(app):
208+
app.add_stylesheet("plotly-style.css") # also can be a full URL

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ networkx
1818
squarify
1919
scikit-image
2020
sphinx
21+
sphinx_bootstrap_theme
2122
recommonmark
2223
pathlib
2324
python-frontmatter

0 commit comments

Comments
 (0)