mirror of
https://github.com/django/django.git
synced 2025-08-31 07:47:37 +00:00
Fixed #28343 -- Add an OS chooser for docs command line examples.
This commit is contained in:
parent
a22ef3bb37
commit
37c17846ad
29 changed files with 1399 additions and 90 deletions
19
docs/_theme/djangodocs/layout.html
vendored
19
docs/_theme/djangodocs/layout.html
vendored
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue