Changeset View
Changeset View
Standalone View
Standalone View
docs/_templates/layout.html
Show All 10 Lines | (function() { | ||||
_paq.push(['setSiteId', '59']); | _paq.push(['setSiteId', '59']); | ||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; | var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; | ||||
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); | g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); | ||||
})(); | })(); | ||||
</script> | </script> | ||||
<!-- End Matomo Code --> | <!-- End Matomo Code --> | ||||
{% endblock %} | {% endblock %} | ||||
{# copied from sphinx_rtd_theme/layout.html, with the logo link pointing to General (landing page) #} | |||||
{%- block sidebartitle %} | |||||
{%- if logo and theme_logo_only %} | |||||
<a href="/general/"> | |||||
{%- else %} | |||||
<a href="/general/" class="icon icon-home"> Software Heritage - Documentation | |||||
{%- endif %} | |||||
{%- if logo %} | |||||
{#- Not strictly valid HTML, but it's the only way to display/scale | |||||
it properly, without weird scripting or heaps of work | |||||
#} | |||||
{%- if sphinx_version_info < (4, 0) -%} | |||||
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="{{ _('Logo') }}"/> | |||||
{%- else %} | |||||
<img src="{{ logo_url }}" class="logo" alt="{{ _('Logo') }}"/> | |||||
{%- endif %} | |||||
{%- endif %} | |||||
</a> | |||||
{%- if theme_display_version %} | |||||
{%- set nav_version = version %} | |||||
{%- if READTHEDOCS and current_version %} | |||||
{%- set nav_version = current_version %} | |||||
{%- endif %} | |||||
{%- if nav_version %} | |||||
<div class="version"> | |||||
{{ nav_version }} | |||||
</div> | |||||
{%- endif %} | |||||
{%- endif %} | |||||
{%- include "searchbox.html" %} | |||||
{%- endblock %} | |||||
{# copied from sphinx_rtd_theme/layout.html, with the extra System Administration link #} | {# copied from sphinx_rtd_theme/layout.html, with the extra System Administration & "user documentation" links #} | ||||
{%- block menu %} | {%- block menu %} | ||||
{%- set toctree = toctree(maxdepth=theme_navigation_depth|int, | {%- set toctree = toctree(maxdepth=theme_navigation_depth|int, | ||||
collapse=theme_collapse_navigation|tobool, | collapse=theme_collapse_navigation|tobool, | ||||
includehidden=theme_includehidden|tobool, | includehidden=theme_includehidden|tobool, | ||||
titles_only=theme_titles_only|tobool) %} | titles_only=theme_titles_only|tobool) %} | ||||
{%- if toctree %} | {%- if toctree %} | ||||
{{ toctree }} | {{ toctree }} | ||||
{%- else %} | {%- else %} | ||||
<!-- Local TOC --> | <!-- Local TOC --> | ||||
<div class="local-toc">{{ toc }}</div> | <div class="local-toc">{{ toc }}</div> | ||||
{%- endif %} | {%- endif %} | ||||
<hr /> | <hr /> | ||||
<ul> | <ul> | ||||
<li class="toctree-l1"><a href="/user/">User Documentation</a></li> | |||||
<li class="toctree-l1"><a href="/sysadm/">System Administration</a></li> | <li class="toctree-l1"><a href="/sysadm/">System Administration</a></li> | ||||
</ul> | </ul> | ||||
{%- endblock %} | {%- endblock %} |