Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor changes to log format. #285

Merged
merged 1 commit into from Aug 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions sphinx_gallery/docs_resolv.py
Expand Up @@ -290,7 +290,7 @@ def _embed_code_links(app, gallery_conf, gallery_dir):
for dirpath, _, filenames in os.walk(html_gallery_dir)
for filename in filenames]
iterator = sphinx_compatibility.status_iterator(
flat, gallery_dir, color='fuchsia',
flat, '%s ' % gallery_dir, color='fuchsia',
length=len(flat), stringify_func=lambda x: os.path.basename(x[1]))
for dirpath, fname in iterator:
full_fname = os.path.join(html_gallery_dir, dirpath, fname)
Expand Down Expand Up @@ -370,7 +370,7 @@ def embed_code_links(app, exception):
if app.builder.name not in ['html', 'readthedocs']:
return

logger.info('Embedding documentation hyperlinks in examples ...',
logger.info('embedding documentation hyperlinks in examples...',
color='white')

gallery_conf = app.config.sphinx_gallery_conf
Expand Down
8 changes: 4 additions & 4 deletions sphinx_gallery/gen_gallery.py
Expand Up @@ -197,7 +197,7 @@ def generate_gallery_rst(app):
Start the sphinx-gallery configuration and recursively scan the examples
directories in order to populate the examples gallery
"""
logger.info('Generating gallery...', color='white')
logger.info('generating gallery...', color='white')
gallery_conf = parse_config(app)

clean_gallery_out(app.builder.outdir)
Expand Down Expand Up @@ -248,12 +248,12 @@ def generate_gallery_rst(app):
fhindex.write(SPHX_GLR_SIG)

if gallery_conf['plot_gallery']:
logger.info("Computation time summary:", color='white')
logger.info("computation time summary:", color='white')
for time_elapsed, fname in sorted(computation_times)[::-1]:
if time_elapsed is not None:
logger.info("\t- %s : %.2g sec", fname, time_elapsed)
logger.info("\t- %s: %.2g sec", fname, time_elapsed)
else:
logger.info("\t- %s : not run", fname)
logger.info("\t- %s: not run", fname)


def touch_empty_backreferences(app, what, name, obj, options, lines):
Expand Down
2 changes: 1 addition & 1 deletion sphinx_gallery/gen_rst.py
Expand Up @@ -394,7 +394,7 @@ def generate_dir_rst(src_dir, target_dir, gallery_conf, seen_backrefs):
build_target_dir = os.path.relpath(target_dir, gallery_conf['src_dir'])
iterator = sphinx_compatibility.status_iterator(
sorted_listdir,
'Generating gallery for %s ' % build_target_dir,
'generating gallery for %s... ' % build_target_dir,
length=len(sorted_listdir))
for fname in iterator:
intro, time_elapsed = generate_file_rst(
Expand Down