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