Skip to content

Commit

Permalink
Put ads in left-hand sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
bsweger committed Oct 10, 2024
1 parent c659e17 commit f08df45
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/_templates/ethicalads.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div id="ethical-ad-placement"></div>
17 changes: 14 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
"announcement": """
<a style=\"text-decoration: none; color: white;\"
href=\"https://reichlab.io">
<img src=\"/en/latest/_static/reichlab.png\"/> This is an announcement!
This is an announcement!
</a>
""",
"light_logo": "images/reichlab.png",
"dark_logo": "images/reichlab.png",
"light_logo": "/images/reichlab.png",
"dark_logo": "/images/reichlab.png",
"navigation_with_keys": True,
}

Expand All @@ -71,6 +71,17 @@
# Test code blocks only when explicitly specified
doctest_test_doctest_blocks = ""

# Order sidebar content, placing ads in the left sidebar
html_sidebars = {
"**": [
"searchbox.html",
"localtoc.html",
"ethicalads.html", # Put the ad below the navigation but above previous/next
"relations.html",
"sourcelink.html",
]
}


# -- Options for EPUB output
epub_show_urls = "footnote"

0 comments on commit f08df45

Please sign in to comment.