From 92114f9018e221af2a8cac2698841aef383f4af4 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Tue, 13 Mar 2018 16:58:00 +0100 Subject: [PATCH] Add message on instaloader.rtfd.io that doc moved --- docs/_templates/rtdmessage.html | 3 +++ docs/conf.py | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 docs/_templates/rtdmessage.html diff --git a/docs/_templates/rtdmessage.html b/docs/_templates/rtdmessage.html new file mode 100644 index 0000000..6287a02 --- /dev/null +++ b/docs/_templates/rtdmessage.html @@ -0,0 +1,3 @@ +

New Documentation URL

+

Instaloader's Documentation has been moved to + https://instaloader.github.io.

\ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 3995fb2..e22dd17 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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.