Debian Codegraph @

doc/_themes/pygments14/layout.html

raw
1 {#
2 sphinxdoc/layout.html
3 ~~~~~~~~~~~~~~~~~~~~~
4
5 Sphinx layout template for the sphinxdoc theme.
6
7 :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS.
8 :license: BSD, see LICENSE for details.
9 #}
10 {%- extends "basic/layout.html" %}
11
12 {# put the sidebar before the body #}
13 {% block sidebar1 %}{{ sidebar() }}{% endblock %}
14 {% block sidebar2 %}{% endblock %}
15
16 {% block relbar1 %}{% endblock %}
17 {% block relbar2 %}{% endblock %}
18
19 {% block extrahead %}
20 <link href='https://fonts.googleapis.com/css?family={{ theme_font|replace(' ', '+') }}:300,400,700'
21 rel='stylesheet' type='text/css'>
22 {{ super() }}
23 {%- if not embedded %}
24 <style type="text/css">
25 table.right { float: right; margin-left: 20px; }
26 table.right td { border: 1px solid #ccc; }
27 {% if pagename == 'index' %}
28 .related { display: none; }
29 {% endif %}
30 </style>
31 <script type="text/javascript">
32 // intelligent scrolling of the sidebar content
33 $(window).scroll(function() {
34 var sb = $('.sphinxsidebarwrapper');
35 var win = $(window);
36 var sbh = sb.height();
37 var offset = $('.sphinxsidebar').position()['top'];
38 var wintop = win.scrollTop();
39 var winbot = wintop + win.innerHeight();
40 var curtop = sb.position()['top'];
41 var curbot = curtop + sbh;
42 // does sidebar fit in window?
43 if (sbh < win.innerHeight()) {
44 // yes: easy case -- always keep at the top
45 sb.css('top', $u.min([$u.max([0, wintop - offset - 10]),
46 $(document).height() - sbh - 200]));
47 } else {
48 // no: only scroll if top/bottom edge of sidebar is at
49 // top/bottom edge of window
50 if (curtop > wintop && curbot > winbot) {
51 sb.css('top', $u.max([wintop - offset - 10, 0]));
52 } else if (curtop < wintop && curbot < winbot) {
53 sb.css('top', $u.min([winbot - sbh - offset - 20,
54 $(document).height() - sbh - 200]));
55 }
56 }
57 });
58 </script>
59 {%- endif %}
60 {% endblock %}
61
62 {% block header %}
63 <div class="outerwrapper">
64 <div class="pageheader">
65 <ul>
66 <li><a href="{{ pathto('index') }}">Home</a></li>
67 {% if demo_active %}
68 <li><a href="{{ pathto('demo') }}">Demo</a></li>
69 {% endif %}
70 <li><a href="{{ pathto('languages') }}">Languages</a></li>
71 <li><a href="{{ pathto('styles') }}">Styles</a></li>
72 <li><a href="{{ pathto('faq') }}">FAQ</a></li>
73 <li><a href="{{ pathto('download') }}">Get it</a></li>
74 <li><a href="{{ pathto('docs/index') }}">Docs</a></li>
75 </ul>
76 <div>
77 <a href="{{ pathto('index') }}">
78 <img src="{{ pathto('_static/logo.png', 1) }}" alt="Pygments logo" />
79 </a>
80 </div>
81 </div>
82 <div class="flexwrapper">
83 {% endblock %}
84
85 {% block footer %}
86 </div> {# closes "flexwrapper" div #}
87 <div class="footer" role="contentinfo">
88 &copy; Copyright 2006-2025, Georg Brandl and Pygments contributors.
89 Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> {{
90 sphinx_version }}. <br/>
91 Pygments logo created by <a href="https://joelunger.com">Joel Unger</a>.
92 Backgrounds from <a href="https://subtlepatterns.com">subtlepatterns.com</a>.
93 </div>
94 </div> {# closes "outerwrapper" div #}
95 {% endblock %}
96
97 {% block sidebarrel %}
98 {% endblock %}
99
100 {% block sidebarsourcelink %}
101 {% endblock %}