Add message on instaloader.rtfd.io that doc moved

This commit is contained in:
Alexander Graf
2018-03-13 16:58:00 +01:00
parent 58a80c349d
commit 92114f9018
2 changed files with 7 additions and 1 deletions

View File

@@ -191,7 +191,10 @@ html_static_path = ['_static']
# Custom sidebar templates, maps document names to template names.
#
html_sidebars = {'**': ["caption.html", "globaltoc.html", "relations.html", "links.html"] }
if not os.environ.get("READTHEDOCS"):
html_sidebars = {'**': ["caption.html", "globaltoc.html", "relations.html", "links.html"] }
else:
html_sidebars = {'**': ["caption.html", "rtdmessage.html", "globaltoc.html", "relations.html", "links.html"] }
# Additional templates that should be rendered to pages, maps page names to
# template names.