Debian Codegraph @

docs/templates/page.html

raw
1 {% extends "!page.html" %}
2
3 {% set google_analytics_id = 'UA-37270821-1' %}
4 {% set disqus_shortname = 'bedtoolsdocs' %}
5
6 {# note, currently these must be set... #}
7 {% set github_base_account = 'arq5x' %}
8 {% set github_project = 'bedtools2' %}
9
10 {##################################################}
11 {# for plone-derived "edit me" & Google analytics #}
12 {##################################################}
13
14 {% block footer %}
15 {{ super() }}
16
17 <!-- {# Add plone-derived 'edit me' sticky note #}
18 <div id="editor-trap">
19 <h3>Edit and improve this document!</h3>
20
21 <p>
22 This file can be edited directly through the Web. Anyone can
23 update and fix errors in this document with few clicks --
24 no downloads needed.
25 <p>
26
27 <ol>
28
29 <li>
30 Go to
31 <a href="https://github.com/{{ github_base_account }}/{{ github_project }}/blob/master/docs/{{ pagename }}.rst">
32 {{ title }}
33 </a> on GitHub.
34 </li>
35
36 <li>
37 <b>Edit</b> files using GitHub's text editor in your web browser (see the 'Edit' tab on the top right of the file)
38 </li>
39
40 <li>
41 Fill in the <b>Commit message</b> text box at the bottom of the page describing <i>why</i>
42 you made the changes. Press the <b>Propose file change</b> button next to it when done.
43 </li>
44
45 <li>
46 Then click <b>Send a pull request</b>.
47 </li>
48
49 <li>
50 Your changes are now queued for review under the project's <a href="https://github.com/{{ github_base_account }}/{{ github_project }}/pulls">Pull requests</a> tab on GitHub!
51 </li>
52 </ol>
53
54 <p>
55 For an introduction to the documentation format please see <a href="http://docutils.sourceforge.net/docs/user/rst/quickstart.html">the reST primer</a>.
56 </p>
57
58 </div> -->
59
60 <script type="text/javascript">
61
62 var _gaq = _gaq || [];
63 _gaq.push(['_setAccount', {{ google_analytics_id }}]);
64 _gaq.push(['_trackPageview']);
65
66 (function() {
67 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
68 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
69 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
70 })();
71
72 </script>
73
74 {% endblock %}
75
76 {#########################}
77 {# for disqus commenting #}
78 {#########################}
79
80 {% macro comments() %}
81
82 <div id="disqus_thread"></div>
83 <script type="text/javascript">
84 /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
85 var disqus_shortname = '{{ disqus_shortname }}'; // required: replace example with your forum shortname
86
87 /* * * DON'T EDIT BELOW THIS LINE * * */
88 (function() {
89 var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
90 dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
91 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
92 })();
93 </script>
94 <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
95 <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
96
97 {% endmacro %}
98
99 {% block extrahead %}
100
101 {% if github_base_account %}
102 <script src="{{ pathto('_static/labibi.js', 1) }}"></script>
103 {% else %}
104 <style type="text/css">
105 <!-- github-based editing disabled; set github_base_account
106 and github_project -->
107 #editor-trap.toggled {
108 display: none;
109 }
110 </style>
111 {% endif %}
112
113 {% if google_analytics_id %}
114 <script type="text/javascript">
115 var _gaq = _gaq || [];
116 _gaq.push(['_setAccount', '']);
117 _gaq.push(['_trackPageview']);
118
119 (function() {
120 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
121 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
122 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
123 })();
124 </script>
125 {% else %}
126 <!-- Google Analytics JS is disabled; set google_analytics_id -->
127 {% endif %}
128 {% endblock %}
129
130 {%- block body %}
131 {{ super() }}
132
133 {% if disqus_shortname %}
134 {{ comments() }}
135 {% else %}
136 <!-- disqus commenting disabled; set disqus_shortname -->
137 {% endif %}
138
139 {%- endblock %}