Add version dropdown to the layout html (#873)
Summary:
Pull Request resolved: https://github.com/pytorch/executorch/pull/873
Add the version dropdown to the layout html
Reviewed By: dbort
Differential Revision: D50238907
fbshipit-source-id: 6ffdacc8149d387275344973dd25643abc64c1d0
diff --git a/docs/source/_templates/layout.html b/docs/source/_templates/layout.html
index d35d007..36e12ad 100644
--- a/docs/source/_templates/layout.html
+++ b/docs/source/_templates/layout.html
@@ -22,7 +22,10 @@
{% block sidebartitle %}
-{% include "searchbox.html" %}
+ <div class="version">
+ <a href='https://pytorch.org/executorch/versions.html'>{{ version }} ▼</a>
+ </div>
+ {% include "searchbox.html" %}
{% endblock %}
{%- block content %}