Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit21c84bd

Browse files
Merge pull request#178 from plotly/apidoc_theme
Apidoc theme
2 parentsfdb1c4c +4e08900 commit21c84bd

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

Lines changed: 13 additions & 0 deletions
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:10px10px;
10+
}
11+
.body {
12+
font-family:"Open Sans", sans-serif;
13+
}

‎apidoc/conf.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
#
1515
importos
1616
importsys
17-
17+
importsphinx_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+
defsetup(app):
208+
app.add_stylesheet("plotly-style.css")# also can be a full URL

‎requirements.txt

Lines changed: 1 addition & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp