Skip to content

Commit b30a250

Browse files
committed
Move RTD ads to the sidebar
1 parent f93501c commit b30a250

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div id="ethical-ad-placement"></div>

doc/OnlineDocs/conf.py

+9
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,15 @@
183183
#
184184
html_theme_options = {'navigation_depth': 6, 'titles_only': True}
185185

186+
html_sidebars = {
187+
"**": [
188+
"localtoc.html",
189+
"relations.html",
190+
"ethicalads.html", # Put the ad below the navigation and previous/next
191+
"sourcelink.html",
192+
"searchbox.html",
193+
]
194+
}
186195
# Add any paths that contain custom static files (such as style sheets) here,
187196
# relative to this directory. They are copied after the builtin static files,
188197
# so a file named "default.css" will overwrite the builtin "default.css".

0 commit comments

Comments
 (0)