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.