diff options
author | Richard Zou <zou3519@users.noreply.github.com> | 2018-04-10 14:53:04 -0400 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2018-04-10 14:53:04 -0400 |
commit | 04c215b4454aa5816a15f60567800d65a8351d33 (patch) | |
tree | cd103621d6464c090c818095d2447cda25ae268f /docs/source/_templates | |
parent | c3f7e5ff5576084c160389f7612cacffb674805d (diff) | |
download | pytorch-04c215b4454aa5816a15f60567800d65a8351d33.tar.gz pytorch-04c215b4454aa5816a15f60567800d65a8351d33.tar.bz2 pytorch-04c215b4454aa5816a15f60567800d65a8351d33.zip |
Add link in docs menu to stable docs (#6475)
Part of #5738. Warns users that they're not viewing the latest stable
release docs.
We should remember to delete this when cutting out 0.4.0 release docs. (we'd just delete the div in pytorch.github.io)
Diffstat (limited to 'docs/source/_templates')
-rw-r--r-- | docs/source/_templates/layout.html | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/source/_templates/layout.html b/docs/source/_templates/layout.html index 41dddc4d9a..16944b9a4b 100644 --- a/docs/source/_templates/layout.html +++ b/docs/source/_templates/layout.html @@ -1,5 +1,15 @@ {% extends "!layout.html" %} +{% block menu %} +<div> + <a style="color:#F05732" href=http://pytorch.org/docs/0.3.1/> + You are viewing unstable developer preview docs. + Click here to view docs for latest stable release. + </a> +</div> +{{ super() }} +{% endblock %} + {% block footer %} {{ super() }} <script> @@ -12,4 +22,4 @@ ga('send', 'pageview'); </script> -{% endblock %}
\ No newline at end of file +{% endblock %} |