mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Summary: Fixes https://github.com/pytorch/pytorch/issues/70185 The extraheader block in docs/source/_templates/layout.html overrides the one from the pytorch theme. The theme block adds Google Analytics, so they were missing from the `master` documentation. This came up in PR pytorch/pytorch.github.io#899. brianjo Pull Request resolved: https://github.com/pytorch/pytorch/pull/70187 Reviewed By: bdhirsh Differential Revision: D33248466 Pulled By: malfet fbshipit-source-id: b314916a3f0789b6617cf9ba6bd938bf5ca27242
43 lines
1.2 KiB
HTML
43 lines
1.2 KiB
HTML
{% extends "!layout.html" %}
|
|
<link rel="canonical" href="{{ theme_canonical_url }}{{ pagename }}.html" />
|
|
|
|
{% block extrahead %}
|
|
{% if release == "master" %}
|
|
<!--
|
|
Search engines should not index the master version of documentation.
|
|
Stable documentation are built without release == 'master'.
|
|
-->
|
|
<meta name="robots" content="noindex">
|
|
{% endif %}
|
|
{{ super() }}
|
|
{% endblock %}
|
|
|
|
{% block menu %}
|
|
{% if release == "master" %}
|
|
<div>
|
|
<a style="color:#F05732" href="{{ theme_canonical_url }}{{ pagename }}.html">
|
|
You are viewing unstable developer preview docs.
|
|
Click here to view docs for latest stable release.
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
{{ super() }}
|
|
{% endblock %}
|
|
|
|
{% block sidebartitle %}
|
|
<div class="version">
|
|
<a href='https://pytorch.org/docs/versions.html'>{{ version }} ▼</a>
|
|
</div>
|
|
{% include "searchbox.html" %}
|
|
{% endblock %}
|
|
|
|
|
|
{% block footer %}
|
|
{{ super() }}
|
|
<script script type="text/javascript">
|
|
var collapsedSections = ['Notes', 'Language Bindings', 'Libraries', 'Community'];
|
|
</script>
|
|
|
|
<img height="1" width="1" style="border-style:none;" alt="" src="https://www.googleadservices.com/pagead/conversion/795629140/?label=txkmCPmdtosBENSssfsC&guid=ON&script=0"/>
|
|
{% endblock %}
|