|
82 | 82 | plot_include_source |
83 | 83 | Default value for the include-source option |
84 | 84 |
|
85 | | - plot_show_source_link |
| 85 | + plot_html_show_source_link |
86 | 86 | Whether to show a link to the source in HTML. |
87 | 87 |
|
88 | 88 | plot_pre_code |
@@ -307,7 +307,7 @@ def setup(app): |
307 | 307 | app.add_directive('plot', plot_directive, True, (0, 2, False), **options) |
308 | 308 | app.add_config_value('plot_pre_code', None, True) |
309 | 309 | app.add_config_value('plot_include_source', False, True) |
310 | | - app.add_config_value('plot_show_source_link', True, True) |
| 310 | + app.add_config_value('plot_html_show_source_link', True, True) |
311 | 311 | app.add_config_value('plot_formats', ['png', 'hires.png', 'pdf'], True) |
312 | 312 | app.add_config_value('plot_basedir', None, True) |
313 | 313 | app.add_config_value('plot_html_show_formats', True, True) |
@@ -392,9 +392,9 @@ def remove_coding(text): |
392 | 392 |
|
393 | 393 | {{ only_html }} |
394 | 394 |
|
395 | | - {% if (source_link and show_source_link) or (html_show_formats and not multi_image) %} |
| 395 | + {% if (source_link and html_show_source_link) or (html_show_formats and not multi_image) %} |
396 | 396 | ( |
397 | | - {%- if source_link and show_source_link -%} |
| 397 | + {%- if source_link and html_show_source_link -%} |
398 | 398 | `Source code <{{ source_link }}>`__ |
399 | 399 | {%- endif -%} |
400 | 400 | {%- if html_show_formats and not multi_image -%} |
@@ -809,7 +809,7 @@ def run(arguments, content, options, state_machine, state, lineno): |
809 | 809 | dest_dir=dest_dir_link, |
810 | 810 | build_dir=build_dir_link, |
811 | 811 | source_link=src_link, |
812 | | - show_source_link=config.plot_show_source_link, |
| 812 | + html_show_source_link=config.plot_html_show_source_link, |
813 | 813 | multi_image=len(images) > 1, |
814 | 814 | only_html=only_html, |
815 | 815 | only_latex=only_latex, |
|
0 commit comments