Skip to content

Commit 9afaaf0

Browse files
authored
Merge pull request #1139 from martinRenou/use_pydata_sphinx_theme
Use pydata-sphinx-theme
2 parents 9b48e12 + 0bf3b58 commit 9afaaf0

File tree

5 files changed

+9
-294
lines changed

5 files changed

+9
-294
lines changed

docs/doc-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
sphinx_copybutton
2-
sphinx_rtd_theme
2+
pydata-sphinx-theme

docs/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ channels:
44
- conda
55
dependencies:
66
- sphinx
7-
- sphinx_rtd_theme
7+
- pydata-sphinx-theme

docs/source/conf.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import sys
21
import os
3-
import shlex
4-
import sphinx_rtd_theme
52

63
# Add dev disclaimer.
74
_release = {}
@@ -17,17 +14,16 @@
1714

1815
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
1916

20-
html_theme = "sphinx_rtd_theme"
21-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
22-
html_theme_options = {
23-
# Toc options
24-
'sticky_navigation': False,
25-
'navigation_depth': 2,
26-
}
17+
html_theme = "pydata_sphinx_theme"
18+
html_theme_options = dict(
19+
github_url='https://github.com/voila-dashboards/voila'
20+
)
21+
2722

2823
def setup(app):
2924
app.add_css_file("main_stylesheet.css")
3025

26+
3127
extensions = [
3228
'sphinx.ext.autodoc',
3329
'sphinx.ext.intersphinx',
@@ -44,7 +40,7 @@ def setup(app):
4440
release = _release['__version__']
4541
language = None
4642

47-
html_logo = 'jupyter-white.svg'
43+
html_logo = 'voila-logo.svg'
4844

4945
exclude_patterns = []
5046
highlight_language = 'python'

docs/source/jupyter-white.svg

Lines changed: 0 additions & 194 deletions
This file was deleted.

docs/source/voila-square.svg

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)