This is an automated email from the git hooks/post-receive script. yoh pushed a commit to annotated tag v0.1 in repository python-mne.
commit 8d16d66a4b40d2293f4aef6afe5940d30f00db18 Author: Alexandre Gramfort <[email protected]> Date: Wed Jul 20 12:50:28 2011 -0400 DOC : better doc upload procedure with rsync --- doc/sphinxext/gen_rst.py | 12 +++++------- doc/upload_html.sh | 4 ++++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/doc/sphinxext/gen_rst.py b/doc/sphinxext/gen_rst.py index 35cb2cc..e928c4c 100755 --- a/doc/sphinxext/gen_rst.py +++ b/doc/sphinxext/gen_rst.py @@ -1,5 +1,5 @@ """ -Example generation for the scikit learn +Example generation Generate the rst files for the examples by iterating over the python example files. @@ -154,13 +154,11 @@ def generate_file_rst(fname, target_dir, src_dir, plot_gallery): # generate the plot as png image if file name # starts with plot and if it is more recent than an # existing image. - if not os.path.exists( - os.path.join(target_dir, 'images')): + if not os.path.exists(os.path.join(target_dir, 'images')): os.makedirs(os.path.join(target_dir, 'images')) image_file = os.path.join(target_dir, 'images', image_name) if (not os.path.exists(image_file) or - os.stat(image_file).st_mtime <= - os.stat(src_file).st_mtime): + os.stat(image_file).st_mtime <= os.stat(src_file).st_mtime): print 'plotting %s' % fname import matplotlib.pyplot as plt plt.close('all') @@ -195,8 +193,8 @@ def generate_file_rst(fname, target_dir, src_dir, plot_gallery): docstring, short_desc, end_row = extract_docstring(example_file) - f = open(os.path.join(target_dir, fname[:-2] + 'rst'),'w') - f.write( this_template % locals()) + f = open(os.path.join(target_dir, fname[:-2] + 'rst'), 'w') + f.write(this_template % locals()) f.flush() diff --git a/doc/upload_html.sh b/doc/upload_html.sh new file mode 100755 index 0000000..6570c56 --- /dev/null +++ b/doc/upload_html.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# scp -r build/html/* martinos:/web/html/mne/ +rsync -rltvz --delete build/html/ martinos:/web/html/mne/ -essh -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-mne.git _______________________________________________ debian-med-commit mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit
