Permalink
Browse files

update documentation

  • Loading branch information...
sdpython committed Oct 22, 2016
1 parent 40ad3b6 commit d25cafe1a4b2c4d4cf61d8cbbe324655da1c0f93
Showing with 7 additions and 4 deletions.
  1. +3 −2 _doc/sphinxdoc/source/conf.py
  2. +4 −2 src/code_beatrix/algorithm/classroom.py
@@ -26,8 +26,9 @@
"hachibee", hachibee_sphinx_theme.get_html_themes_path(),
locals(), add_extensions=['hachibee_sphinx_theme'],
custom_style='custom_style.css',
extlinks=dict(issue=('https://github.com/sdpython/code_beatrix/issues/%s', 'issue'),
book=True))
extlinks=dict(
issue=('https://github.com/sdpython/code_beatrix/issues/%s', 'issue')),
book=True)
html_show_copyright = False
html_title = "lesenfantcodaient.fr"
@@ -48,8 +48,10 @@ def plot_positions(positions, edges=None, ax=None, **options):
p1 = posdict[e1]
p2 = posdict[e2]
if p1 != p2:
dx = ((p2[0] - p1[0]) / abs(p2[0] - p1[0]) * 0.1) if p2[0] != p1[0] else 0.0
dy = ((p2[1] - p1[1]) / abs(p2[1] - p1[1]) * 0.1) if p2[1] != p1[1] else 0.0
dx = ((p2[0] - p1[0]) / abs(p2[0] - p1[0])
* 0.1) if p2[0] != p1[0] else 0.0
dy = ((p2[1] - p1[1]) / abs(p2[1] - p1[1])
* 0.1) if p2[1] != p1[1] else 0.0
d = distance(p1, p2)
if d < 1.1:
color = "y"

0 comments on commit d25cafe

Please sign in to comment.