Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8dbb009

Browse filesBrowse files
committed
Added html to option name
1 parent 7265f5a commit 8dbb009
Copy full SHA for 8dbb009

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Collapse file

‎lib/matplotlib/sphinxext/plot_directive.py‎

Copy file name to clipboardExpand all lines: lib/matplotlib/sphinxext/plot_directive.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
plot_include_source
8383
Default value for the include-source option
8484
85-
plot_show_source_link
85+
plot_html_show_source_link
8686
Whether to show a link to the source in HTML.
8787
8888
plot_pre_code
@@ -307,7 +307,7 @@ def setup(app):
307307
app.add_directive('plot', plot_directive, True, (0, 2, False), **options)
308308
app.add_config_value('plot_pre_code', None, True)
309309
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)
311311
app.add_config_value('plot_formats', ['png', 'hires.png', 'pdf'], True)
312312
app.add_config_value('plot_basedir', None, True)
313313
app.add_config_value('plot_html_show_formats', True, True)
@@ -392,9 +392,9 @@ def remove_coding(text):
392392
393393
{{ only_html }}
394394
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) %}
396396
(
397-
{%- if source_link and show_source_link -%}
397+
{%- if source_link and html_show_source_link -%}
398398
`Source code <{{ source_link }}>`__
399399
{%- endif -%}
400400
{%- if html_show_formats and not multi_image -%}
@@ -809,7 +809,7 @@ def run(arguments, content, options, state_machine, state, lineno):
809809
dest_dir=dest_dir_link,
810810
build_dir=build_dir_link,
811811
source_link=src_link,
812-
show_source_link=config.plot_show_source_link,
812+
html_show_source_link=config.plot_html_show_source_link,
813813
multi_image=len(images) > 1,
814814
only_html=only_html,
815815
only_latex=only_latex,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.