summaryrefslogtreecommitdiff
path: root/docs/_theme/djangodocs/layout.html
diff options
context:
space:
mode:
authorRamiro Morales <ramiro@users.noreply.github.com>2018-01-20 14:38:48 -0300
committerTim Graham <timograham@gmail.com>2018-01-20 12:38:48 -0500
commit37c17846ad6b02c6dca72e8087a279cca04a0c27 (patch)
tree03c6dc058936e14daee338dca6413915dcad8f93 /docs/_theme/djangodocs/layout.html
parenta22ef3bb379a8783d0a2c3d7e1de531dce220a75 (diff)
Fixed #28343 -- Add an OS chooser for docs command line examples.
Diffstat (limited to 'docs/_theme/djangodocs/layout.html')
-rw-r--r--docs/_theme/djangodocs/layout.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/_theme/djangodocs/layout.html b/docs/_theme/djangodocs/layout.html
index f90030852c..acf83a47cd 100644
--- a/docs/_theme/djangodocs/layout.html
+++ b/docs/_theme/djangodocs/layout.html
@@ -53,8 +53,27 @@
});
});
})(jQuery);
+{%- if include_console_assets -%}
+(function($) {
+ $(document).ready(function() {
+ $(".c-tab-unix").on("click", function() {
+ $("section.c-content-unix").show();
+ $("section.c-content-win").hide();
+ $(".c-tab-unix").prop("checked", true);
+ });
+ $(".c-tab-win").on("click", function() {
+ $("section.c-content-win").show();
+ $("section.c-content-unix").hide();
+ $(".c-tab-win").prop("checked", true);
+ });
+ });
+})(jQuery);
+{%- endif -%}
</script>
{% endif %}
+{%- if include_console_assets -%}
+<link rel="stylesheet" href="{{ pathto('_static/console-tabs.css', 1) }}" type="text/css" />
+{%- endif -%}
{% endblock %}
{% block document %}