Package: deap / 1.0.1-3+deb8u1

fix-docs.patch Patch series | download
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
Description: fix docs, privacy breaches and minor flaws
 disable options for extlinks extension (conf.py) by Miriam Ruiz
Author: Daniel Stender <debian@danielstender.com>
Forwarded: no
Last-Update: 2014-10-10
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -127,10 +127,10 @@
 
 # -- Options for extlinks extension ----------------------------------------------
 
-import subprocess
-branch = str(subprocess.check_output(["hg", "branch"])[:-1])
-extlinks = {'example': ('https://code.google.com/p/deap/source/browse/examples/%s.py?name='+branch,
-                      'examples/')}
+#import subprocess
+#branch = str(subprocess.check_output(["hg", "branch"])[:-1])
+#extlinks = {'example': ('https://code.google.com/p/deap/source/browse/examples/%s.py?name='+branch,
+#                      'examples/')}
 
 
 # -- Options for HTML output ---------------------------------------------------
--- a/doc/_templates/layout.html
+++ b/doc/_templates/layout.html
@@ -11,7 +11,7 @@
 {% endblock %}
 
 {% block rootrellink %}
-    <li><a href="http://code.google.com/p/deap/"><img src="{{ pathto('_static/deap_icon-39x55.png', 1) }}" style="height: 30px; vertical-align: middle; padding-right: 1em;" />Project Homepage</a>{{ reldelim1 }}</li>
+    <li><a href="http://code.google.com/p/deap/"><img src="{{ pathto('_static/deap_icon_16x16.ico', 1) }}" style="height: 30px; vertical-align: middle; padding-right: 1em;" />Project Homepage</a>{{ reldelim1 }}</li>
 	<li><a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }} </li>
 {% endblock %}
 
@@ -25,13 +25,5 @@
     <br />
     Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version|e }}.
 </div>
-<script type="text/javascript">
-  (function() {
-     var ga = document.createElement('script');
-         ga.src = ('https:' == document.location.protocol ?
-                'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
-    ga.setAttribute('async', 'true');
-    document.documentElement.firstChild.appendChild(ga);
-  })();
-</script>
+
 {% endblock %}
--- a/doc/examples/pso_basic.rst
+++ b/doc/examples/pso_basic.rst
@@ -97,25 +97,6 @@
 
 The full PSO basic example can be found here : :example:`pso/basic`.
 
-This is a video of the algorithm in action, plotted with matplotlib_. 
-The red dot represents the best solution found so far.
-
-.. _matplotlib: http://matplotlib.org/
-
-.. raw:: html
-
-	<center>
-	<object style="height: 390px; width: 640px">
-	<param name="movie" value="http://www.youtube.com/v/f3MW2krobpo?version=3&feature=player_detailpage">
-	<param name="allowFullScreen" value="true">
-	<param name="allowScriptAccess" value="always">
-	<embed src="http://www.youtube.com/v/f3MW2krobpo?version=3&feature=player_detailpage" 
-		   type="application/x-shockwave-flash" allowfullscreen="true" 
-		   allowScriptAccess="always" 
-		   width="640" height="360">
-	</object>
-	</center>
-
 References
 ==========