Skip to content

Commit 05d09b5

Browse files
committed
Update doc config again, change theme so it plays nicer with rtd
1 parent 49c4d2a commit 05d09b5

File tree

3 files changed

+35
-13
lines changed

3 files changed

+35
-13
lines changed

doc/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ channels:
44
- conda-forge
55
dependencies:
66
- pip
7-
- sphinx_py3doc_enhanced_theme
7+
- pydata-sphinx-theme
88
- docutils=0.20.1 # https://github.com/vidartf/nbsphinx-link/issues/22
99
- m2r2
1010
- nbsphinx
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*default is 60em*/
2+
.bd-main .bd-content .bd-article-container {
3+
max-width: 120em;
4+
}
5+
6+
/* default is 88rem*/
7+
.bd-page-width {
8+
max-width: 120em;
9+
}
10+
11+
/* Larger header/navbar for Fox logo*/
12+
.navbar-brand img{
13+
height: auto;
14+
}
15+
16+
.navbar {
17+
height: 6em;
18+
}

doc/manual/source/conf.py

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import sys, os
66
import time
7-
import sphinx_py3doc_enhanced_theme
87

98
# Requires sphinx >= 0.6
109

@@ -105,18 +104,22 @@
105104
# The theme to use for HTML and HTML Help pages. See the documentation for
106105
# a list of builtin themes.
107106
#
108-
html_theme = 'sphinx_py3doc_enhanced_theme'
109-
html_theme_path = [sphinx_py3doc_enhanced_theme.get_html_theme_path()]
107+
html_theme = "pydata_sphinx_theme"
110108

111-
# Theme options are theme-specific and customize the look and feel of a theme
112-
# further. For a list of options available for each theme, see the
113-
# documentation.
114-
#
109+
# Not sure what all these actually do
115110
html_theme_options = {
116-
'collapsiblesidebar': 'true',
117-
'navigation_with_keys': 'true',
118-
'body_min_width': '40%',
119-
'body_max_width': '800px',
111+
"show_nav_level": 2,
112+
"navigation_depth": 2,
113+
"navbar_align": "left",
114+
# "primary_sidebar_end": ["indices.html", "sidebar-ethical-ads.html"]
115+
}
116+
117+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_sidebars
118+
html_sidebars = {
119+
"**": ["globaltoc.html", "sidebar-nav-bs"],
120+
# "**": ["localtoc.html"],
121+
# "**": ["sidebar-nav-bs"],
122+
# "<page_pattern>": ["index", "manual-intro", "tutorials", "manual"]
120123
}
121124

122125
# Add any paths that contain custom themes here, relative to this directory.
@@ -141,7 +144,8 @@
141144
# Add any paths that contain custom static files (such as style sheets) here,
142145
# relative to this directory. They are copied after the builtin static files,
143146
# so a file named "default.css" will overwrite the builtin "default.css".
144-
# html_static_path = ['_static']
147+
html_static_path = ['_static']
148+
html_css_files = ['css/custom.css']
145149

146150
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
147151
# using the given strftime format.

0 commit comments

Comments
 (0)